Changeset 11283 for platform/tdiary/plugin
- Timestamp:
- 05/08/08 22:43:03 (7 months ago)
- Location:
- platform/tdiary/plugin
- Files:
-
- 2 modified
-
google_analytics.rb (modified) (2 diffs)
-
prettify.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/google_analytics.rb
r8042 r11283 5 5 # You can redistribute it and/or modify it under GPL2. 6 6 # 7 if /^( latest|day|month|nyear)$/ =~ @mode then7 if /^(?:latest|day|month|nyear)$/ =~ @mode then 8 8 add_footer_proc do 9 9 google_analytics_insert_code … … 14 14 return '' unless @conf['google_analytics.profile'] 15 15 <<-HTML 16 <script type="text/javascript"> 16 <script type="text/javascript"><!-- 17 17 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.") ; 18 document.write(unescape( "%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")) ;19 </script>20 <script type="text/javascript"> 18 document.write(unescape('%3Cscript src="' + gaJsHost + 'google-analytics.com/ga.js" type="text/javascript"%3E%3C/script%3E')) ; 19 // --></script> 20 <script type="text/javascript"><!-- 21 21 var pageTracker = _gat._getTracker("UA-#{h @conf['google_analytics.profile']}"); 22 22 pageTracker._initData(); 23 23 pageTracker._trackPageview(); 24 </script>24 // --></script> 25 25 HTML 26 26 end -
platform/tdiary/plugin/prettify.rb
r8041 r11283 1 1 # prettify.rb 2 2 3 if /^( latest|day|month|nyear)$/ =~ @mode then3 if /^(?:latest|day|month|nyear)$/ =~ @mode then 4 4 add_header_proc do 5 5 <<-HTML
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)