Better Click To Tweet - Version 4.4

Version Description

  • Twitter now opens in a new modal box instead of a new tab, (developers: this is done using a call to platform.twitter.com/widgets.js within the code of the output from the shortcode. This means that the script won't be loaded on pages or posts where it's not needed.)
Download this release

Release Info

Developer ben.meredith@gmail.com
Plugin Icon 128x128 Better Click To Tweet
Version 4.4
Comparing to
See all releases

Code changes from version 4.3.1 to 4.4

assets/css/bcttstyle.css CHANGED
@@ -16,7 +16,7 @@
16
  height: 0;
17
  }
18
  .bctt-ctt-text a {
19
- padding: 15px 6px;
20
  margin: 15px 0;
21
  position: relative;
22
  color: #000 !important;
16
  height: 0;
17
  }
18
  .bctt-ctt-text a {
19
+ padding: 15px 0px;
20
  margin: 15px 0;
21
  position: relative;
22
  color: #000 !important;
better-click-to-tweet.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Better Click To Tweet
4
  Description: The only Click To Tweet plugin to add translation support. The only Click To Tweet plugin to take into account your Twitter username's length in truncating long tweets, or to correctly take into account non-Roman characters. Simply put, as Click To Tweet plugins go, this one is, well, BETTER.
5
- Version: 4.3.1
6
  Author: Ben Meredith
7
  Author URI: http://benandjacq.com
8
  Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
@@ -163,7 +163,7 @@ function bctt_shortcode( $atts ) {
163
 
164
  if ( !is_feed() ) {
165
 
166
- return "<div class='bctt-click-to-tweet'><span class='bctt-ctt-text'><a href='https://twitter.com/intent/tweet?text=" . urlencode($short) . $handle_code . $bcttURL."' target='_blank'" . $rel . ">".$short." </a></span><a href='https://twitter.com/intent/tweet?text=" . urlencode($short) . $handle_code . $bcttURL . "' target='_blank' class='bctt-ctt-btn'" . $rel . ">" . $bcttBttn . "</a></div>";
167
  } else {
168
 
169
  return "<hr /><p><em>" . $short . "</em><br /><a href='https://twitter.com/intent/tweet?text=" . urlencode($short) . $handle_code . $bcttURL . "' target='_blank' class='bctt-ctt-btn'" . $rel . ">" . $bcttBttn . "</a><br /><hr />";
2
  /*
3
  Plugin Name: Better Click To Tweet
4
  Description: The only Click To Tweet plugin to add translation support. The only Click To Tweet plugin to take into account your Twitter username's length in truncating long tweets, or to correctly take into account non-Roman characters. Simply put, as Click To Tweet plugins go, this one is, well, BETTER.
5
+ Version: 4.4
6
  Author: Ben Meredith
7
  Author URI: http://benandjacq.com
8
  Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
163
 
164
  if ( !is_feed() ) {
165
 
166
+ return "<div class='bctt-click-to-tweet'><span class='bctt-ctt-text'><a href='https://twitter.com/intent/tweet?text=" . urlencode($short) . $handle_code . $bcttURL."' target='_blank'" . $rel . ">".$short." </a></span><a href='https://twitter.com/intent/tweet?text=" . urlencode($short) . $handle_code . $bcttURL . "' target='_blank' class='bctt-ctt-btn'" . $rel . ">" . $bcttBttn . "</a></div><script async src='//platform.twitter.com/widgets.js' charset='utf-8'></script>";
167
  } else {
168
 
169
  return "<hr /><p><em>" . $short . "</em><br /><a href='https://twitter.com/intent/tweet?text=" . urlencode($short) . $handle_code . $bcttURL . "' target='_blank' class='bctt-ctt-btn'" . $rel . ">" . $bcttBttn . "</a><br /><hr />";
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Better Click To Tweet ===
2
  Contributors: ben.meredith@gmail.com
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HDSGWRJYFQQNJ
4
- Tags: click to tweet, twitter, tweet, twitter plugin, Twitter boxes, share, social media, post, posts, plugin, auto post, bitly, bit.ly, yourls, yourls.org, translate-me, Español, Deutsch, Russian, Finnish, Svenska, Suomi, Italiano, русском,
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
- Stable tag: 4.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -111,8 +111,11 @@ I want to maximize the usefulness of this plugin by translating it into multiple
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 4.3.1 =
115
- *added Italian language
116
 
117
  = 4.3 =
118
  * added translation support (internationalization or i18n) to the button on the visual editor. Now the entire plugin is translatable!
1
  === Better Click To Tweet ===
2
  Contributors: ben.meredith@gmail.com
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HDSGWRJYFQQNJ
4
+ Tags: click to tweet, twitter, tweet, twitter plugin, Twitter boxes, share, social media, post, posts, plugin, auto post, bitly, bit.ly, yourls, yourls.org, translate-me, Español, Deutsch, Russian, Finnish, Svenska, Suomi, Italiano,
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
+ Stable tag: 4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
111
 
112
  == Changelog ==
113
 
114
+ = 4.4 =
115
+ * Twitter now opens in a new modal box instead of a new tab, (developers: this is done using a call to platform.twitter.com/widgets.js within the code of the output from the shortcode. This means that the script won't be loaded on pages or posts where it's not needed.)
116
+
117
  = 4.3.1 =
118
+ * added Italian language
119
 
120
  = 4.3 =
121
  * added translation support (internationalization or i18n) to the button on the visual editor. Now the entire plugin is translatable!