Changeset 2551828
- Timestamp:
- 06/22/2021 07:27:55 AM (5 years ago)
- Location:
- easy-pricing-tables/trunk
- Files:
-
- 1 added
- 4 edited
-
includes/post-list.php (modified) (1 diff)
-
includes/settings.php (added)
-
includes/upgrade.php (modified) (1 diff)
-
pricing-table-plugin.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-pricing-tables/trunk/includes/post-list.php
r2547205 r2551828 6 6 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 ); 7 7 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 ){ 10 12 11 13 global $submenu; -
easy-pricing-tables/trunk/includes/upgrade.php
r1418326 r2551828 42 42 add_action( 'admin_footer', 'dh_ptp_upgrade_to_premium_menu_js'); 43 43 44 45 44 ?> -
easy-pricing-tables/trunk/pricing-table-plugin.php
r2547836 r2551828 7 7 Domain Path: /languages 8 8 Author: Fatcat Apps 9 Version: 3.0. 29 Version: 3.0.3 10 10 Author URI: https://fatcatapps.com 11 11 */ … … 22 22 define( 'PTP_PLUGIN_VER', '3.0.' . time() ); 23 23 } else { 24 define( 'PTP_PLUGIN_VER', '3.0. 2' );24 define( 'PTP_PLUGIN_VER', '3.0.3' ); 25 25 } 26 26 … … 36 36 // Upgrade to Premium 37 37 include ( PTP_PLUGIN_PATH . 'includes/upgrade.php'); 38 39 // Include settings page 40 include ( PTP_PLUGIN_PATH . 'includes/settings.php'); 38 41 39 42 // only if legacy tables are available, include the rest … … 138 141 $show_fullscreen_notice = $is_legacy_screen && ( !$notice_dismissed ); 139 142 $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' ); 140 145 141 146 $try_gutenberg = add_query_arg( 'dh_ptp_new_gutenberg_table', true ); 147 $settings_page = add_query_arg( 'dh_ptp_settings_page', true ); 142 148 143 149 if ( $show_reminder ){ … … 149 155 echo '</div>'; 150 156 } 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 151 166 if ( $show_fullscreen_notice ){ 152 167 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;">'; … … 219 234 220 235 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 } 221 242 222 243 if ( isSet( $_GET['dh_ptp_new_gutenberg_table'] ) ) { -
easy-pricing-tables/trunk/readme.txt
r2547836 r2551828 7 7 Requires at least: 3.6 8 8 Tested up to: 5.7 9 Stable tag: 3.0. 29 Stable tag: 3.0.3 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 134 134 == Changelog == 135 135 136 = Easy Pricing Tables 3.0.3 = 137 * Add option to display legacy pricing tables in Pricing Tables Settings 138 136 139 = Easy Pricing Tables 3.0.2 = 137 140 * Add Pricing Table custom theme compatibilities
Note: See TracChangeset
for help on using the changeset viewer.