Changeset 7013
- Timestamp:
- 02/21/08 11:25:26 (5 years ago)
- Location:
- platform/tdiary/plugin
- Files:
-
- 2 added
- 1 modified
-
en/section_footer.rb (added)
-
ja/section_footer.rb (added)
-
section_footer.rb (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/section_footer.rb
r3610 r7013 56 56 57 57 unless @conf.mobile_agent? then 58 # カテゴリタグの追加 59 if @category_to_tag_list and not @category_to_tag_list.empty? then 58 # ���ƥ������ɲ� if @category_to_tag_list and not @category_to_tag_list.empty? then 60 59 r << "Tags: " 61 60 @category_to_tag_list.each do |tag, blog| … … 67 66 end 68 67 end 69 70 # 「このエントリを含む del.icio.us(json)」71 r << add_delicious_json(date, index)72 68 73 # 「このエントリを含む del.icio.us(画像API)」 74 # r << add_delicious(date, index) 69 # �֤��Υ�����ޤ�el.icio.us(json)�� r << add_delicious_json(date, index) 75 70 76 # 「このエントリを含むはてなブックーク」 77 r << add_hatenabm(date, index) 71 # �֤��Υ�����ޤ�el.icio.us(��API)�� # r << add_delicious(date, index) 78 72 79 # 「このエントリを含む livedoor クリップ」 80 r << add_ldclip(date, index) 81 82 # 「このエントリを含む Buzzurl」 83 r << add_buzzurl(date, index) 73 # �֤��Υ�����ޤ��Ƥʥ֥å������� r << add_hatenabm(date, index) 84 74 85 # 「このエントリを含む Yahoo!ブックマーク」 86 r << add_yahoobm(date, index) 87 88 # Permalinkの追加 89 r << add_permalink(date, index) 75 # �֤��Υ�����ޤ�ivedoor �����ס� r << add_ldclip(date, index) 76 77 # �֤��Υ�����ޤ�uzzurl�� r << add_buzzurl(date, index) 78 79 # �֤��Υ�����ޤ�ahoo!�֥å��ޡ����� r << add_yahoobm(date, index) 80 81 # Permalink��ɲ� r << add_permalink(date, index) 90 82 end 91 83 … … 101 93 def add_hatenabm(date, index) 102 94 r = " | " 103 r << %Q|<a href="http://b.hatena.ne.jp/entry/#{permalink(date, index)}"><img src="http://d.hatena.ne.jp/images/b_entry.gif" style="border: none;vertical-align: middle;" title=" このエントリを含むはてなブックマーク" alt="このエントリを含むはてなブックマーク" width="16" height="12" /> <img src="http://b.hatena.ne.jp/entry/image/normal/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a> <img src="http://r.hatena.ne.jp/images/popup.gif" style="border: none;vertical-align: middle;" onclick="iconImageClickHandler(this, '#{permalink(date, index, false)}', event);" alt="">|95 r << %Q|<a href="http://b.hatena.ne.jp/entry/#{permalink(date, index)}"><img src="http://d.hatena.ne.jp/images/b_entry.gif" style="border: none;vertical-align: middle;" title="#{@section_footer_hatenabm_label}" alt="#{@section_footer_hatenabm_label}" width="16" height="12" /> <img src="http://b.hatena.ne.jp/entry/image/normal/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a> <img src="http://r.hatena.ne.jp/images/popup.gif" style="border: none;vertical-align: middle;" onclick="iconImageClickHandler(this, '#{permalink(date, index, false)}', event);" alt="">| 104 96 return r 105 97 end … … 107 99 def add_ldclip(date, index) 108 100 r = " | " 109 r << %Q|<a href="http://clip.livedoor.com/page/#{permalink(date, index)}"><img src="http://parts.blog.livedoor.jp/img/cmn/clip_16_16_w.gif" width="16" height="16" style="border: none;vertical-align: middle;" alt=" このエントリを含む livedoor クリップ" title="このエントリを含む livedoor クリップ"> <img src="http://image.clip.livedoor.com/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>|101 r << %Q|<a href="http://clip.livedoor.com/page/#{permalink(date, index)}"><img src="http://parts.blog.livedoor.jp/img/cmn/clip_16_16_w.gif" width="16" height="16" style="border: none;vertical-align: middle;" alt="#{@section_footer_ldclip_label}" title="#{@section_footer_ldclip_label}"> <img src="http://image.clip.livedoor.com/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>| 110 102 return r 111 103 end … … 113 105 def add_buzzurl(date, index) 114 106 r = " | " 115 r << %Q|<a href="http://buzzurl.jp/entry/#{permalink(date, index)}"><img src="http://buzzurl.jp/static/image/api/icon/add_icon_mini_10.gif" style="border: none;vertical-align: middle;" title=" このエントリを含む Buzzurl" alt="このエントリを含む Buzzurl" width="16" height="12" class="icon" /> <img src="http://buzzurl.jp/api/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>|107 r << %Q|<a href="http://buzzurl.jp/entry/#{permalink(date, index)}"><img src="http://buzzurl.jp/static/image/api/icon/add_icon_mini_10.gif" style="border: none;vertical-align: middle;" title="#{@section_footer_buzzurl_label}" alt="#{@section_footer_buzzurl_label}" width="16" height="12" class="icon" /> <img src="http://buzzurl.jp/api/counter/#{permalink(date, index)}" style="border: none;vertical-align: middle;" /></a>| 116 108 return r 117 109 end … … 121 113 122 114 r = " | " 123 r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt=" このエントリを含む del.icio.us" title="このエントリを含む del.icio.us"> <img src="http://del.icio.us/feeds/img/savedcount/#{url_md5}?aggregate" style="border:none;margin:0" /></a>|115 r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt="#{@section_footer_delicious_label}" title="#{@section_footer_delicious_label}"> <img src="http://del.icio.us/feeds/img/savedcount/#{url_md5}?aggregate" style="border:none;margin:0" /></a>| 124 116 return r 125 117 end … … 127 119 def add_delicious_json(date, index) 128 120 require 'json' 129 121 130 122 url_md5 = Digest::MD5.hexdigest(permalink(date, index, false)) 131 123 cache_dir = "#{@cache_path}/delicious/#{date.strftime( "%Y%m" )}/" … … 136 128 137 129 r = " | " 138 r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt=" このエントリを含む del.icio.us" title="このエントリを含む del.icio.us">|130 r << %Q|<a href="http://del.icio.us/url/#{url_md5}"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="10" height="10" style="border: none;vertical-align: middle;" alt="#{@section_footer_delicious_label}" title="#{@section_footer_delicious_label}">| 139 131 140 132 begin … … 187 179 def add_yahoobm(date, index) 188 180 r = " | " 189 r << %Q|<a href="http://bookmarks.yahoo.co.jp/url?url=#{permalink(date, index)}&opener=bm&ei=UTF-8"><img src="http://i.yimg.jp/images/sicons/ybm16.gif" style="border: none;vertical-align: middle;" title=" このエントリを含む Yahoo!ブックマーク" alt="このエントリを含む Yahoo!ブックマーク" width="16" height="16" class="icon" /></a>|181 r << %Q|<a href="http://bookmarks.yahoo.co.jp/url?url=#{permalink(date, index)}&opener=bm&ei=UTF-8"><img src="http://i.yimg.jp/images/sicons/ybm16.gif" style="border: none;vertical-align: middle;" title="#{@section_footer_yahoobm_label}" alt="#{@section_footer_yahoobm_label}" width="16" height="16" class="icon" /></a>| 190 182 return r 191 183 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)