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() ); ?>"/>
taxonomy = esc_attr( $taxonomy );
parent::__construct( $manager, $id, $args );
}
public function render_content() {
$tax_args = array(
'hierarchical' => 0,
'taxonomy' => $this->taxonomy,
);
$taxonomies = get_categories( $tax_args );
?>
choices ) )
return;
?>
choices ) )
return;
?>
remove_section( 'colors' );
//customizer section
require get_theme_file_path() . '/inc/customizer/top_bar.php';
//blog section
require get_theme_file_path() . '/inc/customizer/child_blog.php';
//instagram section
require get_theme_file_path() . '/inc/customizer/instagram.php';
}
add_action( 'customize_register', 'blog_plus_customize_register' );
/*=============active callback=====================*/
function blog_plus_is_instagram_section_enable( $control ) {
return ( $control->manager->get_setting( 'instagram_section_enable' )->value() );
}
function blog_plus_is_blog_section_enable( $control ) {
return ( $control->manager->get_setting( 'child_blog_section_enable' )->value() );
}
if ( ! function_exists( 'blog_plus_child_blog_title_partial' ) ) :
// blog title
function blog_plus_child_blog_title_partial() {
return esc_html( get_theme_mod( 'child_blog_title' ) );
}
endif;