修訂 | b03e5ef31ad5f6aff1c2c0fd97619f557f045835 (tree) |
---|---|
時間 | 2013-11-04 18:07:01 |
作者 | ![]() |
Commiter | Kureha Hisame |
- update plugin (show updated date)
@@ -27,8 +27,8 @@ | ||
27 | 27 | |
28 | 28 | // 追加する文字列を生成 |
29 | 29 | // 開始タグを生成 |
30 | - var addContent = '<br><div class="feedblog_content_footer">'; | |
31 | - | |
30 | + var addContent = '<br><div class="feedblog_content_footer_right">'; | |
31 | + | |
32 | 32 | // タグを追加 |
33 | 33 | var tagHtml = []; |
34 | 34 | for(var i = 0; i < options.entry.category.length; i++) { |
@@ -41,9 +41,23 @@ | ||
41 | 41 | |
42 | 42 | // 改行 |
43 | 43 | addContent = addContent + "<br>"; |
44 | + | |
45 | + // 日時を追加 | |
46 | + addContent = addContent + 'updated : ' + options.entry.date + ' / '; | |
44 | 47 | |
45 | 48 | // アンカーリンクを追加 |
46 | 49 | addContent = addContent + '<a href="' + contentUrl + '" target="_blank">- この日の記事にリンクする -<\/a>'; |
50 | + | |
51 | + // 終了タグを生成 | |
52 | + addContent = addContent + "</div>"; | |
53 | + | |
54 | + // 開始タグを生成 | |
55 | + addContent = addContent + '<div class="feedblog_content_footer_left">'; | |
56 | + | |
57 | + // Twitterボタンを追加 | |
58 | + var twitterUrl = 'http://lunardial.sakura.ne.jp/diary.html' + "?id=" + CryptoJS.SHA1(options.entry.id).toString(); | |
59 | + addContent = addContent + '<a href="https://twitter.com/share" class="twitter-share-button" data-url="' + twitterUrl + '" data-text="' + options.entry.title + '" data-via="atodelie" data-lang="ja">ツイート</a>'; | |
60 | + addContent = addContent + "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>"; | |
47 | 61 | |
48 | 62 | // 終了タグを生成 |
49 | 63 | addContent = addContent + '<\/div>'; |