Merge branch 'bug_8977' into 3.12-master
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-main.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="opac-main">
6 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
7    <div id="bd">
8 [% INCLUDE 'masthead.inc' %]
9
10         <div id="yui-main">
11
12         <div class="yui-b">
13      [% IF ( opacuserlogin ) %]
14          [% IF ( loggedinusername ) %]
15          <div id="loggedin" class="yui-ge">
16          [% ELSE %]
17         <div id="notloggedin" class="yui-ge">
18          [% END %]
19      [% ELSE %]
20         <div id="notloggedin" class="yui-ge">
21     [% END %]
22         <div class="yui-u first">
23         [% IF ( koha_news_count ) %]
24 <div id="news" class="container">
25     <table>
26     [% FOREACH koha_new IN koha_news %]
27     <tr><th>[% koha_new.title %]</th></tr>
28     <tr><td><p>[% koha_new.new %]</p>
29                 <p><i>(published on [% koha_new.newdate %])</i></p></td></tr>
30     [% END %]
31     </table>
32 </div>
33 [% END %]
34
35       [% IF ( display_daily_quote && daily_quote ) %]
36     <div id="daily-quote" class="container"><h1>Quote of the Day</h1><div><span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span></div></div>
37 [% END %]
38
39         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock" class="container">[% OpacMainUserBlock %]</div>[% END %]
40  [% IF ( OpacMainUserBlockMobile ) %]<div id="opacmainuserblockmobile" class="container">[% OpacMainUserBlockMobile %]</div>[% END %]
41
42 </div>
43                 
44     [% IF ( opacuserlogin || OpacNavRight ) %]
45     <div class="yui-u">
46     [% IF ( opacuserlogin ) %]
47     [% UNLESS ( loggedinusername ) %]
48     [% UNLESS ( casAuthentication ) %]
49     <div id="login" class="container clearfix">
50         <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
51     <input type="hidden" name="koha_login_context" value="opac" />
52         <fieldset class="brief">
53         <legend>Log in to your account:</legend>
54                 <ol>
55                 <li><label for="userid">Login:</label><input type="text" id="userid" size="10" name="userid" /></li>
56                 <li><label for="password">Password:</label><input type="password" id="password" size="10" name="password" /></li>
57                 </ol>    <fieldset class="action">
58          <input type="submit" value="Log In" class="submit" />
59
60         [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div id="patronregistration">Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></div>[% END %]
61
62          </fieldset></fieldset>
63         </form>
64         </div>
65     [% END %]
66     [% END %]
67     [% END %]
68     [% IF ( OpacNavRight ) %]<div id="opacrightsidebar" class="container">[% OpacNavRight %]</div>[% END %]
69     </div>
70     [% END %]
71 </div>
72 </div>
73 </div>
74 [% IF ( OpacNav ) %]<div class="yui-b">
75 <div id="opacnav" class="container">
76 [% INCLUDE 'navigation.inc' %]
77 </div>
78 </div>[% END %]
79 </div>
80
81 [% INCLUDE 'opac-bottom.inc' %]