главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
diff options
context:
space:
mode:
authorCarlos Fenollosa <carlos.fenollosa@gmail.com>2014-07-07 17:23:24 +0200
committerCarlos Fenollosa <carlos.fenollosa@gmail.com>2014-07-07 17:23:24 +0200
commitf946c98c32d672825ae2b3fc505ff009a304d5fc (patch)
treea1430f240ba9625f8ae331fc0ccb5319c70050c6 /bb.sh
parent1a4ea1702f3f1ce472ae4be9e72970b24e284e4a (diff)
Twitter count now links to search results
Diffstat (limited to 'bb.sh')
-rwxr-xr-xbb.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index 565cdc6..997def7 100755
--- a/bb.sh
+++ b/bb.sh
@@ -429,7 +429,8 @@ twitter() {
if [[ -z "$global_disqus_username" ]]; then
if [[ "$global_twitter_cookieless" == "true" ]]; then
id=$RANDOM
- echo "<p id='twitter'><a href='http://twitter.com/intent/tweet?url=$1&text=$template_twitter_comment&via=$global_twitter_username'>$template_comments $template_twitter_button <span id='count-$id'></span></a>&nbsp;</p>"
+ echo "<p id='twitter'><a href='http://twitter.com/intent/tweet?url=$1&text=$template_twitter_comment&via=$global_twitter_username'>$template_comments $template_twitter_button</a> "
+ echo "<a href='https://twitter.com/search?q=$1'><span id='count-$id'></span></a>&nbsp;</p>"
# Get current tweet count
echo '<script type="text/javascript">$.ajax({type: "GET", url: "http://urls.api.twitter.com/1/urls/count.json?url='$1'",
dataType: "jsonp", success: function(data){ $("#count-'$id'").html("(" + data.count + ")"); }}); </script>'