Changeset 38760 for platform

Show
Ignore:
Timestamp:
01/03/11 10:30:55 (2 years ago)
Author:
sho
Message:

inserted new hatena button.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/section_footer2.rb

    r38601 r38760  
    4949add_header_proc do 
    5050  <<-"EOS" 
     51  <script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script> 
     52  <style type="text/css">iframe.hatena-bookmark-button-frame {margin-bottom: -7px; }</style> 
    5153  <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> 
    5254  <style type="text/css">iframe.twitter-share-button.twitter-count-horizontal {margin-bottom: -6px; }</style> 
     
    99101                r << add_delicious(date, index) 
    100102 
     103                # add Hatena link 
     104                r << add_hatena(date, index) 
     105 
    101106                # add SBM link 
    102107                yaml_dir = "#{@cache_path}/yaml/" 
     
    167172 
    168173        return r 
     174end 
     175 
     176def add_hatena( date, index ) 
     177       %Q!<a href="http://b.hatena.ne.jp/entry/#{permalink( date, index )}" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" width="20" height="20" style="border: none;" /></a> | ! 
    169178end 
    170179