Plugin Directory

Changeset 2551828


Ignore:
Timestamp:
06/22/2021 07:27:55 AM (5 years ago)
Author:
flippy101
Message:

Easy Pricing Tables 3.0.3

Location:
easy-pricing-tables/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • easy-pricing-tables/trunk/includes/post-list.php

    r2547205 r2551828  
    66    add_submenu_page( 'edit.php?post_type=easy-pricing-table', __('Easy Pricing Tables', 'easy-pricing-tables'), __('All Pricing Tables', 'easy-pricing-tables'), 'manage_options', 'ept3-list', 'fca_ept_render_post_list', 0 );
    77   
    8     // hide legacy tables submenu if this is a fresh install
    9     if( !dh_ptp_check_existing_install() ){
     8    // hide legacy tables submenu if this is a fresh install OR if it's disabled through settings menu
     9    $show_legacy_tables = ( empty( get_option( 'dh_ptp_show_legacy_tables') ) ? false : true );
     10
     11    if( !dh_ptp_check_existing_install() && !$show_legacy_tables ){
    1012
    1113        global $submenu;
  • easy-pricing-tables/trunk/includes/upgrade.php

    r1418326 r2551828  
    4242add_action( 'admin_footer', 'dh_ptp_upgrade_to_premium_menu_js');
    4343
    44 
    4544?>
  • easy-pricing-tables/trunk/pricing-table-plugin.php

    r2547836 r2551828  
    77    Domain Path: /languages
    88    Author: Fatcat Apps
    9     Version: 3.0.2
     9    Version: 3.0.3
    1010    Author URI: https://fatcatapps.com
    1111*/
     
    2222        define( 'PTP_PLUGIN_VER', '3.0.' . time() );
    2323    } else {
    24         define( 'PTP_PLUGIN_VER', '3.0.2' );
     24        define( 'PTP_PLUGIN_VER', '3.0.3' );
    2525    }
    2626
     
    3636    // Upgrade to Premium
    3737    include ( PTP_PLUGIN_PATH . 'includes/upgrade.php');
     38
     39    // Include settings page
     40    include ( PTP_PLUGIN_PATH . 'includes/settings.php');
    3841
    3942    // only if legacy tables are available, include the rest
     
    138141        $show_fullscreen_notice = $is_legacy_screen && ( !$notice_dismissed );
    139142        $show_reminder = $is_legacy_screen && $notice_dismissed;
     143        $show_legacy_tables = ( empty( get_option( 'dh_ptp_show_legacy_tables') ) ? false : true );
     144        $legacy_reminder = empty( $_GET['page'] ) ? false : ( $_GET['page'] === 'ept3-list' );
    140145
    141146        $try_gutenberg = add_query_arg( 'dh_ptp_new_gutenberg_table', true );
     147        $settings_page = add_query_arg( 'dh_ptp_settings_page', true );
    142148
    143149        if ( $show_reminder ){
     
    149155            echo '</div>';
    150156        }
     157
     158        if ( !$show_legacy_tables && $legacy_reminder ){
     159            echo '<div id="fca-ept-legacy-notice" class="notice notice-info is-dismissible" style="padding-bottom: 8px; padding-top: 8px;">';
     160                echo '<p>' . __( "We recommend using the visual interface to build your new pricing tables. Still prefer the legacy experience?", $plugin_name ) . "</p>" ;
     161                echo "<a href='$settings_page' class='button button-primary' style='margin-top: 2px;'>" . __( 'Turn it back on', $plugin_name) . "</a> ";
     162                echo '<br style="clear:both">';
     163            echo '</div>';
     164        }   
     165
    151166        if ( $show_fullscreen_notice ){
    152167            echo '<div id="fca-ept-fullscreen-notice" class="notice notice-info is-dismissible" style="display: none; text-align: center; padding-left: 250px; padding-right: 250px; padding-bottom: 8px; padding-top: 40px; position: fixed; top: 27px; left: 160px; right: 0; bottom: -15px; z-index: 999999;">';
     
    219234
    220235    function dh_ptp_try_gutenberg_tables (){
     236
     237        if ( isSet( $_GET['dh_ptp_settings_page'] ) ){
     238
     239            wp_redirect( admin_url( "edit.php?post_type=easy-pricing-table&page=easy-pricing-tables-settings" ) );
     240
     241        }
    221242
    222243        if ( isSet( $_GET['dh_ptp_new_gutenberg_table'] ) ) {
  • easy-pricing-tables/trunk/readme.txt

    r2547836 r2551828  
    77Requires at least: 3.6
    88Tested up to: 5.7
    9 Stable tag: 3.0.2
     9Stable tag: 3.0.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134== Changelog ==
    135135
     136= Easy Pricing Tables 3.0.3 =
     137* Add option to display legacy pricing tables in Pricing Tables Settings
     138
    136139= Easy Pricing Tables 3.0.2 =
    137140* Add Pricing Table custom theme compatibilities
Note: See TracChangeset for help on using the changeset viewer.