taxonomy = esc_attr( $taxonomy );
parent::__construct( $manager, $id, $args );
}
/**
* Render content.
*
* @since Pleased 1.0.0
*/
public function render_content() {
$tax_args = array(
'hierarchical' => 0,
'taxonomy' => $this->taxonomy,
);
$taxonomies = get_categories( $tax_args );
?>
taxonomy = esc_attr( $taxonomy );
parent::__construct( $manager, $id, $args );
}
/**
* Render content.
*
* @since Pleased 1.0.0
*/
public function render_content() {
$tax_args = array(
'hierarchical' => 0,
'taxonomy' => $this->taxonomy,
);
$taxonomies = get_categories( $tax_args );
?>
' . esc_html( $this->label ) . '';
}
}
class Pleased_Switch_Control extends WP_Customize_Control{
public $type = 'switch';
public $on_off_label = array();
public function __construct( $manager, $id, $args = array() ){
$this->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;
?>
choices ) ) {
return;
}
$name = '_customize-radio-' . $this->id;
?>
label ); ?>
description ) ) : ?>
description ); ?>
* @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 Pleased_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() {
?>