source: trunk/templates/footer.tt @ 1243

Last change on this file since 1243 was 1243, checked in by Dominic Hargreaves, 13 years ago

Don't add delete links unless the user requests (fixes #159 - thanks bob)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1<br clear="all" />
2
3[% UNLESS omit_footer_search_form %]
4  <div id="search_form">
5    <form action="search.cgi" method="get">
6      <strong><label for="search">Search [% site_name %]:</label></strong> <input type="text" size="50" name="search" id="search" value="Search text" onclick="this.value=''" />
7      <input type="submit" name="Go" value="Go" id="go" class="form_button" />
8    </form>
9  </div>
10[% END %]
11
12<div id="footer">
13  [% BLOCK delete_link %]
14    [% IF enable_page_deletion AND is_admin AND NOT not_deletable %]
15      <div id="footer_delete_link">
16        <a href="[% full_cgi_url %]?id=[% node_param %];action=delete">Delete page</a> (admins only)
17      </div>
18    [% END %]
19  [% END %]
20
21  [% TRY %]
22    [% INCLUDE custom_footer_credits.tt %]
23  [% CATCH %]
24    [% INCLUDE delete_link %]
25    <p>
26      Powered by <a href="[% full_cgi_url%]?action=about">OpenGuides [% openguides_version %]</a>.
27    </p>
28    [% IF licence_name %]
29      <p>
30        This work is licensed under the
31        [% IF licence_url %]
32           <a href="[% licence_url %]">[% licence_name %]</a>
33                [% ELSE %]
34                        [% licence_name %]
35        [% END %]
36        licence
37        [% IF licence_info_url %]
38           (<a href="[% licence_info_url %]">more info</a>)
39        [% END %]
40      </p>
41    [% END %]
42  [% END %]
43
44</div>
45</div>
46</div>
47
48  [% IF config.google_analytics_key %]
49    <script type="text/javascript">
50    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
51    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
52    </script>
53
54    <script type="text/javascript">
55    var pageTracker = _gat._getTracker("[% config.google_analytics_key %]");
56    pageTracker._trackPageview();
57    </script>
58  [% END %]
59
60</body>
61</html>
Note: See TracBrowser for help on using the repository browser.