📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 19:00:25
📂
/ (Root)
/
home
/
apkbfjox
/
stargame.pk
/
wp-content
/
plugins
/
gp-premium
/
library
/
customizer
/
controls
📍 /home/apkbfjox/stargame.pk/wp-content/plugins/gp-premium/library/customizer/controls
🔄 Refresh
✏️
Editing: class-control-toggle.php
Writable
<?php // No direct access, please if ( ! defined( 'ABSPATH' ) ) { exit; } if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Generate_Control_Toggle_Customize_Control' ) ) : /** * Add a button to initiate refresh when changing featured image sizes */ class Generate_Control_Toggle_Customize_Control extends WP_Customize_Control { public $type = 'control_section_toggle'; public $targets = ''; public function enqueue() { wp_enqueue_script( 'generatepress-pro-control-target', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/control-toggle-customizer.js', array( 'customize-controls', 'jquery' ), GP_PREMIUM_VERSION, true ); wp_enqueue_style( 'generatepress-pro-control-target', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'css/control-toggle-customizer.css', array(), GP_PREMIUM_VERSION ); } public function to_json() { parent::to_json(); $this->json[ 'targets' ] = $this->targets; } public function content_template() { ?> <div class="generatepress-control-toggles"> <# jQuery.each( data.targets, function( index, value ) { #> <button data-target="{{ index }}">{{ value }}</button> <# } ); #> </div> <?php } } endif;
💾 Save Changes
❌ Cancel