source: trunk/templates/footer.tt @ 965

Last change on this file since 965 was 965, checked in by kake, 15 years ago

Add Google Analytics support.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1<br clear="all" />
2
3<div id="search_form">
4  <form action="search.cgi" method="get">
5    <strong><label for="search">Search [% site_name %]:</label></strong> <input type="text" size="50" name="search" id="search" value="Search text" onclick="this.value=''" />
6    <input type="submit" name="Go" value="Go" id="go" class="form_button" />
7  </form>
8</div>
9
10<div id="footer">
11  [% BLOCK delete_link %]
12    [% IF enable_page_deletion AND NOT not_deletable %]
13      <div id="footer_delete_link">
14        <a href="[% full_cgi_url %]?id=[% node_param %];action=delete">Delete page</a> (admins only)
15      </div>
16    [% END %]
17  [% END %]
18
19  [% TRY %]
20    [% INCLUDE custom_footer_credits.tt %]
21  [% CATCH %]
22    <p>
23      [% INCLUDE delete_link %]
24    </p>
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 src="http://www.google-analytics.com/urchin.js"
50     type="text/javascript">
51    </script>
52    <script type="text/javascript">
53      _uacct = "[% CGI.escapeHTML( config.google_analytics_key  ) %]";
54      if ( typeof urchinTracker == 'function' ) urchinTracker();
55    </script>
56  [% END %]
57
58</body>
59</html>
Note: See TracBrowser for help on using the repository browser.