Changeset 9986
- Timestamp:
- 04/20/08 15:08:07 (5 years ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/hb_footer4sec_js.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/hb_footer4sec_js.rb
r9914 r9986 5 5 # 6 6 7 def permalink( date, index, escape = true ) 8 ymd = date.strftime( "%Y%m%d" ) 9 uri = @conf.index.dup 10 uri[0, 0] = @conf.base_url unless %r|^https?://|i =~ uri 11 uri.gsub!( %r|/\./|, '/' ) 12 if escape 13 uri + CGI::escape(anchor( "#{ymd}p%02d" % index )) 14 else 15 uri + anchor( "#{ymd}p%02d" % index ) 16 end 7 def permalink( date, index ) 8 ymd = date.strftime( "%Y%m%d" ) 9 uri = @conf.index.dup 10 uri[0, 0] = @conf.base_url unless %r|^https?://|i =~ uri 11 uri.gsub!( %r|/\./|, '/' ) 12 13 uri + anchor( "#{ymd}p%02d" % index ) 17 14 end 18 15 19 16 add_section_leave_proc do |date, index| 20 unless@conf.mobile_agent? then17 if @mode == 'day' and not bot? and not @conf.mobile_agent? then 21 18 <<-SCRIPT 22 19 <script type= "text/javascript">/*<![CDATA[*/ … … 29 26 <div id="hatena_bookmark_anywhere"></div> 30 27 SCRIPT 31 end28 end 32 29 end 33
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)