PluginProbe ʕ •ᴥ•ʔ
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets / 4.2.1
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets v4.2.1
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 / move.php
widget-options / includes / admin / settings / modules Last commit date
acf.php 3 months ago alignment.php 3 months ago animation.php 3 months ago beaver_builder.php 3 months ago cache.php 3 months ago classes.php 3 months ago classic-widgets-screen.php 3 months ago clone.php 3 months ago columns.php 3 months ago custom-sidebar.php 3 months ago dates.php 3 months ago devices.php 3 months ago disable_widgets.php 3 months ago elementor.php 3 months ago fixed.php 3 months ago import-export.php 3 months ago links.php 3 months ago logic.php 3 months ago move.php 3 months ago page-and-post-block.php 3 months ago permission.php 3 months ago roles.php 3 months ago search.php 3 months ago shortcodes.php 3 months ago sidebar-more_plugins.php 3 months ago sidebar-opt_in.php 3 months ago sidebar-support_box.php 3 months ago sidebar-upsell_pro.php 3 months ago siteorigin.php 3 months ago sliding.php 3 months ago state.php 3 months ago styling.php 3 months ago taxonomies.php 3 months ago title.php 3 months ago urls.php 3 months ago visibility.php 3 months ago widget-area.php 3 months ago
move.php
71 lines
1 <?php
2 /**
3 * Move Widgets Module
4 * Settings > Widget Options :: Move Widget
5 *
6 * @copyright Copyright (c) 2017, Jeffrey Carandang
7 * @since 3.4
8 */
9
10 // Exit if accessed directly
11 if ( ! defined( 'ABSPATH' ) ) exit;
12
13 /**
14 * Create Card Module for Move Widget Feature
15 *
16 * @since 3.4
17 * @global $widget_options
18 * @return void
19 */
20
21 /*
22 * 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
23 */
24
25 if( !function_exists( 'widgetopts_settings_move' ) ):
26 function widgetopts_settings_move(){
27 global $widget_options;
28
29 //avoid issue after update
30 if( !isset( $widget_options['move'] ) ){
31 $widget_options['move'] = '';
32 }
33 ?>
34 <li class="widgetopts-module-card widgetopts-module-card-no-settings no-settings <?php echo ( $widget_options['move'] == 'activate' ) ? 'widgetopts-module-type-enabled' : 'widgetopts-module-type-disabled'; ?>" id="widgetopts-module-card-move" data-module-id="move">
35 <div class="widgetopts-module-card-content">
36 <h2><?php _e( 'Move Widget', 'widget-options' );?></h2>
37 <p class="widgetopts-module-desc">
38 <?php _e( 'Easily move widgets to any sidebar widget area without drag and drop.', 'widget-options' );?>
39 </p>
40
41 <div class="widgetopts-module-actions hide-if-no-js">
42 <?php if( $widget_options['move'] == 'activate' ){ ?>
43 <button class="button button-secondary widgetopts-toggle-settings"><?php _e( 'Learn More', 'widget-options' );?></button>
44 <button class="button button-secondary widgetopts-toggle-activation"><?php _e( 'Disable', 'widget-options' );?></button>
45 <?php }else{ ?>
46 <button class="button button-secondary widgetopts-toggle-settings"><?php _e( 'Learn More', 'widget-options' );?></button>
47 <button class="button button-primary widgetopts-toggle-activation"><?php _e( 'Enable', 'widget-options' );?></button>
48 <?php } ?>
49
50 </div>
51
52 </div>
53
54 <?php widgetopts_modal_start( $widget_options['move'] ); ?>
55 <span class="dashicons widgetopts-dashicons widgetopts-no-top dashicons-image-rotate-right"></span>
56 <h3 class="widgetopts-modal-header"><?php _e( 'Move Widget', 'widget-options' );?></h3>
57 <p>
58 <?php _e( 'Move Widget feature will automatically add <strong>Move</strong> button that will let you easily move any widgets to any sidebar widget areas without dragging them. This will definitely increase your productivity and widget management specially on smaller screen devices such as mobile phones. You can check how this feature works on this <a href="https://vimeo.com/229112330" target="_blank">video</a>. Thanks!', 'widget-options' );?>
59 </p>
60 <p class="widgetopts-settings-section">
61 <?php _e( 'No additional settings available.', 'widget-options' );?>
62 </p>
63 <?php widgetopts_modal_end( $widget_options['move'] ); ?>
64
65 </li>
66 <?php
67 }
68 add_action( 'widgetopts_module_cards', 'widgetopts_settings_move', 64 );
69 endif;
70 ?>
71