acf.php
5 years ago
alignment.php
5 years ago
animation.php
5 years ago
beaver_builder.php
5 years ago
cache.php
5 years ago
classes.php
5 years ago
clone.php
5 years ago
columns.php
5 years ago
dates.php
5 years ago
devices.php
5 years ago
disable_widgets.php
5 years ago
elementor.php
5 years ago
fixed.php
5 years ago
import-export.php
5 years ago
links.php
5 years ago
logic.php
5 years ago
move.php
5 years ago
permission.php
5 years ago
roles.php
5 years ago
search.php
5 years ago
shortcodes.php
5 years ago
sidebar-more_plugins.php
5 years ago
sidebar-opt_in.php
5 years ago
sidebar-support_box.php
5 years ago
sidebar-upsell_pro.php
5 years ago
siteorigin.php
5 years ago
sliding.php
5 years ago
state.php
5 years ago
styling.php
5 years ago
taxonomies.php
5 years ago
title.php
5 years ago
urls.php
5 years ago
visibility.php
5 years ago
widget-area.php
5 years ago
siteorigin.php
65 lines
| 1 | <?php |
| 2 | /** |
| 3 | * SiteOrigin Settings Module |
| 4 | * Settings > Widget Options :: SiteOrigin Pagebuilder Support |
| 5 | * |
| 6 | * @copyright Copyright (c) 2016, Jeffrey Carandang |
| 7 | * @since 3.0 |
| 8 | */ |
| 9 | |
| 10 | // Exit if accessed directly |
| 11 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 12 | |
| 13 | /** |
| 14 | * Create Card Module for SiteOrigin Pagebuilder Support |
| 15 | * |
| 16 | * @since 3.0 |
| 17 | * @global $widget_options |
| 18 | * @return void |
| 19 | */ |
| 20 | if( !function_exists( 'widgetopts_settings_siteorigin' ) ): |
| 21 | function widgetopts_settings_siteorigin(){ |
| 22 | global $widget_options; ?> |
| 23 | <li class="widgetopts-module-card widgetopts-module-card-no-settings <?php echo ( $widget_options['siteorigin'] == 'activate' ) ? 'widgetopts-module-type-enabled' : 'widgetopts-module-type-disabled'; ?>" id="widgetopts-module-card-siteorigin" data-module-id="siteorigin"> |
| 24 | <div class="widgetopts-module-card-content"> |
| 25 | <h2><?php _e( 'SiteOrigin Pagebuilder Support', 'widget-options' );?></h2> |
| 26 | <p class="widgetopts-module-desc"> |
| 27 | <?php _e( 'Extends widget options functionality to SiteOrigin Pagebuilder Plugin.', 'widget-options' );?> |
| 28 | </p> |
| 29 | |
| 30 | <div class="widgetopts-module-actions hide-if-no-js"> |
| 31 | <?php if( $widget_options['siteorigin'] == 'activate' ){ ?> |
| 32 | <button class="button button-secondary widgetopts-toggle-settings"><?php _e( 'Configure Settings', 'widget-options' );?></button> |
| 33 | <button class="button button-secondary widgetopts-toggle-activation"><?php _e( 'Disable', 'widget-options' );?></button> |
| 34 | <?php }else{ ?> |
| 35 | <button class="button button-secondary widgetopts-toggle-settings"><?php _e( 'Learn More', 'widget-options' );?></button> |
| 36 | <button class="button button-primary widgetopts-toggle-activation"><?php _e( 'Enable', 'widget-options' );?></button> |
| 37 | <?php } ?> |
| 38 | |
| 39 | </div> |
| 40 | </div> |
| 41 | |
| 42 | <?php widgetopts_modal_start( $widget_options['siteorigin'] ); ?> |
| 43 | <span class="dashicons widgetopts-dashicons widgetopts-no-top dashicons-editor-kitchensink"></span> |
| 44 | <h3 class="widgetopts-modal-header"><?php _e( 'SiteOrigin Pagebuilder Support', 'widget-options' );?></h3> |
| 45 | <p> |
| 46 | <?php _e( 'This feature will enable the widget options to your widgets when you are using <a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Pagebuilder by SiteOrigin</a>. Easily manage and extends widget functionalities and visibility using tabbed options provided for each widgets.', 'widget-options' );?> |
| 47 | </p> |
| 48 | <h4><?php _e( 'Limitations', 'widget-options' );?></h4> |
| 49 | <p><?php _e( ' - Visibility options tab option is not available since you are using pagebuilder.', 'widget-options' );?></p> |
| 50 | <p><?php _e( ' - Custom widget ID on pagebuilder widget was removed to avoid conflicts.', 'widget-options' );?></p> |
| 51 | <p> |
| 52 | <?php _e( 'That\'s all! Other options will work smoothly and integrated perfectly on the plugin.', 'widget-options' );?> |
| 53 | </p> |
| 54 | <p class="widgetopts-settings-section"> |
| 55 | <?php _e( 'No additional settings available.', 'widget-options' );?> |
| 56 | </p> |
| 57 | <?php widgetopts_modal_end( $widget_options['siteorigin'] ); ?> |
| 58 | |
| 59 | </li> |
| 60 | <?php |
| 61 | } |
| 62 | add_action( 'widgetopts_module_cards', 'widgetopts_settings_siteorigin', 65 ); |
| 63 | endif; |
| 64 | ?> |
| 65 |