on_off_label = $args['on_off_label']; parent::__construct( $manager, $id, $args ); } public function render_content(){ ?> label ); ?> description ) : ?> description ); ?> value() == 'true' ) ? 'switch-on' : ''; $on_off_label = $this->on_off_label; ?>
link(); ?> type="hidden" value="value() ); ?>"/> choices ) ) return; $name = '_customize-radio-' . $this->id; ?> label ); if ( ! empty( $this->description ) ) : ?> description ); ?>
choices as $value => $label ) : ?>
choices ) ) return; ?> * @license https://www.gnu.org/licenses/gpl-3.0.txt GNU/GPLv3 * @link https://github.com/dingo-d/wordpress-theme-customizer-extra-custom-controls * @since 1.0.0 */ class CollarBiz_Multi_Input_Custom_Control extends WP_Customize_Control { /** * Control type * * @var string */ public $type = 'multi-input'; /** * Control button text. * * @var string */ public $button_text; /** * Control method * * @since 1.0.0 */ public function render_content() { ?>

pro_text; $json['pro_url'] = esc_url( $this->pro_url ); return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?>
  • {{ data.title }} <# if ( data.pro_text && data.pro_url ) { #> {{ data.pro_text }} <# } #>