[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
astra-addon
/
classes
/
customizer
/
controls
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 class-astra-control-customizer-refresh.php
1,670 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: class-astra-control-customizer-refresh.php
<?php /** * Customizer Control: Customizer Refresh * * @package Astra * @link https://wpastra.com/ * @since 1.5.0 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Field overrides. */ if ( ! class_exists( 'Astra_Control_Customizer_Refresh' ) && class_exists( 'WP_Customize_Control' ) ) { /** * Color control (alpha). */ // @codingStandardsIgnoreStart class Astra_Control_Customizer_Refresh extends WP_Customize_Control { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * The control type. * * @var string */ public $type = 'ast-customizer-refresh'; /** * The color with opacity rgba type. * * @var string */ public $class = ''; /** * Refresh the parameters passed to the JavaScript via JSON. * * @see WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['class'] = $this->class; } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() */ protected function content_template() { ?> <a class="button {{{ data.class }}}" onclick="wp.customize.previewer.refresh();" href="#">{{{ data.label }}}</a> <?php } /** * Render the control's content. * * @see WP_Customize_Control::render_content() */ protected function render_content() { } } }