📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 21:22:11
📂
/ (Root)
/
home
/
apkbfjox
/
stargame.pk
/
wp-content
/
themes
/
generatepress
/
inc
/
customizer
/
controls
📍 /home/apkbfjox/stargame.pk/wp-content/themes/generatepress/inc/customizer/controls
🔄 Refresh
✏️
Editing: class-upsell-control.php
Writable
<?php /** * The upsell Customizer controll. * * @package GeneratePress */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Generate_Customize_Misc_Control' ) ) { /** * Create our in-section upsell controls. * Escape your URL in the Customizer using esc_url(). * * @since 0.1 */ class Generate_Customize_Misc_Control extends WP_Customize_Control { /** * Set description. * * @var public $description */ public $description = ''; /** * Set URL. * * @var public $url */ public $url = ''; /** * Set type. * * @var public $type */ public $type = 'addon'; /** * Set label. * * @var public $label */ public $label = ''; /** * Enqueue scripts. */ public function enqueue() { wp_enqueue_style( 'generate-customizer-controls-css', trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/css/upsell-customizer.css', array(), GENERATE_VERSION ); } /** * Send variables to json. */ public function to_json() { parent::to_json(); $this->json['url'] = esc_url( $this->url ); } /** * Render content. */ public function content_template() { ?> <p class="description" style="margin-top: 5px;">{{{ data.description }}}</p> <span class="get-addon"> <a href="{{{ data.url }}}" class="button button-primary" target="_blank">{{ data.label }}</a> </span> <?php } } }
💾 Save Changes
❌ Cancel