views_path ) { $this->views_path = wp_normalize_path( dirname( KIRKI_PLUGIN_FILE ) . '/controls/views/' ); } add_action( 'customize_controls_print_footer_scripts', array( $this, 'underscore_templates' ) ); } /** * Adds underscore.js templates to the footer. * * @access public * @since 3.0.17 */ public function underscore_templates() { foreach ( $this->templates as $template ) { if ( file_exists( $this->views_path . $template . '.php' ) ) { echo ''; } } } }