Version Description
- Fix made the settings page more accessible with the help of Rachel Cherry's fantastic wa11y plugin. https://wordpress.org/plugins/wa11y/ Thanks Rachel!
- Started tinkering with Gutenberg compatibility, the new editor experience coming to WordPress, to make BCTT compatible with the Future of WordPress (no file changes on this, just wnate to let you know it's on the radar. Learn more at https://wordpress.org/gutenberg
Download this release
Release Info
Developer | ben.meredith@gmail.com |
Plugin | Better Click To Tweet |
Version | 5.4.1 |
Comparing to | |
See all releases |
Code changes from version 5.4 to 5.4.1
- assets/css/bctt-admin.css +4 -0
- bctt_options.php +16 -7
- better-click-to-tweet.php +1 -1
- readme.txt +5 -1
assets/css/bctt-admin.css
CHANGED
@@ -2,6 +2,10 @@
|
|
2 |
float:right;
|
3 |
margin-right: -300px;
|
4 |
}
|
|
|
|
|
|
|
|
|
5 |
@media only screen and (max-width: 850px) {
|
6 |
#post-box-container-1 {
|
7 |
|
2 |
float:right;
|
3 |
margin-right: -300px;
|
4 |
}
|
5 |
+
.bctt-signup {
|
6 |
+
font-size:unset;
|
7 |
+
}
|
8 |
+
|
9 |
@media only screen and (max-width: 850px) {
|
10 |
#post-box-container-1 {
|
11 |
|
bctt_options.php
CHANGED
@@ -8,6 +8,8 @@ add_filter( 'tiny_mce_version', 'refresh_mce' );
|
|
8 |
// Add button to visual editor
|
9 |
include dirname( __FILE__ ) . '/assets/tinymce/bctt-tinymce.php';
|
10 |
|
|
|
|
|
11 |
// instantiate i18n encouragement module
|
12 |
$bctt_i18n = new bctt_i18n(
|
13 |
array(
|
@@ -120,16 +122,16 @@ function bctt_settings_page() {
|
|
120 |
<table class="form-table">
|
121 |
<tr valign="top">
|
122 |
<th style="width: 200px;">
|
123 |
-
<label><?php _ex( 'Your Twitter Handle', 'label for text input on settings screen', 'better-click-to-tweet' ); ?></label>
|
124 |
</th>
|
125 |
-
<td><input type="text" name="bctt-twitter-handle"
|
126 |
value="<?php echo esc_attr( get_option( 'bctt-twitter-handle' ) ); ?>"/>
|
127 |
</td>
|
128 |
<tr valign="top">
|
129 |
<th style="width: 200px;">
|
130 |
-
<label><?php _ex( 'Use Short URL?', 'label for checkbox on settings screen', 'better-click-to-tweet' ); ?></label>
|
131 |
</th>
|
132 |
-
<td><input type="checkbox" name="bctt-short-url"
|
133 |
value="1" <?php if ( 1 == get_option( 'bctt-short-url' ) ) {
|
134 |
echo 'checked="checked"';
|
135 |
} ?>" />
|
@@ -190,13 +192,20 @@ function bctt_settings_page() {
|
|
190 |
class="validate" target="_blank" novalidate>
|
191 |
<div id="mc_embed_signup_scroll">
|
192 |
<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>
|
193 |
-
<
|
194 |
|
195 |
-
<p><
|
|
|
|
|
|
|
196 |
placeholder="<?php _ex( 'Your Email Address', 'placeholder text for input field', 'better-click-to-tweet' ); ?>">
|
197 |
<small><?php _e( 'No Spam. One-click unsubscribe in every message', 'better-click-to-tweet' ); ?></small>
|
198 |
</p>
|
199 |
-
<div style="position: absolute; left: -5000px;"
|
|
|
|
|
|
|
|
|
200 |
name="b_8f88921110b81f81744101f4d_bd909b5f89"
|
201 |
tabindex="-1" value="">
|
202 |
</div>
|
8 |
// Add button to visual editor
|
9 |
include dirname( __FILE__ ) . '/assets/tinymce/bctt-tinymce.php';
|
10 |
|
11 |
+
include dirname( __FILE__ ) . '/assets/gutenberg/index.php';
|
12 |
+
|
13 |
// instantiate i18n encouragement module
|
14 |
$bctt_i18n = new bctt_i18n(
|
15 |
array(
|
122 |
<table class="form-table">
|
123 |
<tr valign="top">
|
124 |
<th style="width: 200px;">
|
125 |
+
<label for="bctt-twitter-handle"><?php _ex( 'Your Twitter Handle', 'label for text input on settings screen', 'better-click-to-tweet' ); ?></label>
|
126 |
</th>
|
127 |
+
<td><input id="bctt-twitter-handle" type="text" name="bctt-twitter-handle"
|
128 |
value="<?php echo esc_attr( get_option( 'bctt-twitter-handle' ) ); ?>"/>
|
129 |
</td>
|
130 |
<tr valign="top">
|
131 |
<th style="width: 200px;">
|
132 |
+
<label for="bctt-short-url"><?php _ex( 'Use Short URL?', 'label for checkbox on settings screen', 'better-click-to-tweet' ); ?></label>
|
133 |
</th>
|
134 |
+
<td><input id="bctt-short-url" type="checkbox" name="bctt-short-url"
|
135 |
value="1" <?php if ( 1 == get_option( 'bctt-short-url' ) ) {
|
136 |
echo 'checked="checked"';
|
137 |
} ?>" />
|
192 |
class="validate" target="_blank" novalidate>
|
193 |
<div id="mc_embed_signup_scroll">
|
194 |
<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>
|
195 |
+
<h3 class="bctt-signup"><?php _e( 'Sign up to receive my FREE web strategy guide', 'better-click-to-tweet' ); ?></h3>
|
196 |
|
197 |
+
<p><label for="bctt-email-signup" class="hidden">
|
198 |
+
Your Email Address
|
199 |
+
</label>
|
200 |
+
<input id="bctt-email-signup" type="email" value="" name="EMAIL" class="widefat" id="mce-EMAIL"
|
201 |
placeholder="<?php _ex( 'Your Email Address', 'placeholder text for input field', 'better-click-to-tweet' ); ?>">
|
202 |
<small><?php _e( 'No Spam. One-click unsubscribe in every message', 'better-click-to-tweet' ); ?></small>
|
203 |
</p>
|
204 |
+
<div style="position: absolute; left: -5000px;">
|
205 |
+
<label for="bctt-mailchimp-subscribe-hidden" class="hidden">
|
206 |
+
Hidden field for MailChimp verification
|
207 |
+
</label>
|
208 |
+
<input id="bctt-mailchimp-subscribe-hidden" type="text"
|
209 |
name="b_8f88921110b81f81744101f4d_bd909b5f89"
|
210 |
tabindex="-1" value="">
|
211 |
</div>
|
better-click-to-tweet.php
CHANGED
@@ -2,7 +2,7 @@
|
|
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: 5.4
|
6 |
Author: Ben Meredith
|
7 |
Author URI: https://www.betterclicktotweet.com
|
8 |
Plugin URI: https://wordpress.org/plugins/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: 5.4.1
|
6 |
Author: Ben Meredith
|
7 |
Author URI: https://www.betterclicktotweet.com
|
8 |
Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wpsteward.com/donations/plugin-support/
|
|
4 |
Tags: click to tweet, twitter, tweet,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 5.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -101,6 +101,10 @@ Donations: http://benlikes.us/donate
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
104 |
= 5.4 =
|
105 |
* Enhancement — Now supports Twitter's new 280 character limit. Note that non-roman characters may effect the new truncation in strange ways. Please report any such strangeness to me in the support forums.
|
106 |
* Enhancement — updated some links in the back end to link to the all new (and still kinda bland) https://www.betterclicktotweet.com
|
4 |
Tags: click to tweet, twitter, tweet,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 5.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 5.4.1 =
|
105 |
+
* Fix — made the settings page more accessible with the help of Rachel Cherry's fantastic wa11y plugin. https://wordpress.org/plugins/wa11y/ Thanks Rachel!
|
106 |
+
* Started tinkering with Gutenberg compatibility, the new editor experience coming to WordPress, to make BCTT compatible with the Future of WordPress (no file changes on this, just wnate to let you know it's on the radar. Learn more at https://wordpress.org/gutenberg
|
107 |
+
|
108 |
= 5.4 =
|
109 |
* Enhancement — Now supports Twitter's new 280 character limit. Note that non-roman characters may effect the new truncation in strange ways. Please report any such strangeness to me in the support forums.
|
110 |
* Enhancement — updated some links in the back end to link to the all new (and still kinda bland) https://www.betterclicktotweet.com
|