The Nishiki theme is Supported by AnimaGate, Inc.', 'nishiki' ) );
function nishiki_panel_count() {
$panel_count = 0;
$num_sections = NISHIKI_SECTION_NUM;
// Create a setting and control for each of the sections available in the theme.
for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
if ( get_theme_mod( 'panel_front_section' . $i ) ) {
$panel_count++;
}
}
return $panel_count;
}
// Customizer Controll JS
add_action( 'customize_controls_enqueue_scripts', 'nishiki_panels_js' );
function nishiki_panels_js() {
wp_enqueue_script( 'nishiki-customize-controls', get_template_directory_uri() . '/js/customize-controls.js', array(), '1.0', true );
}