Skip to content

Commit

Permalink
Merge branch 'release/2.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj committed Oct 24, 2020
2 parents 0a1c379 + 52e1aba commit 65e2a75
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions class-bjgk-genesis-enews-extended.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Genesis eNews Extended
*
* @package BJGK\Genesis_enews_extended
* @version 2.1.3
* @version 2.1.4
* @author Brandon Kraft <[email protected]>
* @link https://kraft.blog/genesis-enews-extended/
* @copyright Copyright (c) 2012-2018, Brandon Kraft
Expand Down Expand Up @@ -143,11 +143,11 @@ public function widget( $args, $instance ) {
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 ) ) ); ?>"
<?php endif; ?>
xmlns="http://www.w3.org/1999/html">
<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"
<<input type="<?php echo current_theme_supports( 'html5' ) ? 'email' : 'text'; ?>" value="" id="subbox" aria-label="<?php echo esc_attr( $instance['input_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['input_text'] ); ?>" name="email"
<?php
if ( current_theme_supports( 'html5' ) ) :
?>
required="required"<?php endif; ?> /></label>
required="required"<?php endif; ?> />
<input type="hidden" name="uri" value="<?php echo esc_attr( $instance['id'] ); ?>" />
<input type="hidden" name="loc" value="<?php echo esc_attr( get_locale() ); ?>" />
<input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
Expand All @@ -170,16 +170,16 @@ public function widget( $args, $instance ) {
<?php
if ( ! empty( $instance['fname-field'] ) ) :
?>
<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 ?>
<input type="text" id="subbox1" class="enews-subbox" value="" aria-label="<?php echo esc_attr( $instance['fname_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['fname_text'] ); ?>" name="<?php echo esc_attr( $instance['fname-field'] ); ?>" /><?php endif ?>
<?php
if ( ! empty( $instance['lname-field'] ) ) :
?>
<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 ?>
<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'] ); ?>"
<input type="text" id="subbox2" class="enews-subbox" value="" aria-label="<?php echo esc_attr( $instance['lname_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['lname_text'] ); ?>" name="<?php echo esc_attr( $instance['lname-field'] ); ?>" /><?php endif ?>
<input type="<?php echo current_theme_supports( 'html5' ) ? 'email' : 'text'; ?>" value="" id="subbox" aria-label="<?php echo esc_attr( $instance['input_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['input_text'] ); ?>" name="<?php echo esc_js( $instance['email-field'] ); ?>"
<?php
if ( current_theme_supports( 'html5' ) ) :
?>
required="required"<?php endif; ?> /></label>
required="required"<?php endif; ?> />
<?php echo $instance['hidden_fields']; // phpcs:ignore ?>
<input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
</form>
Expand All @@ -198,16 +198,16 @@ public function widget( $args, $instance ) {
<?php
if ( isset( $instance['mailpoet-show-fname'] ) ) :
?>
<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 ?>
<input type="text" id="subbox1" class="enews-subbox" value="" aria-label="<?php echo esc_attr( $instance['fname_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['fname_text'] ); ?>" name="mailpoet-firstname" /><?php endif ?>
<?php
if ( isset( $instance['mailpoet-show-lname'] ) ) :
?>
<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 ?>
<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"
<input type="text" id="subbox2" class="enews-subbox" value="" aria-label="<?php echo esc_attr( $instance['lname_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['lname_text'] ); ?>" name="mailpoet-lastname" /><?php endif ?>
<input type="<?php echo current_theme_supports( 'html5' ) ? 'email' : 'text'; ?>" value="" id="subbox" aria-label="<?php echo esc_attr( $instance['input_text'] ); ?>" placeholder="<?php echo esc_attr( $instance['input_text'] ); ?>" name="mailpoet-email"
<?php
if ( current_theme_supports( 'html5' ) ) :
?>
required="required"<?php endif; ?> /></label>
required="required"<?php endif; ?> />
<?php echo $instance['hidden_fields']; // phpcs:ignore ?>
<input type="hidden" name="submission-type" value="mailpoet" />
<input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Genesis eNews Extended
*
* @package BJGK\Genesis_enews_extended
* @version 2.1.3
* @version 2.1.4
* @author Brandon Kraft <[email protected]>
* @copyright Copyright (c) 2012-2020, Brandon Kraft
* @link https://kraft.blog/genesis-enews-extended/
Expand All @@ -13,7 +13,7 @@
* Plugin Name: Genesis eNews Extended
* Plugin URI: https://kraft.blog/genesis-enews-extended/
* Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
* Version: 2.1.3
* Version: 2.1.4
* Author: Brandon Kraft
* Author URI: https://kraft.blog/
* License: GPL-2.0+
Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires at least: 4.9.6
Requires PHP: 5.4.0
Tested up to: 5.6.0
Text Domain: genesis-enews-extended
Stable tag: 2.1.3
Stable tag: 2.1.2

Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz, ConvertKit and more.

Expand Down Expand Up @@ -51,8 +51,8 @@ Questions can be asked at the [WordPress.org Support Forum](https://wordpress.or
2. Widget setting screen.

== Changelog ==
= 2.1.3 =
* Fix: Use Core's screen reader CSS instead of the old custom one. Props Sallie Goetsch.
= 2.1.4 =
* Accessibility: Use aria-label instead of <label> to prevent CSS being either over-agressive or not enough.

= 2.1.2 =
* Accessibility: Updates <label> to be implicit to eliminate duplication when multiple instances are used on a page.
Expand Down

0 comments on commit 65e2a75

Please sign in to comment.