diff options
author | Nathan Lasseter <nathan@4574.co.uk> | 2013-01-21 17:37:56 +0000 |
---|---|---|
committer | Nathan Lasseter <nathan@4574.co.uk> | 2013-01-21 17:37:56 +0000 |
commit | 7e1f201b86dab4c39b7ffb2c6af87e519b5c2c2e (patch) | |
tree | 446a17f1a97b6f4dc5bd7db9e377f5202cee63ae | |
parent | a16ac37d0ff169674a4957940d14f5b5db3fb371 (diff) |
Added twitter data-url
-rw-r--r-- | viewpost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/viewpost.php b/viewpost.php index 0d26023..c35a01b 100644 --- a/viewpost.php +++ b/viewpost.php @@ -34,7 +34,7 @@ echo "<div>\n"; echo "<a class=\"title\" href=\"{$blogRoot}post/" . urlencode($getpost) . "\">$getpost <span id=\"perma\">[Permalink]</span></a> "; ?> -<a href="https://twitter.com/share" class="twitter-share-button" data-text="<?php echo "$blogTitle: {$getpost}"; ?>">[Tweet]</a> +<a href="https://twitter.com/share" class="twitter-share-button" data-text="<?php echo "$blogTitle: {$getpost}"; ?>" data-url="http://<?php echo "{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}"; ?>">[Tweet]</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <?php |