Genesis eNews Extended - Version 0.1.6

Version Description

  • Makes available first and last name fields.
Download this release

Release Info

Developer kraftbj
Plugin Icon wp plugin Genesis eNews Extended
Version 0.1.6
Comparing to
See all releases

Code changes from version 0.1.5 to 0.1.6

Files changed (2) hide show
  1. plugin.php +6 -6
  2. readme.txt +17 -2
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Genesis eNews Extended
4
  * Plugin URI: http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/
5
  * Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
6
- * Version: 0.1.5
7
  * Author: Brandon Kraft
8
  * Author URI: http://www.brandonkraft.com
9
  *
@@ -17,7 +17,7 @@
17
  * Code based on original eNews Widget in the Genesis Framework by StudioPress - http://www.studiopress.com
18
  *
19
  * @package BJGK_Genesis_enews_extended
20
- * @version 0.1.5
21
  * @author Brandon Kraft <bk@kraft.im>
22
  * @copyright Copyright (c) 2012, Brandon Kraft
23
  * @link http://www.brandonkraft.com
@@ -100,8 +100,8 @@ function bjgk_genesis_enews_load_translations() {
100
  </form>
101
  <?php elseif ( ! empty( $instance['action'] ) ) : ?>
102
  <form id="subscribe" action="<?php echo esc_js( $instance['action'] ); ?>" method="post" <?php if ($instance['open_same_window'] == 0 ) : ?> target="_blank"<?php endif; ?>>
103
- <!-- <?php if ( ! empty($instance['fname-field'] ) ) : ?><input type="text" id="subbox1" value="First Name" onfocus="if ( this.value == 'First Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'First Name'; }" name="<?php echo esc_js( $instance['fname-field'] ); ?>" /><?php endif ?>
104
- <?php if ( ! empty($instance['lname-field'] ) ) : ?><input type="text" id="subbox2" value="Last Name" onfocus="if ( this.value == 'Last Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'Last Name'; }" name="<?php echo esc_js( $instance['lname-field'] ); ?>" /><?php endif ?> -->
105
  <input type="text" value="<?php echo esc_attr( $instance['input_text'] ); ?>" id="subbox" onfocus="if ( this.value == '<?php echo esc_js( $instance['input_text'] ); ?>') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php echo esc_js( $instance['input_text'] ); ?>'; }" name="<?php echo esc_js( $instance['email-field'] ); ?>" />
106
  <?php echo $instance['hidden_fields']; ?>
107
  <input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
@@ -169,7 +169,7 @@ function bjgk_genesis_enews_load_translations() {
169
  <input type="text" id="<?php echo $this->get_field_id( 'email-field' ); ?>" name="<?php echo $this->get_field_name( 'email-field' ); ?>" value="<?php echo esc_attr( $instance['email-field'] ); ?>" class="widefat" />
170
  </p>
171
 
172
- <!-- <p>
173
  <label for="<?php echo $this->get_field_id( 'fname-field' ); ?>"><?php _e( 'First Name Field', 'genesis-enews-extended' ); ?>:</label>
174
  <input type="text" id="<?php echo $this->get_field_id( 'fname-field' ); ?>" name="<?php echo $this->get_field_name( 'fname-field' ); ?>" value="<?php echo esc_attr( $instance['fname-field'] ); ?>" class="widefat" />
175
  </p>
@@ -177,7 +177,7 @@ function bjgk_genesis_enews_load_translations() {
177
  <p>
178
  <label for="<?php echo $this->get_field_id( 'lname-field' ); ?>"><?php _e( 'Last Name Field', 'genesis-enews-extended' ); ?>:</label>
179
  <input type="text" id="<?php echo $this->get_field_id( 'lname-field' ); ?>" name="<?php echo $this->get_field_name( 'lname-field' ); ?>" value="<?php echo esc_attr( $instance['lname-field'] ); ?>" class="widefat" />
180
- </p> -->
181
 
182
  <p>
183
  <label for="<?php echo $this->get_field_id( 'hidden_fields' ); ?>"><?php _e( 'Hidden Fields', 'genesis-enews-extended' ); ?>:</label>
3
  * Plugin Name: Genesis eNews Extended
4
  * Plugin URI: http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/
5
  * Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
6
+ * Version: 0.1.6
7
  * Author: Brandon Kraft
8
  * Author URI: http://www.brandonkraft.com
9
  *
17
  * Code based on original eNews Widget in the Genesis Framework by StudioPress - http://www.studiopress.com
18
  *
19
  * @package BJGK_Genesis_enews_extended
20
+ * @version 0.1.6
21
  * @author Brandon Kraft <bk@kraft.im>
22
  * @copyright Copyright (c) 2012, Brandon Kraft
23
  * @link http://www.brandonkraft.com
100
  </form>
101
  <?php elseif ( ! empty( $instance['action'] ) ) : ?>
102
  <form id="subscribe" action="<?php echo esc_js( $instance['action'] ); ?>" method="post" <?php if ($instance['open_same_window'] == 0 ) : ?> target="_blank"<?php endif; ?>>
103
+ <?php if ( ! empty($instance['fname-field'] ) ) : ?><input type="text" id="subbox1" class="enews-subbox" value="First Name" onfocus="if ( this.value == 'First Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'First Name'; }" name="<?php echo esc_js( $instance['fname-field'] ); ?>" /><?php endif ?>
104
+ <?php if ( ! empty($instance['lname-field'] ) ) : ?><input type="text" id="subbox2" class="enews-subbox" value="Last Name" onfocus="if ( this.value == 'Last Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'Last Name'; }" name="<?php echo esc_js( $instance['lname-field'] ); ?>" /><?php endif ?>
105
  <input type="text" value="<?php echo esc_attr( $instance['input_text'] ); ?>" id="subbox" onfocus="if ( this.value == '<?php echo esc_js( $instance['input_text'] ); ?>') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php echo esc_js( $instance['input_text'] ); ?>'; }" name="<?php echo esc_js( $instance['email-field'] ); ?>" />
106
  <?php echo $instance['hidden_fields']; ?>
107
  <input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
169
  <input type="text" id="<?php echo $this->get_field_id( 'email-field' ); ?>" name="<?php echo $this->get_field_name( 'email-field' ); ?>" value="<?php echo esc_attr( $instance['email-field'] ); ?>" class="widefat" />
170
  </p>
171
 
172
+ <p>
173
  <label for="<?php echo $this->get_field_id( 'fname-field' ); ?>"><?php _e( 'First Name Field', 'genesis-enews-extended' ); ?>:</label>
174
  <input type="text" id="<?php echo $this->get_field_id( 'fname-field' ); ?>" name="<?php echo $this->get_field_name( 'fname-field' ); ?>" value="<?php echo esc_attr( $instance['fname-field'] ); ?>" class="widefat" />
175
  </p>
177
  <p>
178
  <label for="<?php echo $this->get_field_id( 'lname-field' ); ?>"><?php _e( 'Last Name Field', 'genesis-enews-extended' ); ?>:</label>
179
  <input type="text" id="<?php echo $this->get_field_id( 'lname-field' ); ?>" name="<?php echo $this->get_field_name( 'lname-field' ); ?>" value="<?php echo esc_attr( $instance['lname-field'] ); ?>" class="widefat" />
180
+ </p>
181
 
182
  <p>
183
  <label for="<?php echo $this->get_field_id( 'hidden_fields' ); ?>"><?php _e( 'Hidden Fields', 'genesis-enews-extended' ); ?>:</label>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.brandonkraft.com/donate/
4
  Tags: genesis
5
  Requires at least: 3.0
6
  Tested up to: 3.5
7
- Stable tag: 0.1.5
8
 
9
  Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz and more.
10
 
@@ -18,6 +18,7 @@ Creates a new widget to easily add mailing lists to a Genesis website. Recommend
18
  1. Activate the plugin through the 'Plugins' menu in WordPress
19
  1. In Appearance->Widgerts, add Genesis eNews Extended widget to any sidebar.
20
  1. Using the mailing list contact form code provided by your vendor, add the form action URL, the form field ID for the e-mail field and any hidden fields (not all services use them) into the widget options.
 
21
  1. Verify it works!
22
 
23
  == Frequently Asked Questions ==
@@ -30,6 +31,14 @@ Feedburner, MailChimp, Aweber, FeedBlitz and Constant Contact are confirmed to w
30
 
31
  That is intentional. You don't want to knock people off your site and leave them on FeedBurner's.
32
 
 
 
 
 
 
 
 
 
33
  = I need help! Where I can get it? =
34
 
35
  "Official" tutorials will be maintained on the [plugin's website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/).
@@ -42,6 +51,9 @@ Questions can be asked at the [WordPress.org Support Forum](http://wordpress.org
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 0.1.5 =
46
  * Adds option to open confirmation window in same tab.
47
 
@@ -80,4 +92,7 @@ Security update and adds Feedburner support natively.
80
  Adds translation support and adds German translation.
81
 
82
  = 0.1.5 =
83
- Adds option to open confirmation screen in same tab.
 
 
 
4
  Tags: genesis
5
  Requires at least: 3.0
6
  Tested up to: 3.5
7
+ Stable tag: 0.1.6
8
 
9
  Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz and more.
10
 
18
  1. Activate the plugin through the 'Plugins' menu in WordPress
19
  1. In Appearance->Widgerts, add Genesis eNews Extended widget to any sidebar.
20
  1. Using the mailing list contact form code provided by your vendor, add the form action URL, the form field ID for the e-mail field and any hidden fields (not all services use them) into the widget options.
21
+ 1. If using name fields, read the [plugin's tutorial website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/tutorials).
22
  1. Verify it works!
23
 
24
  == Frequently Asked Questions ==
31
 
32
  That is intentional. You don't want to knock people off your site and leave them on FeedBurner's.
33
 
34
+ = I'm using Minimum 2.0. Where's the submit button? =
35
+
36
+ That is a feature of the theme. If you want the button back, remove ".enews #subbutton," on line 1236 of style.css.
37
+
38
+ = The first and last name fields look funky. =
39
+
40
+ Read more on the [plugin's tutorial website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/tutorials).
41
+
42
  = I need help! Where I can get it? =
43
 
44
  "Official" tutorials will be maintained on the [plugin's website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/).
51
 
52
  == Changelog ==
53
 
54
+ = 0.1.6 =
55
+ * Makes available first and last name fields.
56
+
57
  = 0.1.5 =
58
  * Adds option to open confirmation window in same tab.
59
 
92
  Adds translation support and adds German translation.
93
 
94
  = 0.1.5 =
95
+ Adds option to open confirmation screen in same tab.
96
+
97
+ = 0.1.6 =
98
+ Adds first and last name fields. Check instructions before usage.