Plugin Directory

Changeset 589095


Ignore:
Timestamp:
08/23/2012 01:24:29 AM (14 years ago)
Author:
amolnw2778
Message:

v1.1.7.5 updates

Location:
navayan-subscribe
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • navayan-subscribe/trunk/ny-subscribe-define.php

    r588678 r589095  
    44    define('NY_PLUGIN_SUBSCRIBE_NAME', __('Navayan Subscribe') );
    55    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');
    77    define('NY_PLUGIN_SUBSCRIBE_DIR', WP_PLUGIN_URL.'/'.NY_PLUGIN_SUBSCRIBE_SLUG.'/'); 
    88    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  
    4040        delete_option('nyEmailSubject');
    4141        delete_option('nyEmailBody');
     42        wp_delete_post ( get_UnSubscribePageID(), true );
    4243    }
    4344   
     
    180181    );
    181182   
     183    // EMAIL TEMPLATE
    182184    $admin_fields_email_template = array(
    183185        array(
     
    242244        $str = get_option( $option ) ? get_option( $option ) : $defValue;
    243245        return stripcslashes( preg_replace('/[\s]+/', ' ', $str ) );
    244     }
    245    
    246     /***************************************************
    247     * GET 'Navayan Unsubscribe' PAGE ID
    248     * *************************************************/
    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' TAB
    257     * *************************************************/
    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 FIELD
    266     * *************************************************/
    267     function nys_ExtendContact( $contactmethods ) {
    268         $contactmethods[ 'ny_subscribe_field_custom' ] = get_option( 'ny_subscribe_field_custom' );
    269         return $contactmethods;
    270246    }
    271247   
     
    285261        }
    286262    }
     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    }   
    287289   
    288290    /***************************************************
     
    508510                nys_FormFields();
    509511   
    510                 echo "<p>
     512                echo "<p id='ny_subscribe_submit_wrapper'>
    511513                            <label>&nbsp;</label>
    512514                            <input type='submit' name='ny_subscribe_submit' id='ny_subscribe_submit' value='". stripslashes( $class_NYS_FIELDS->form_label_button() ) ."' />
     
    567569            echo '<form id="navayan_unsubscribe_form" id="navayan_unsubscribe_form" method="post">';
    568570            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>';
    570572            echo '</form>';
    571573
  • navayan-subscribe/trunk/ny-subscribe.php

    r588678 r589095  
    33Plugin Name: Navayan Subscribe
    44Description: <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.4
     5Version: 1.1.7.5
    66Usage: 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
    77Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=amolnw2778@gmail.com&item_name=NavayanSubscribe
  • navayan-subscribe/trunk/readme.txt

    r588678 r589095  
    44Requires at least: 3+
    55Tested up to: 3.4.1
    6 Stable tag: 1.1.7.4
     6Stable tag: 1.1.7.5
    77Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=amolnw2778@gmail.com&item_name=NavayanSubscribe
    88
     
    103103== Changelog ==
    104104
     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
    105109= 1.1.7.4 (20120822) =
    106110* NEW: Custom email template
Note: See TracChangeset for help on using the changeset viewer.