-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" /> | ||
|
@@ -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> | ||
|
@@ -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" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ | ||
|
@@ -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+ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters