PluginProbe ʕ •ᴥ•ʔ
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets / 4.0.5
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets v4.0.5
4.2.5 4.2.4 trunk 3.7.10 3.7.11 3.7.12 3.7.13 3.7.14 3.7.2 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8 3.8.1 3.8.10 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.8.8 3.8.9 3.8.9.1 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.5.1 4.0.6 4.0.6.1 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.2.0 4.2.1 4.2.2 4.2.3
widget-options / includes / admin / settings / modules / classic-widgets-screen.php
widget-options / includes / admin / settings / modules Last commit date
acf.php 2 years ago alignment.php 2 years ago animation.php 2 years ago beaver_builder.php 2 years ago cache.php 2 years ago classes.php 2 years ago classic-widgets-screen.php 2 years ago clone.php 2 years ago columns.php 2 years ago dates.php 2 years ago devices.php 2 years ago disable_widgets.php 2 years ago elementor.php 2 years ago fixed.php 2 years ago import-export.php 2 years ago links.php 2 years ago logic.php 2 years ago move.php 2 years ago page-and-post-block.php 2 years ago permission.php 2 years ago roles.php 2 years ago search.php 2 years ago shortcodes.php 2 years ago sidebar-more_plugins.php 2 years ago sidebar-opt_in.php 2 years ago sidebar-support_box.php 2 years ago sidebar-upsell_pro.php 2 years ago siteorigin.php 2 years ago sliding.php 2 years ago state.php 2 years ago styling.php 2 years ago taxonomies.php 2 years ago title.php 2 years ago urls.php 2 years ago visibility.php 2 years ago widget-area.php 2 years ago
classic-widgets-screen.php
62 lines
1 <?php
2
3 /**
4 * classic_widgets_screen Settings Module
5 * Settings > Widget Options :: Pages classic_widgets_screen
6 *
7 * @copyright Copyright (c) 2016, Jeffrey Carandang
8 * @since 3.0
9 */
10
11 // Exit if accessed directly
12 if (!defined('ABSPATH')) exit;
13
14 /**
15 * Create Card Module for Pages classic_widgets_screen Options
16 *
17 * @since 3.0
18 * @global $widget_options
19 * @return void
20 */
21
22 /*
23 * Note: Please add a class "no-settings" in the <li> card if the card has no additional configuration, if there are configuration please remove the class
24 */
25 if (!function_exists('widgetopts_settings_classic_widgets_screen')) :
26 function widgetopts_settings_classic_widgets_screen()
27 {
28 global $widget_options;
29 ?>
30 <li class="widgetopts-module-card widgetopts-module-card-no-settings no-settings <?php echo ($widget_options['classic_widgets_screen'] == 'activate') ? 'widgetopts-module-type-enabled' : 'widgetopts-module-type-disabled'; ?>" id="widgetopts-module-card-classic_widgets_screen" data-module-id="classic_widgets_screen">
31 <div class="widgetopts-module-card-content">
32 <h2><?php _e('Classic Widgets Screen', 'widget-options'); ?></h2>
33 <p class="widgetopts-module-desc">
34 <?php _e('Revert to Classic Widgets Screen (for wordpress version 5.8 and above).', 'widget-options'); ?>
35 </p>
36 <div class="widgetopts-module-actions hide-if-no-js">
37 <?php if ($widget_options['classic_widgets_screen'] == 'activate') { ?>
38 <button class="button button-secondary widgetopts-toggle-settings"><?php _e('Learn More', 'widget-options'); ?></button>
39 <button class="button button-secondary widgetopts-toggle-activation"><?php _e('Disable', 'widget-options'); ?></button>
40 <?php } else { ?>
41 <button class="button button-secondary widgetopts-toggle-settings"><?php _e('Learn More', 'widget-options'); ?></button>
42 <button class="button button-primary widgetopts-toggle-activation"><?php _e('Enable', 'widget-options'); ?></button>
43 <?php } ?>
44
45 </div>
46 </div>
47 <?php widgetopts_modal_start($widget_options['classic_widgets_screen']); ?>
48 <span class="dashicons widgetopts-dashicons widgetopts-no-top dashicons-admin-generic"></span>
49 <h3 class="widgetopts-modal-header"><?php _e('Classic Widgets Screen', 'widget-options'); ?></h3>
50 <p>
51 <?php _e('Simply toggle this option on to revert to WordPress\' classic widget editor.', 'widget-options'); ?>
52 </p>
53 <p class="widgetopts-settings-section">
54 <?php _e('No additional settings available.', 'widget-options'); ?>
55 </p>
56 <?php widgetopts_modal_end($widget_options['classic_widgets_screen']); ?>
57 </li>
58 <?php
59 }
60 add_action('widgetopts_module_cards', 'widgetopts_settings_classic_widgets_screen', 10);
61 endif;
62 ?>