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
cache.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Widget Caching Settings Module |
| 4 | * Settings > Widget Options :: Cache |
| 5 | * |
| 6 | * @copyright Copyright (c) 2017, Jeffrey Carandang |
| 7 | * @since 3.2 |
| 8 | */ |
| 9 | |
| 10 | // Exit if accessed directly |
| 11 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 12 | |
| 13 | /** |
| 14 | * Create Card Module for Fixed Widget Options |
| 15 | * |
| 16 | * @since 3.2 |
| 17 | * @return void |
| 18 | */ |
| 19 | if( !function_exists( 'widgetopts_settings_cache' ) ): |
| 20 | function widgetopts_settings_cache(){ ?> |
| 21 | <li class="widgetopts-module-card widgetopts-module-type-pro" data-module-id="cache"> |
| 22 | <div class="widgetopts-module-card-content"> |
| 23 | <a href="<?php echo apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE).'features/wordpress-widget-cache/');?>" target="_blank" class="widgetopts-pro-upsell"></a> |
| 24 | <h2><?php _e( 'Widget Cache', 'widget-options' );?></h2> |
| 25 | <div class="widgetopts-pro-label"><span class="dashicons dashicons-lock"></span></div> |
| 26 | <p class="widgetopts-module-desc"> |
| 27 | <?php _e( 'Improve loading and performance by caching widget output using Transient API.', 'widget-options' );?> |
| 28 | </p> |
| 29 | </div> |
| 30 | </li> |
| 31 | <?php |
| 32 | } |
| 33 | add_action( 'widgetopts_module_cards', 'widgetopts_settings_cache', 175 ); |
| 34 | endif; |
| 35 | ?> |
| 36 |