User Tools

Site Tools


wiki:arctic_customization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:arctic_customization [2010/12/07 00:19] – created chkuowiki:arctic_customization [2023/05/12 10:57] (current) – [analytics.script] chkuo
Line 3: Line 3:
  
 ===== main.php ===== ===== main.php =====
-add+Add
 <code php> <code php>
   <?php /*google analytics code; chkuo; 2010/12/06*/ @include(dirname(__FILE__).'/analytics.script')?>   <?php /*google analytics code; chkuo; 2010/12/06*/ @include(dirname(__FILE__).'/analytics.script')?>
-<code>+</code>
 before the ''</head>'' tag to include Google Analytics codes.  before the ''</head>'' tag to include Google Analytics codes. 
  
 ===== analytics.script ===== ===== analytics.script =====
-add this file to the template directory: +Add this file to the template directory: 
-<code jave+<file> 
-<script type="text/javascript"> +<!-- Google tag (gtag.js) --
- +<script async src="https://www.googletagmanager.com/gtag/js?id=G-48KMGESLGF"></script
-  var _gaq _gaq || []; +<script> 
-  _gaq.push(['_setAccount', 'UA-2138404-9'])+  window.dataLayer window.dataLayer || []; 
-  _gaq.push(['_trackPageview']); +  function gtag(){dataLayer.push(arguments);} 
- +  gtag('js', new Date());
-  (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); +
-  })();+
  
 +  gtag('config', 'G-48KMGESLGF');
 </script> </script>
-<code>+ 
 +</file>
  
 ===== footer.html ===== ===== footer.html =====
Line 60: Line 57:
  
 ===== print.css ===== ===== print.css =====
 +Add 
 +<code css> 
 +/* start of custom style; chkuo; 2010/12/06 */ 
 +strong { 
 + font-style:normal; 
 + font-weight: bold; 
 +
 +em { 
 + font-style:italic; 
 + text-decoration: none; 
 +
 +em.u { 
 + font-style:normal; 
 + text-decoration: underline; 
 +
 +/* end of custom style; chkuo; 2010/12/06 */ 
 +</code> 
 +to print **Bold Text**, //Italic Text//, and __Underlined Text__ correctly
wiki/arctic_customization.1291652363.txt.gz · Last modified: 2010/12/07 00:19 by chkuo