Version Description
- Fix: Use Core's screen reader CSS instead of the old custom one. Props Sallie Goetsch.
Download this release
Release Info
| Developer | kraftbj |
| Plugin | |
| Version | 2.1.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.2 to 2.1.3
- class-bjgk-genesis-enews-extended.php +8 -8
- plugin.php +2 -19
- readme.txt +4 -1
class-bjgk-genesis-enews-extended.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Genesis eNews Extended
|
| 4 |
*
|
| 5 |
* @package BJGK\Genesis_enews_extended
|
| 6 |
-
* @version 2.1.
|
| 7 |
* @author Brandon Kraft <public@brandonkraft.com>
|
| 8 |
* @link https://kraft.blog/genesis-enews-extended/
|
| 9 |
* @copyright Copyright (c) 2012-2018, Brandon Kraft
|
|
@@ -143,7 +143,7 @@ class BJGK_Genesis_ENews_Extended extends WP_Widget {
|
|
| 143 |
on="<?php echo esc_attr( sprintf( 'submit-success:AMP.navigateTo( url=%s, target=_blank )', wp_json_encode( 'https://feedburner.google.com/fb/a/mailverify?uri=' . $instance['id'], JSON_UNESCAPED_SLASHES ) ) ); ?>"
|
| 144 |
<?php endif; ?>
|
| 145 |
xmlns="http://www.w3.org/1999/html">
|
| 146 |
-
<label class="
|
| 147 |
<?php
|
| 148 |
if ( current_theme_supports( 'html5' ) ) :
|
| 149 |
?>
|
|
@@ -170,12 +170,12 @@ class BJGK_Genesis_ENews_Extended extends WP_Widget {
|
|
| 170 |
<?php
|
| 171 |
if ( ! empty( $instance['fname-field'] ) ) :
|
| 172 |
?>
|
| 173 |
-
<label class="
|
| 174 |
<?php
|
| 175 |
if ( ! empty( $instance['lname-field'] ) ) :
|
| 176 |
?>
|
| 177 |
-
<label class="
|
| 178 |
-
<label class="
|
| 179 |
<?php
|
| 180 |
if ( current_theme_supports( 'html5' ) ) :
|
| 181 |
?>
|
|
@@ -198,12 +198,12 @@ class BJGK_Genesis_ENews_Extended extends WP_Widget {
|
|
| 198 |
<?php
|
| 199 |
if ( isset( $instance['mailpoet-show-fname'] ) ) :
|
| 200 |
?>
|
| 201 |
-
<label class="
|
| 202 |
<?php
|
| 203 |
if ( isset( $instance['mailpoet-show-lname'] ) ) :
|
| 204 |
?>
|
| 205 |
-
<label class="
|
| 206 |
-
<label class="
|
| 207 |
<?php
|
| 208 |
if ( current_theme_supports( 'html5' ) ) :
|
| 209 |
?>
|
| 3 |
* Genesis eNews Extended
|
| 4 |
*
|
| 5 |
* @package BJGK\Genesis_enews_extended
|
| 6 |
+
* @version 2.1.3
|
| 7 |
* @author Brandon Kraft <public@brandonkraft.com>
|
| 8 |
* @link https://kraft.blog/genesis-enews-extended/
|
| 9 |
* @copyright Copyright (c) 2012-2018, Brandon Kraft
|
| 143 |
on="<?php echo esc_attr( sprintf( 'submit-success:AMP.navigateTo( url=%s, target=_blank )', wp_json_encode( 'https://feedburner.google.com/fb/a/mailverify?uri=' . $instance['id'], JSON_UNESCAPED_SLASHES ) ) ); ?>"
|
| 144 |
<?php endif; ?>
|
| 145 |
xmlns="http://www.w3.org/1999/html">
|
| 146 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['input_text'] ); ?><input type="<?php echo current_theme_supports( 'html5' ) ? 'email' : 'text'; ?>" value="" id="subbox" placeholder="<?php echo esc_attr( $instance['input_text'] ); ?>" name="email"
|
| 147 |
<?php
|
| 148 |
if ( current_theme_supports( 'html5' ) ) :
|
| 149 |
?>
|
| 170 |
<?php
|
| 171 |
if ( ! empty( $instance['fname-field'] ) ) :
|
| 172 |
?>
|
| 173 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['fname_text'] ); ?><input type="text" id="subbox1" class="enews-subbox" value="" placeholder="<?php echo esc_attr( $instance['fname_text'] ); ?>" name="<?php echo esc_attr( $instance['fname-field'] ); ?>" /></label><?php endif ?>
|
| 174 |
<?php
|
| 175 |
if ( ! empty( $instance['lname-field'] ) ) :
|
| 176 |
?>
|
| 177 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['lname_text'] ); ?><input type="text" id="subbox2" class="enews-subbox" value="" placeholder="<?php echo esc_attr( $instance['lname_text'] ); ?>" name="<?php echo esc_attr( $instance['lname-field'] ); ?>" /></label><?php endif ?>
|
| 178 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['input_text'] ); ?><input type="<?php echo current_theme_supports( 'html5' ) ? 'email' : 'text'; ?>" value="" id="subbox" placeholder="<?php echo esc_attr( $instance['input_text'] ); ?>" name="<?php echo esc_js( $instance['email-field'] ); ?>"
|
| 179 |
<?php
|
| 180 |
if ( current_theme_supports( 'html5' ) ) :
|
| 181 |
?>
|
| 198 |
<?php
|
| 199 |
if ( isset( $instance['mailpoet-show-fname'] ) ) :
|
| 200 |
?>
|
| 201 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['fname_text'] ); ?><input type="text" id="subbox1" class="enews-subbox" value="" placeholder="<?php echo esc_attr( $instance['fname_text'] ); ?>" name="mailpoet-firstname" /></label><?php endif ?>
|
| 202 |
<?php
|
| 203 |
if ( isset( $instance['mailpoet-show-lname'] ) ) :
|
| 204 |
?>
|
| 205 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['lname_text'] ); ?><input type="text" id="subbox2" class="enews-subbox" value="" placeholder="<?php echo esc_attr( $instance['lname_text'] ); ?>" name="mailpoet-lastname" /></label><?php endif ?>
|
| 206 |
+
<label class="screen-reader-text"><?php echo esc_attr( $instance['input_text'] ); ?><input type="<?php echo current_theme_supports( 'html5' ) ? 'email' : 'text'; ?>" value="" id="subbox" placeholder="<?php echo esc_attr( $instance['input_text'] ); ?>" name="mailpoet-email"
|
| 207 |
<?php
|
| 208 |
if ( current_theme_supports( 'html5' ) ) :
|
| 209 |
?>
|
plugin.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Genesis eNews Extended
|
| 4 |
*
|
| 5 |
* @package BJGK\Genesis_enews_extended
|
| 6 |
-
* @version 2.1.
|
| 7 |
* @author Brandon Kraft <public@brandonkraft.com>
|
| 8 |
* @copyright Copyright (c) 2012-2020, Brandon Kraft
|
| 9 |
* @link https://kraft.blog/genesis-enews-extended/
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
* Plugin Name: Genesis eNews Extended
|
| 14 |
* Plugin URI: https://kraft.blog/genesis-enews-extended/
|
| 15 |
* Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
|
| 16 |
-
* Version: 2.1.
|
| 17 |
* Author: Brandon Kraft
|
| 18 |
* Author URI: https://kraft.blog/
|
| 19 |
* License: GPL-2.0+
|
|
@@ -57,20 +57,3 @@ add_action( 'widgets_init', 'bjgk_genesis_enews_load_widgets' );
|
|
| 57 |
function bjgk_genesis_enews_load_widgets() {
|
| 58 |
register_widget( 'BJGK_Genesis_ENews_Extended' );
|
| 59 |
}
|
| 60 |
-
|
| 61 |
-
/**
|
| 62 |
-
* Adds CSS for screenreaders.
|
| 63 |
-
*
|
| 64 |
-
* @since 0.1.0
|
| 65 |
-
*/
|
| 66 |
-
function bjgk_genesis_enews_css() {
|
| 67 |
-
echo '<style type="text/css"> .enews .screenread :not( input, textarea ){
|
| 68 |
-
height: 1px;
|
| 69 |
-
left: -1000em;
|
| 70 |
-
overflow: hidden;
|
| 71 |
-
position: absolute;
|
| 72 |
-
top: -1000em;
|
| 73 |
-
width: 1px; } </style>';
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
add_action( 'wp_head', 'bjgk_genesis_enews_css' );
|
| 3 |
* Genesis eNews Extended
|
| 4 |
*
|
| 5 |
* @package BJGK\Genesis_enews_extended
|
| 6 |
+
* @version 2.1.3
|
| 7 |
* @author Brandon Kraft <public@brandonkraft.com>
|
| 8 |
* @copyright Copyright (c) 2012-2020, Brandon Kraft
|
| 9 |
* @link https://kraft.blog/genesis-enews-extended/
|
| 13 |
* Plugin Name: Genesis eNews Extended
|
| 14 |
* Plugin URI: https://kraft.blog/genesis-enews-extended/
|
| 15 |
* Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
|
| 16 |
+
* Version: 2.1.3
|
| 17 |
* Author: Brandon Kraft
|
| 18 |
* Author URI: https://kraft.blog/
|
| 19 |
* License: GPL-2.0+
|
| 57 |
function bjgk_genesis_enews_load_widgets() {
|
| 58 |
register_widget( 'BJGK_Genesis_ENews_Extended' );
|
| 59 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
|
@@ -6,7 +6,7 @@ Requires at least: 4.9.6
|
|
| 6 |
Requires PHP: 5.4.0
|
| 7 |
Tested up to: 5.6.0
|
| 8 |
Text Domain: genesis-enews-extended
|
| 9 |
-
Stable tag: 2.1.
|
| 10 |
|
| 11 |
Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz, ConvertKit and more.
|
| 12 |
|
|
@@ -51,6 +51,9 @@ Questions can be asked at the [WordPress.org Support Forum](https://wordpress.or
|
|
| 51 |
2. Widget setting screen.
|
| 52 |
|
| 53 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 54 |
= 2.1.2 =
|
| 55 |
* Accessibility: Updates <label> to be implicit to eliminate duplication when multiple instances are used on a page.
|
| 56 |
* Coding Standards: Implement WPCS.
|
| 6 |
Requires PHP: 5.4.0
|
| 7 |
Tested up to: 5.6.0
|
| 8 |
Text Domain: genesis-enews-extended
|
| 9 |
+
Stable tag: 2.1.3
|
| 10 |
|
| 11 |
Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz, ConvertKit and more.
|
| 12 |
|
| 51 |
2. Widget setting screen.
|
| 52 |
|
| 53 |
== Changelog ==
|
| 54 |
+
= 2.1.3 =
|
| 55 |
+
* Fix: Use Core's screen reader CSS instead of the old custom one. Props Sallie Goetsch.
|
| 56 |
+
|
| 57 |
= 2.1.2 =
|
| 58 |
* Accessibility: Updates <label> to be implicit to eliminate duplication when multiple instances are used on a page.
|
| 59 |
* Coding Standards: Implement WPCS.
|
