Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function get_header( $name = null ) {
- do_action( 'get_header' );
- $templates = array();
- if ( isset($name) )
- $templates[] = "header-{$name}.php";
- $templates[] = "header.php";
- if ('' == locate_template($templates, true))
- load_template( get_theme_root() . 'header.php');
- }
- get_header();
- ?>
Add Comment
Please, Sign In to add comment