Version Description
- Removed extra (old and unused) js file.
- changed some back-end links to go to my new page, www.wpsteward.com
- realized that my use of tags in the WP repo miiiight have been a touch on the obnoxious and unhelpful side, so now I just use 3.
- successfully overthrew an oppressive regime in my 5-year-old's preschool "mystery reader" cartel. Take that, Fox in Socks.
Download this release
Release Info
Developer | ben.meredith@gmail.com |
Plugin | Better Click To Tweet |
Version | 4.6.2 |
Comparing to | |
See all releases |
Code changes from version 4.6.1 to 4.6.2
- assets/js/bctt_clicktotweet_plugin.js +0 -80
- bctt_options.php +2 -2
- better-click-to-tweet.php +2 -2
- languages/better-click-to-tweet-sr_RS.po +2 -2
- readme.txt +8 -2
assets/js/bctt_clicktotweet_plugin.js
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
(function () {
|
2 |
-
tinymce.create('tinymce.plugins.bctt_clicktotweet', {
|
3 |
-
init: function (ed, url) {
|
4 |
-
ed.addButton('bctt_clicktotweet', {
|
5 |
-
title: 'Add Tweetable Text',
|
6 |
-
image: url.replace("/js", "") + '/img/birdy_button.png',
|
7 |
-
onclick: function () {
|
8 |
-
var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
|
9 |
-
W = W - 10;
|
10 |
-
tb_show('Better Click To Tweet Shortcode Generator', '#TB_inline?width=' + W + '&height=auto' + '&inlineId=bctt-form');
|
11 |
-
}
|
12 |
-
});
|
13 |
-
},
|
14 |
-
createControl: function (n, cm) {
|
15 |
-
return null;
|
16 |
-
},
|
17 |
-
getInfo: function () {
|
18 |
-
return {
|
19 |
-
longname: "Click To Tweet by BenUNC",
|
20 |
-
author: 'Ben Meredith',
|
21 |
-
authorurl: 'http://benandjacq.com/',
|
22 |
-
infourl: 'http://benandjacq.com/better-click-to-tweet',
|
23 |
-
version: "2.0"
|
24 |
-
};
|
25 |
-
}
|
26 |
-
});
|
27 |
-
tinymce.PluginManager.add('bctt_clicktotweet', tinymce.plugins.bctt_clicktotweet);
|
28 |
-
|
29 |
-
|
30 |
-
jQuery(function () {
|
31 |
-
// creates a form to be displayed everytime the button is clicked
|
32 |
-
var form = jQuery('<div id="bctt-form"><table id="bctt-table" class="form-table">\
|
33 |
-
<tr>\
|
34 |
-
<th><label for="bctt-tweet">Tweetable Quote</label></th>\
|
35 |
-
<td><p><textarea cols="70" id="bctt-tweet" name="tweet" /></p>\
|
36 |
-
<small>Enter the Tweet. Text will be automatically truncated to provide space for the link back to the post and (optional) your Twitter user name. </small></td>\
|
37 |
-
</tr>\
|
38 |
-
<tr>\
|
39 |
-
<th><label for="bctt-via">Include "via"?</label></th>\
|
40 |
-
<td><p><input type="radio" name="viamark" id="via" value="yes" checked />Yes\
|
41 |
-
<input type="radio" name="viamark" id="via" value="no" />No</br /></p>\
|
42 |
-
<small>Do you wand to add \"via @YourTwitterName\" to this tweet?</small></td>\
|
43 |
-
</tr>\
|
44 |
-
</table>\
|
45 |
-
<p class="submit">\
|
46 |
-
<input type="button" id="bctt-submit" class="button-primary" value="Insert Tweet" name="submit" />\
|
47 |
-
</p>\
|
48 |
-
</div>');
|
49 |
-
|
50 |
-
var table = form.find('table');
|
51 |
-
form.appendTo('body').hide();
|
52 |
-
|
53 |
-
// handles the click event of the submit button
|
54 |
-
form.find('#bctt-submit').click(function () {
|
55 |
-
// defines the options and their default values
|
56 |
-
|
57 |
-
var shortcode = '[bctt';
|
58 |
-
|
59 |
-
var value = table.find('#bctt-tweet').val();
|
60 |
-
|
61 |
-
if (value != '') {
|
62 |
-
shortcode += ' tweet="' + value + '"';
|
63 |
-
}
|
64 |
-
|
65 |
-
var viaChoice = table.find('input[name="viamark"]:checked').val();
|
66 |
-
|
67 |
-
if (viaChoice == "no") {
|
68 |
-
shortcode += ' via="no"';
|
69 |
-
}
|
70 |
-
|
71 |
-
shortcode += ']';
|
72 |
-
|
73 |
-
// inserts the shortcode into the active editor
|
74 |
-
tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
|
75 |
-
|
76 |
-
// closes Thickbox
|
77 |
-
tb_remove();
|
78 |
-
});
|
79 |
-
});
|
80 |
-
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bctt_options.php
CHANGED
@@ -58,7 +58,7 @@ function bctt_settings_page() {
|
|
58 |
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form"
|
59 |
class="validate" target="_blank" novalidate>
|
60 |
<div id="mc_embed_signup_scroll">
|
61 |
-
<p> <?php echo sprintf( __( 'This plugin is developed by <a href="%s">Ben Meredith</a>. I am a freelance developer specializing in <a href="%s">outrunning and outsmarting hackers</a>.', 'better-click-to-tweet' ), esc_url( '
|
62 |
<h4><?php _e( 'Sign up to receive my FREE web strategy guide', 'better-click-to-tweet' ); ?></h4>
|
63 |
|
64 |
<p><input type="email" value="" name="EMAIL" class="widefat" id="mce-EMAIL"
|
@@ -156,7 +156,7 @@ function bctt_settings_page() {
|
|
156 |
<p><input type="submit" class="button-primary"
|
157 |
value="<?php _e( 'Save Changes', 'better-click-to-tweet' ); ?>"/></p>
|
158 |
<br class="clear"/>
|
159 |
-
<em><?php $url = '
|
160 |
$link = sprintf( __( 'An open source plugin by <a href=%s>Ben Meredith</a>', 'better-click-to-tweet' ), esc_url( $url ) );
|
161 |
echo $link; ?></em>
|
162 |
</form>
|
58 |
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form"
|
59 |
class="validate" target="_blank" novalidate>
|
60 |
<div id="mc_embed_signup_scroll">
|
61 |
+
<p> <?php echo sprintf( __( 'This plugin is developed by <a href="%s">Ben Meredith</a>. I am a freelance developer specializing in <a href="%s">outrunning and outsmarting hackers</a>.', 'better-click-to-tweet' ), esc_url( 'https://www.wpsteward.com' ), esc_url( 'https://www.wpsteward.com/service-plans' ) ); ?></p>
|
62 |
<h4><?php _e( 'Sign up to receive my FREE web strategy guide', 'better-click-to-tweet' ); ?></h4>
|
63 |
|
64 |
<p><input type="email" value="" name="EMAIL" class="widefat" id="mce-EMAIL"
|
156 |
<p><input type="submit" class="button-primary"
|
157 |
value="<?php _e( 'Save Changes', 'better-click-to-tweet' ); ?>"/></p>
|
158 |
<br class="clear"/>
|
159 |
+
<em><?php $url = 'https://www.wpsteward.com';
|
160 |
$link = sprintf( __( 'An open source plugin by <a href=%s>Ben Meredith</a>', 'better-click-to-tweet' ), esc_url( $url ) );
|
161 |
echo $link; ?></em>
|
162 |
</form>
|
better-click-to-tweet.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
/*
|
3 |
Plugin Name: Better Click To Tweet
|
4 |
Description: Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
|
5 |
-
Version: 4.6.
|
6 |
Author: Ben Meredith
|
7 |
-
Author URI:
|
8 |
Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
9 |
License: GPL2
|
10 |
Text Domain: better-click-to-tweet
|
2 |
/*
|
3 |
Plugin Name: Better Click To Tweet
|
4 |
Description: Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
|
5 |
+
Version: 4.6.2
|
6 |
Author: Ben Meredith
|
7 |
+
Author URI: https://www.wpsteward.com
|
8 |
Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
9 |
License: GPL2
|
10 |
Text Domain: better-click-to-tweet
|
languages/better-click-to-tweet-sr_RS.po
CHANGED
@@ -151,5 +151,5 @@ msgid "Ben Meredith"
|
|
151 |
msgstr "Ben Meredith"
|
152 |
|
153 |
#. Author URI of the plugin/theme
|
154 |
-
msgid "
|
155 |
-
msgstr "
|
151 |
msgstr "Ben Meredith"
|
152 |
|
153 |
#. Author URI of the plugin/theme
|
154 |
+
msgid "https://www.wpsteward.com"
|
155 |
+
msgstr "https://www.wpsteward.com"
|
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,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 4.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -109,6 +109,12 @@ I want to maximize the usefulness of this plugin by translating it into multiple
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= 4.6.1 =
|
113 |
* Removed call to external twitter script for security concerns.
|
114 |
* changed some wording on the description.
|
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,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 4.6.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 4.6.2 =
|
113 |
+
* Removed extra (old and unused) js file.
|
114 |
+
* changed some back-end links to go to my new page, www.wpsteward.com
|
115 |
+
* realized that my use of tags in the WP repo miiiight have been a touch on the obnoxious and unhelpful side, so now I just use 3.
|
116 |
+
* successfully overthrew an oppressive regime in my 5-year-old's preschool "mystery reader" cartel. Take that, Fox in Socks.
|
117 |
+
|
118 |
= 4.6.1 =
|
119 |
* Removed call to external twitter script for security concerns.
|
120 |
* changed some wording on the description.
|