| @@ -52,9 +52,12 @@ | ||
| 52 | 52 | $this->admin_page->enqueue_style( 'codemirror', array( 'code-editor' ) ); |
| 53 | 53 | $this->admin_page->enqueue_script( 'codemirror' ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - $this->add_meta_box( 'default-style', sprintf( __( 'Default Styling %s', 'tablepress' ), '<span class="beta-label">' . ( tb_tp_fs()->is_free_plan() ? __( 'Premium', 'tablepress' ) : __( 'beta', 'tablepress' ) ) . '</span>' ), array( $this, 'postbox_default_style_customizer_screen' ), 'normal' ); | |
| 56 | + if ( ! TABLEPRESS_IS_PLAYGROUND_PREVIEW ) { | |
| 57 | + /* translators: %s: Premium badge HTML or empty string */ | |
| 58 | + $this->add_meta_box( 'default-style', sprintf( __( 'Default Styling %s', 'tablepress' ), tb_tp_fs()->is_free_plan() ? '<span class="pill-label">' . __( 'Premium', 'tablepress' ) . '</span>' : '' ), array( $this, 'postbox_default_style_customizer_screen' ), 'normal' ); | |
| 59 | + } | |
| 57 | 60 | $this->add_meta_box( 'frontend-options', __( 'Custom Styling', 'tablepress' ), array( $this, 'postbox_frontend_options' ), 'normal' ); |
| 58 | 61 | } |
| 59 | 62 | $this->add_meta_box( 'user-options', __( 'User Options', 'tablepress' ), array( $this, 'postbox_user_options' ), 'normal' ); |
| 60 | 63 | $this->add_text_box( 'submit', array( $this, 'textbox_submit_button' ), 'submit' ); |
| @@ -104,9 +107,9 @@ | ||
| 104 | 107 | <span class="dashicons dashicons-arrow-right-alt"></span> |
| 105 | 108 | </a> |
| 106 | 109 | </div> |
| 107 | 110 | </div> |
| 108 | - <a href="https://tablepress.org/modules/default-style-customizer/?utm_source=plugin&utm_medium=textlink&utm_content=options-screen"><img src="<?php echo esc_url( plugins_url( 'admin/img/default-style-customizer.png', TABLEPRESS__FILE__ ) ); ?>" width="305" height="172" alt="<?php esc_attr_e( 'Screenshot of the Default Style Customizer that is part of the TablePress premium versions.', 'tablepress' ); ?>" /></a> | |
| 111 | + <a href="https://tablepress.org/modules/default-style-customizer/?utm_source=plugin&utm_medium=textlink&utm_content=options-screen"><img src="<?php echo esc_url( plugins_url( 'admin/img/default-style-customizer.png', TABLEPRESS__FILE__ ) ); ?>" width="305" height="172" alt="<?php esc_attr_e( 'Screenshot of the Default Style Customizer that is part of the TablePress premium versions.', 'tablepress' ); ?>"></a> | |
| 109 | 112 | </div> |
| 110 | 113 | <?php |
| 111 | 114 | endif; |
| 112 | 115 | } |
| @@ -123,9 +126,9 @@ | ||
| 123 | 126 | ?> |
| 124 | 127 | <table class="tablepress-postbox-table fixed"> |
| 125 | 128 | <tr> |
| 126 | 129 | <th class="column-1" scope="row"><label for="option-custom-css"><?php _e( 'Custom CSS', 'tablepress' ); ?></label>:</th> |
| 127 | - <td class="column-2"><label for="option-use-custom-css"><input type="checkbox" id="option-use-custom-css" name="options[use_custom_css]" value="true"<?php checked( $data['frontend_options']['use_custom_css'] ); ?> /> <?php _e( 'Load this “Custom CSS” code to change the table styling:', 'tablepress' ); ?></label> | |
| 130 | + <td class="column-2"><label><input type="checkbox" id="option-use-custom-css" name="options[use_custom_css]" value="true"<?php checked( $data['frontend_options']['use_custom_css'] ); ?>> <?php _e( 'Load this “Custom CSS” code to change the table styling:', 'tablepress' ); ?></label> | |
| 128 | 131 | </td> |
| 129 | 132 | </tr> |
| 130 | 133 | <tr> |
| 131 | 134 | <td class="column-1"></td> |
| @@ -205,9 +208,9 @@ | ||
| 205 | 208 | #[\Override] |
| 206 | 209 | public function textbox_submit_button( array $data, array $box ): void { |
| 207 | 210 | ?> |
| 208 | 211 | <p class="submit"> |
| 209 | - <input type="submit" id="tablepress-options-save-changes" class="button button-primary button-large button-save-changes" value="<?php esc_attr_e( 'Save Changes', 'tablepress' ); ?>" data-shortcut="<?php echo esc_attr( _x( '%1$sS', 'keyboard shortcut for Save Changes', 'tablepress' ) ); ?>" /> | |
| 212 | + <input type="submit" id="tablepress-options-save-changes" class="components-button is-primary button-save-changes" value="<?php esc_attr_e( 'Save Changes', 'tablepress' ); ?>" data-shortcut="<?php echo esc_attr( _x( '%1$sS', 'keyboard shortcut for Save Changes', 'tablepress' ) ); ?>"> | |
| 210 | 213 | </p> |
| 211 | 214 | <?php |
| 212 | 215 | } |
| 213 | 216 | |
| @@ -223,15 +226,15 @@ | ||
| 223 | 226 | ?> |
| 224 | 227 | <h1 style="margin-top:40px;"><?php _e( 'Uninstall TablePress', 'tablepress' ); ?></h1> |
| 225 | 228 | <p> |
| 226 | 229 | <?php |
| 227 | - echo __( 'Uninstalling <strong>will permanently delete</strong> all TablePress tables and options from the database.', 'tablepress' ) . '<br />' | |
| 228 | - . __( 'It is recommended that you create a backup of the tables (by exporting the tables in the JSON format), in case you later change your mind.', 'tablepress' ) . '<br />' | |
| 229 | - . __( 'You will manually need to remove the plugin’s files from the plugin folder afterwards.', 'tablepress' ) . '<br />' | |
| 230 | + echo __( 'Uninstalling <strong>will permanently delete</strong> all TablePress tables and options from the database.', 'tablepress' ) . '<br>' | |
| 231 | + . __( 'It is recommended that you create a backup of the tables (by exporting the tables in the JSON format), in case you later change your mind.', 'tablepress' ) . '<br>' | |
| 232 | + . __( 'You will manually need to remove the plugin’s files from the plugin folder afterwards.', 'tablepress' ) . '<br>' | |
| 230 | 233 | . __( 'Be very careful with this and only click the button if you know what you are doing!', 'tablepress' ); |
| 231 | 234 | ?> |
| 232 | 235 | </p> |
| 233 | - <p><a href="<?php echo TablePress::url( array( 'action' => 'uninstall_tablepress' ), true, 'admin-post.php' ); ?>" id="uninstall-tablepress" class="button"><?php _e( 'Uninstall TablePress', 'tablepress' ); ?></a></p> | |
| 236 | + <p><a href="<?php echo TablePress::url( array( 'action' => 'uninstall_tablepress' ), true, 'admin-post.php' ); ?>" id="uninstall-tablepress" class="components-button is-secondary is-destructive"><?php _e( 'Uninstall TablePress', 'tablepress' ); ?></a></p> | |
| 234 | 237 | <?php |
| 235 | 238 | } |
| 236 | 239 | |
| 237 | 240 | } // class TablePress_Options_View |