';
echo '
';
}
);
require __DIR__ . '/../views/theme-support-header.php';
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "header-{$name}.php";
}
$templates[] = 'header.php';
// Avoid running wp_head hooks again
remove_all_actions( 'wp_head' );
ob_start();
// It cause a `require_once` so, in the get_header it self it will not be required again.
locate_template( $templates, true );
ob_get_clean();
}
public function get_footer( $name ) {
add_action(
'elementskit/template/after_footer',
function() {
echo '
';
}
);
require __DIR__ . '/../views/theme-support-footer.php';
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "footer-{$name}.php";
}
$templates[] = 'footer.php';
ob_start();
// It cause a `require_once` so, in the get_header it self it will not be required again.
locate_template( $templates, true );
ob_get_clean();
}
}