Changeset 589095
- Timestamp:
- 08/23/2012 01:24:29 AM (14 years ago)
- Location:
- navayan-subscribe
- Files:
-
- 5 edited
-
assets/banner-772x250.jpg (modified) (previous)
-
trunk/ny-subscribe-define.php (modified) (1 diff)
-
trunk/ny-subscribe-functions.php (modified) (6 diffs)
-
trunk/ny-subscribe.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
navayan-subscribe/trunk/ny-subscribe-define.php
r588678 r589095 4 4 define('NY_PLUGIN_SUBSCRIBE_NAME', __('Navayan Subscribe') ); 5 5 define('NY_PLUGIN_SUBSCRIBE_SLUG', 'navayan-subscribe'); 6 define('NY_PLUGIN_SUBSCRIBE_VERSION', '1.1.7. 4');6 define('NY_PLUGIN_SUBSCRIBE_VERSION', '1.1.7.5'); 7 7 define('NY_PLUGIN_SUBSCRIBE_DIR', WP_PLUGIN_URL.'/'.NY_PLUGIN_SUBSCRIBE_SLUG.'/'); 8 8 define('NY_PLUGIN_SUBSCRIBE_INFO', __('Allows your website / blog visitor to easily and quickly register to your website/blog using email, name and additional field. Send subscribe notification to admin.') ); -
navayan-subscribe/trunk/ny-subscribe-functions.php
r588678 r589095 40 40 delete_option('nyEmailSubject'); 41 41 delete_option('nyEmailBody'); 42 wp_delete_post ( get_UnSubscribePageID(), true ); 42 43 } 43 44 … … 180 181 ); 181 182 183 // EMAIL TEMPLATE 182 184 $admin_fields_email_template = array( 183 185 array( … … 242 244 $str = get_option( $option ) ? get_option( $option ) : $defValue; 243 245 return stripcslashes( preg_replace('/[\s]+/', ' ', $str ) ); 244 }245 246 /***************************************************247 * GET 'Navayan Unsubscribe' PAGE ID248 * *************************************************/249 function get_UnSubscribePageID(){250 $unSubscribePage = get_page_by_path( 'navayan-unsubscribe' );251 $getid = (int) $unSubscribePage->ID;252 return $getid;253 }254 255 /***************************************************256 * CREATE MENU UNDER 'DASHBOARD -> TOOLS' TAB257 * *************************************************/258 function nys_CreateMenu() {259 if (function_exists('add_options_page')) {260 add_management_page( __( NY_PLUGIN_SUBSCRIBE_NAME, NY_PLUGIN_SUBSCRIBE_SLUG ), __( NY_PLUGIN_SUBSCRIBE_NAME, NY_PLUGIN_SUBSCRIBE_SLUG ), 'manage_options', NY_PLUGIN_SUBSCRIBE_SLUG, 'ny_subscribe_admin');261 }262 }263 264 /***************************************************265 * EXTEND USERMETA FOR ADDITIONAL CUSTOM FIELD266 * *************************************************/267 function nys_ExtendContact( $contactmethods ) {268 $contactmethods[ 'ny_subscribe_field_custom' ] = get_option( 'ny_subscribe_field_custom' );269 return $contactmethods;270 246 } 271 247 … … 285 261 } 286 262 } 263 264 /*************************************************** 265 * GET 'Navayan Unsubscribe' PAGE ID 266 * *************************************************/ 267 function get_UnSubscribePageID(){ 268 $unSubscribePage = get_page_by_path( 'navayan-unsubscribe' ); 269 $getid = (int) $unSubscribePage->ID; 270 return $getid; 271 } 272 273 /*************************************************** 274 * CREATE MENU UNDER 'DASHBOARD -> TOOLS' TAB 275 * *************************************************/ 276 function nys_CreateMenu() { 277 if (function_exists('add_options_page')) { 278 add_management_page( __( NY_PLUGIN_SUBSCRIBE_NAME, NY_PLUGIN_SUBSCRIBE_SLUG ), __( NY_PLUGIN_SUBSCRIBE_NAME, NY_PLUGIN_SUBSCRIBE_SLUG ), 'manage_options', NY_PLUGIN_SUBSCRIBE_SLUG, 'ny_subscribe_admin'); 279 } 280 } 281 282 /*************************************************** 283 * EXTEND USERMETA FOR ADDITIONAL CUSTOM FIELD 284 * *************************************************/ 285 function nys_ExtendContact( $contactmethods ) { 286 $contactmethods[ 'ny_subscribe_field_custom' ] = get_option( 'ny_subscribe_field_custom' ); 287 return $contactmethods; 288 } 287 289 288 290 /*************************************************** … … 508 510 nys_FormFields(); 509 511 510 echo "<p >512 echo "<p id='ny_subscribe_submit_wrapper'> 511 513 <label> </label> 512 514 <input type='submit' name='ny_subscribe_submit' id='ny_subscribe_submit' value='". stripslashes( $class_NYS_FIELDS->form_label_button() ) ."' /> … … 567 569 echo '<form id="navayan_unsubscribe_form" id="navayan_unsubscribe_form" method="post">'; 568 570 echo '<p><input type="text" name="unsubscribe_email" id="unsubscribe_email" /></p>'; 569 echo '<p ><input type="submit" name="unsubscribe_submit" id="unsubscribe_submit" value="'. __( stripslashes ( $class_NYS_FIELDS->form_label_unsubscribe() ) ) .'" /></p>';571 echo '<p id="ny_unsubscribe_submit_wrapper"><input type="submit" name="unsubscribe_submit" id="unsubscribe_submit" value="'. __( stripslashes ( $class_NYS_FIELDS->form_label_unsubscribe() ) ) .'" /></p>'; 570 572 echo '</form>'; 571 573 -
navayan-subscribe/trunk/ny-subscribe.php
r588678 r589095 3 3 Plugin Name: Navayan Subscribe 4 4 Description: <strong>Navayan Subscribe</strong> allows your website/blog visitor to easily and quickly register to your website/blog using email, name and additional field. Send subscribe notification to admin and post notification to subscribers. 5 Version: 1.1.7. 45 Version: 1.1.7.5 6 6 Usage: Paste this single line code within PHP tag in your template: if ( function_exists('navayan_subscribe') ){ echo navayan_subscribe(); } or put shortcode [navayan_subscribe] in post/page 7 7 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=amolnw2778@gmail.com&item_name=NavayanSubscribe -
navayan-subscribe/trunk/readme.txt
r588678 r589095 4 4 Requires at least: 3+ 5 5 Tested up to: 3.4.1 6 Stable tag: 1.1.7. 46 Stable tag: 1.1.7.5 7 7 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=amolnw2778@gmail.com&item_name=NavayanSubscribe 8 8 … … 103 103 == Changelog == 104 104 105 = 1.1.7.5 (20120823) = 106 * NEW: Better CSS control on submit buttons for Front-End developers 107 * NEW: Deleting 'Navayan Unsubscribe' page if plugin gets uninstalled 108 105 109 = 1.1.7.4 (20120822) = 106 110 * NEW: Custom email template
Note: See TracChangeset
for help on using the changeset viewer.