Advertisement
Guest User

header.php

a guest
Dec 27th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.02 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title><?php tj_custom_titles(); ?></title>
  6. <?php tj_custom_description(); ?>
  7. <?php tj_custom_keywords(); ?>
  8. <?php tj_custom_canonical(); ?>
  9. <link rel="profile" href="http://gmpg.org/xfn/11" />
  10. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  11. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  12. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  13. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  14. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/colors/<?php echo get_option('collection_theme_stylesheet'); ?>" />
  15. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/custom.css" />
  16. <?php wp_head(); ?>
  17. </head>
  18.  
  19. <?php if (is_home() || is_archive() || is_search() ) add_filter('img_caption_shortcode', create_function('$a, $b, $c','return $c;'), 10, 3); ?>
  20.  
  21. <body <?php body_class(); ?>>
  22.     <span id="home-url" name="<?php echo get_template_directory_uri();?>"></span>
  23.     <?php if( get_option("collection_fixed_header_enable") == 'on' ):?>
  24.         <style type='text/css'>
  25.             #header { position: fixed; }
  26.             #content { margin-top: 80px; }
  27.         </style>
  28.     <?php endif;?>
  29.  
  30.     <?php if( get_option('collection_homepage_layout') == 'Fixed Width Layout (1240px)' ):?>
  31.         <style type="text/css">
  32.             #container { width:1240px; position: relative; left: 50%; margin-left: -620px; }
  33.             #header-content { width:1240px; position: relative; left: 50%; margin-left: -620px; }
  34.         </style>
  35.     <?php endif;?>
  36.    
  37.     <div id="header">
  38.         <div id="header-content">
  39.        
  40.             <?php if (get_option('collection_text_logo_enable') == 'on') { ?>
  41.                 <div id="text-logo">
  42.                     <h1 id="site-title"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
  43.                 </div><!-- #text-logo -->
  44.             <?php } else { ?>
  45.                 <a href="<?php echo home_url(); ?>"><?php $logo = (get_option('collection_logo') <> '') ? get_option('collection_logo') : get_template_directory_uri().'/images/logo.png'; ?><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" id="logo"/></a><!-- #logo -->
  46.             <?php }?>
  47.                        
  48.             <div id="header-nav">  
  49.                 <div class="nav">
  50.                     <?php $menuClass = '';
  51.                     $menuID = '';
  52.                     $headerNav = '';
  53.                     if (function_exists('wp_nav_menu')) {
  54.                         $headerNav = wp_nav_menu( array( 'theme_location' => 'header-nav', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) );
  55.                     };
  56.                     if ($headerNav == '') { ?>
  57.                         <ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>">
  58.                             <?php if (get_option('collection_home_link') == 'on') { ?><li class="first"><a href="<?php bloginfo('url'); ?>"><?php _e('Home','themejunkie');?></a></li><?php } ?>
  59.                             <?php if(get_option('collection_header_menu') == ('Pages')) { show_page_menu($menuClass,false,false); } else { show_categories_menu($menuClass,false,false); } ?>
  60.                         </ul>
  61.                     <?php } else echo($headerNav); ?>
  62.                 </div><!-- .nav -->
  63.             </div><!-- #header-nav -->
  64.            
  65.             <div id="header-social">
  66.                 <ul>
  67.                     <li>
  68.             <a href="/?page_id=326">Contact Us</a>
  69.             </li>
  70.             <li>
  71.            
  72.             </li>
  73.                 </ul>
  74.             </div><!-- #header-social -->
  75.            
  76.         </div><!-- #header-content -->
  77.     </div><!-- #header -->
  78.    
  79.     <div id="container" class="clear js-disabled">
  80.    
  81.         <div id="content">
  82.         <?php get_sidebar();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement