wiki:arctic_customization
This is an old revision of the document!
Table of Contents
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
<?php /*google analytics code; chkuo; 2010/12/06*/ @include(dirname(__FILE__).'/analytics.script')?>
before the </head>
tag to include Google Analytics codes.
analytics.script
Add this file to the template directory:
<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>
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
Add
/* start of custom style; chkuo; 2010/12/06 */ strong { font-style:normal; font-weight: bold; } em { font-style:normal; text-decoration: underline; } /* end of custom style; chkuo; 2010/12/06 */
to print Bold Text and Underlined Text correctly
wiki/arctic_customization.1291652549.txt.gz · Last modified: 2010/12/07 00:22 by chkuo