7e9a74a0a223437884da1d35c2a7fed808ede6f6
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-page.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE AdditionalContents %]
4 [% PROCESS 'i18n.inc' %]
5 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
6 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF page %][% page.title | html %][% ELSE %]Page error[% END %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
11 </head>
12 [% INCLUDE 'bodytag.inc' bodyid='opac-page-' _ page.idnew %]
13 [% INCLUDE 'masthead.inc' %]
14
15 <div class="main">
16     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
17         <ol class="breadcrumb">
18             <li class="breadcrumb-item">
19                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
20             </li>
21             [% IF page %]
22                 <li class="breadcrumb-item active">
23                     <a href="#" aria-current="page">[% page.title | html %]</a>
24                 </li>
25             [% ELSE %]
26                 <li class="breadcrumb-item active">
27                     <a href="#" aria-current="page">Page error</a>
28                 </li>
29             [% END %]
30         </ol>
31     </nav> <!-- /#breadcrumbs -->
32
33     <div class="container-fluid">
34         <div class="row">
35             [% IF ( OpacNav || OpacNavBottom ) %]
36                 <div class="col-12 col-lg-2 order-3 order-lg-1">
37                     <div id="navigation">
38                         [% IF ( OpacNav || OpacNavBottom ) %]
39                             <hr>
40                             [% INCLUDE 'navigation.inc' %]
41                         [% END %]
42                     </div>
43                 </div>
44                 <div class="col-12 col-lg-10 order-md-1 maincontent">
45             [% ELSE %]
46                 <div class="col order-md-1 maincontent">
47             [% END %]
48                 <div id="page_[% page.idnew | html %]" class="maincontent">
49
50             [% IF page %]
51
52             <h1>[% page.title | html %]</h1>
53
54             <div class="page_content">
55                 [% page.content | $raw %]
56             </div>
57
58             [% ELSE %]
59
60             <div class="alert alert-error">
61                 This page does not exist.
62             </div>
63
64             [% END %]
65
66         </div> <!-- / .col 6/8 -->
67
68         </div> <!-- /.container-fluid -->
69     </div> <!-- /.row -->
70 </div> <!-- /.main -->
71
72 [% INCLUDE 'opac-bottom.inc' %]
73 [% BLOCK jsinclude %][% END %]