'_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => __( '— Select Category —', 'editorial' ), 'option_none_value' => '', 'selected' => $this->value(), ) ); // Hackily add in the data link parameter. $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', $this->label, $this->description, $dropdown ); } } /*---------------------------------------------------------------------------------------------------------------*/ /** * Image control by radio button */ class Editorial_Image_Radio_Control extends WP_Customize_Control { public function render_content() { if ( empty( $this->choices ) ) return; $name = '_customize-radio-' . $this->id; ?> label ); ?> description ); ?> label ); ?>
description); ?>
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 }} <# } #>