User Tools

Site Tools


wiki:arctic_customization

This is an old revision of the document!


Arctic customization

The Kuo Lab Wiki uses the arctic template as the basis for the customized temple. The inclusion of a sidebar is the main reason for us to choose this template. The customizations include:

main.php

add <code php>

<?php /*google analytics code; chkuo; 2010/12/06*/ @include(dirname(__FILE__).'/analytics.script')?>

<code> before the </head> tag to include Google Analytics codes.

analytics.script

add this file to the template directory: <code jave> <script type=“text/javascript”>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2138404-9']);
_gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script> <code>

footer.html

Modify the footer.html for a cleaner look:

<?php
/**
 * Example footer include
 *
 * This file shows you how to use the include hooks. However I recommend to
 * create your own complete new template instead. 
 */
?>
<div align="center" class="footerinc">
 
<!-- 
start of custom code by chkuo; 2010/12/06
 -->
  <a target="_blank" href="<?php echo DOKU_BASE?>feed.php" title="Recent changes RSS feed"><img src="<?php echo DOKU_TPL?>images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" border="0" /></a>
 
  <?php tpl_license('button', true)?>
 
  <a target="_blank" href="http://validator.w3.org/check/referer" title="Valid XHTML 1.0"><img src="<?php echo DOKU_TPL?>images/button-xhtml.png" width="80" height="15" alt="Valid XHTML 1.0" border="0" /></a>
 
  <a target="_blank" href="http://jigsaw.w3.org/css-validator/check/referer" title="Valid CSS"><img src="<?php echo DOKU_TPL?>images/button-css.png" width="80" height="15" alt="Valid CSS" border="0" /></a>  
 
  <a target="_blank" href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki"><img src="<?php echo DOKU_TPL?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" border="0" /></a>
 
<!-- 
end of custom code by chkuo; 2010/12/06
 -->
</div>

print.css

wiki/arctic_customization.1291652363.txt.gz · Last modified: 2010/12/07 00:19 by chkuo