cloggier
↑
/wp-content/themes/hestia/inc/customizer/controls
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
customizer-scroll/
cloggier
marsupiataab
customizer-tabs/
cloggier
marsupiataab
helper-plugin-install/
cloggier
marsupiataab
subscribe-info/
cloggier
marsupiataab
class-hestia-button.php
3,997 B
cloggier
marsupiataab
class-hestia-contact-info.php
1,136 B
cloggier
marsupiataab
class-hestia-control-upsell.php
2,718 B
cloggier
marsupiataab
class-hestia-customize-control-radio.php
2,184 B
cloggier
marsupiataab
class-hestia-customizer-heading.php
836 B
cloggier
marsupiataab
class-hestia-generic-notice-section.php
2,543 B
cloggier
marsupiataab
class-hestia-main-notice-section.php
3,306 B
cloggier
marsupiataab
class-hestia-pagebuilder-button.php
5,632 B
cloggier
marsupiataab
class-hestia-section-docs.php
1,649 B
cloggier
marsupiataab
class-hestia-section-upsell.php
2,949 B
cloggier
marsupiataab
class-hestia-separator-section.php
595 B
cloggier
marsupiataab
<?php /** * The upsell for the front page sections * * Pro customizer section. * * @package Hestia */ /** * Class Themeisle_Section_Upsell */ class Hestia_Section_Upsell extends WP_Customize_Section { /** * The type of customize section being rendered. * * @since 1.0.0 * @access public * @var string */ public $type = 'hestia-section-upsell'; /** * Upsell text to output. * * @since 1.0.0 * @access public * @var string */ public $upsell_text = ''; /** * Button text to output. * * @since 1.0.0 * @access public * @var string */ public $button_text = ''; /** * Button link to output. * * @since 1.0.0 * @access public * @var string */ public $button_url = ''; /** * List of theme options to output. * * @since 1.0.0 * @access public * @var array */ public $options = array(); /** * List of additional explanations to output. * * @since 1.0.0 * @access public * @var array */ public $explained_features = array(); /** * Label text to output. * * @since 1.0.0 * @access public * @var string */ private $pro_label; /** * Hestia_Customizer_Theme_Info_Section constructor. */ public function __construct( WP_Customize_Manager $manager, $id, array $args ) { parent::__construct( $manager, $id, $args ); $this->pro_label = esc_html__( 'PRO', 'hestia' ); $this->active_callback = true; } /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0.0 * @access public */ public function json() { $json = parent::json(); $json['button_text'] = esc_html( $this->button_text ); $json['button_url'] = esc_url( $this->button_url ); $json['options'] = $this->options; $json['explained_features'] = $this->explained_features; $json['pro_label'] = esc_html( $this->pro_label ); return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?> <div class="themeisle-upsell themeisle-boxed-section"> <# if ( data.options.length > 0 ) { #> <ul class="themeisle-upsell-features <# if ( data.explained_features.length <= 0 ) { #> no-explained <# } #>"> <# for (option in data.options) { #> <li><span class="upsell-pro-label">{{ data.pro_label }}</span>{{{ data.options[option] }}} </li> <# } #> </ul> <# } #> <# if ( data.button_text && data.button_url ) { #> <a target="_blank" href="{{{ data.button_url }}}" class="button button-primary" target="_blank">{{ data.button_text }}</a> <# } #> <# if ( data.explained_features.length > 0 ) { #> <hr> <ul class="themeisle-upsell-feature-list"> <# for (feature in data.explained_features) { #> <li>* {{ data.explained_features[feature] }}</li> <# } #> </ul> <# } #> </div> <?php } }
cloggier