taxonomy = esc_attr($our_taxonomy);
parent::__construct($manager, $id, $args);
}
/**
* Render content.
*
* @since 1.0.0
*/
public function render_content() {
$tax_args = array(
'hierarchical' => 0,
'taxonomy' => $this->taxonomy,
);
$all_taxonomies = get_categories($tax_args);
?>
choices)) {
return;
}
$name = '_customize-radio-'.$this->id;
?>
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 }}
<# } #>
manager->get_setting( 'select_slider_from' )->value() ) {
return true;
} else {
return false;
}
}
endif;
/*select cat for slider*/
if ( ! function_exists( 'business_insights_is_select_cat_slider' ) ) :
/**
* Check if slider section form page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function business_insights_is_select_cat_slider( $control ) {
if ( 'from-category' === $control->manager->get_setting( 'select_slider_from' )->value() ) {
return true;
} else {
return false;
}
}
endif;
/*select page for testimonial*/
if ( ! function_exists( 'business_insights_is_select_page_testimonial' ) ) :
/**
* Check if testimonial section form page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function business_insights_is_select_page_testimonial( $control ) {
if ( 'from-page' === $control->manager->get_setting( 'select_testimonial_from' )->value() ) {
return true;
} else {
return false;
}
}
endif;
/*select cat for testimonial*/
if ( ! function_exists( 'business_insights_is_select_cat_testimonial' ) ) :
/**
* Check if slider section page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function business_insights_is_select_cat_testimonial( $control ) {
if ( 'from-category' === $control->manager->get_setting( 'select_testimonial_from' )->value() ) {
return true;
} else {
return false;
}
}
endif;