Files
apache
wp-content
mu-plugins
plugins
activitypub
audioigniter
authldap
companion-auto-update
gitium
gp-premium
backgrounds
blog
colors
copyright
disable-elements
dist
elements
general
hooks
inc
langs
library
alpha-color-picker
customizer
controls
css
js
class-action-button-control.php
class-alpha-color-control.php
class-backgrounds-control.php
class-control-toggle.php
class-copyright-control.php
class-deprecated.php
class-information-control.php
class-range-slider-control.php
class-refresh-button-control.php
class-section-shortcuts-control.php
class-spacing-control.php
class-title-control.php
class-typography-control.php
active-callbacks.php
deprecated.php
sanitize.php
select2
class-make-css.php
class-plugin-updater.php
customizer-helpers.php
menu-plus
page-header
secondary-nav
sections
site-library
spacing
typography
woocommerce
gp-premium.php
readme.txt
wpml-config.xml
jetpack-protect
menu-icons
rss-importer
simple-local-avatars
smtp-mailer
two-factor
wp-piwik
wp-webauthn
index.php
themes
upgrade-temp-backup
w3tc-config
index.php
.gitignore
htaccess
php.ini
laipower/wp-content/plugins/gp-premium/library/customizer/controls/class-refresh-button-control.php
2020-04-07 13:03:04 +00:00

24 lines
606 B
PHP

<?php
// No direct access, please
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'GeneratePress_Refresh_Button_Customize_Control' ) ) :
/**
* Add a button to initiate refresh when changing featured image sizes
*/
class GeneratePress_Refresh_Button_Customize_Control extends WP_Customize_Control {
public $type = 'refresh_button';
public function to_json() {
parent::to_json();
}
public function content_template() {
?>
<a class="button" onclick="wp.customize.previewer.refresh();" href="#">{{{ data.label }}}</a>
<?php
}
}
endif;