Bug 34627: CMS pages do not correctly display the opaccredits footer
[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-lg-2">
37                     <div id="navigation">
38                         [% INCLUDE 'navigation.inc' %]
39                     </div>
40                 </div>
41                 <div class="col-10 order-first order-md-first order-lg-2">
42             [% ELSE %]
43                 <div class="col order-first order-md-first order-lg-2">
44             [% END %]
45
46             [% IF page %]
47                 <div class="maincontent">
48                     <h1>[% page.title | html %]</h1>
49
50                         <div class="page_content">
51                             [% page.content | $raw %]
52                         </div>
53
54                     [% ELSE %]
55
56                         <div class="alert alert-error">
57                             This page does not exist.
58                         </div>
59
60                     [% END %]
61                 </div> <!-- /.maincontent -->
62             </div> <!-- / .col -->
63         </div> <!-- /.row -->
64     </div> <!-- /.container-fluid -->
65 </div> <!-- /.main -->
66
67 [% INCLUDE 'opac-bottom.inc' %]
68 [% BLOCK jsinclude %][% END %]