]> sipb.mit.edu Git - ikiwiki.git/blobdiff - templates/page.tmpl
Google Analytics tracking
[ikiwiki.git] / templates / page.tmpl
index 78f317eca2b4740f7d0ae63af22f766c293df10b..e0a080b7897064f7ed72e3e0ce280905af91f5bd 100644 (file)
@@ -17,8 +17,6 @@
                <title><TMPL_VAR TITLE></title>
                
                <link rel="stylesheet" type="text/css" href="<TMPL_VAR BASEURL>style.css" />
-               <link rel="stylesheet" type="text/css" href="<TMPL_VAR_BASEURL>local.css" />
-               <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
        </head>
        
        <body>
@@ -63,7 +61,7 @@
                                <br style="clear:both;" />
                         </div>
                         </TMPL_IF>
-                        <div id="featured-block">
+                        <div id="featured-block" class="<TMPL_UNLESS NAME="PARENTLINKS">is-top</TMPL_UNLESS>">
                                <TMPL_VAR CONTENT>
                         </div>
                        <div id="prefooter"></div>      
@@ -81,6 +79,9 @@
                                        <TMPL_IF NAME="HISTORYURL">
                                        <li><a href="<TMPL_VAR HISTORYURL>">History</a></li>
                                        </TMPL_IF>
+                                       <TMPL_IF NAME="GETSOURCEURL">
+                                       <li><a href="<TMPL_VAR GETSOURCEURL>">Source</a></li>
+                                       </TMPL_IF>
                                        <TMPL_IF NAME="PREFSURL">
                                        <li><a href="<TMPL_VAR PREFSURL>">Preferences</a></li>
                                        </TMPL_IF>
                        <p>Unless otherwise specified, all content on this wiki is released under a dual license of the Creative Commons Attribution-Share Alike license, and the GNU Free Documentation License, with no Invariant Sections, no Front-Cover Texts, and no Back-Cover-Texts.<br />
                         This follows the SIPB Documentation Licensing Recommendation.</p>
                </div>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-15235584-1");
+pageTracker._trackPageview();
+} catch(err) {}</script>
        </body>
 </html>