Advertisement
Tagcloud

Header.php

Jan 25th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. <?php global $shortname; ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  4. <head>
  5. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  7. <title><?php warrior_title(); ?></title>
  8. <?php warrior_meta(); ?>
  9.  
  10. <?php if( get_option($shortname.'_maintenance_status') == 'No' || current_user_can('administrator') ): // Check if the site is in maintenance mod ?>
  11. <?php if ( get_option($shortname.'_ie6_warning') == "Yes" && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') == true) : ?>
  12. <link href="<?php echo get_template_directory_uri(); ?>/css/ie6-warning.css" rel="stylesheet" type="text/css" media="screen" />
  13. <?php else: ?>
  14. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  15. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  16. <?php wp_head(); ?>
  17. <?php endif; ?>
  18. <?php else: ?>
  19. <link href="<?php echo get_template_directory_uri(); ?>/css/maintenance.css" rel="stylesheet" type="text/css" media="screen" />
  20. <?php endif; ?>
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24.  
  25. <?php warrior_maintenance(); warrior_ie6_warning(); ?>
  26.  
  27. <!-- START: MAIN CONTAINER -->
  28. <div id="main-container" class="clearfix">
  29.  
  30. <!-- START: TOP -->
  31. <div id="top" class="clearfix">
  32. <div class="container">
  33. <?php if ( has_nav_menu('top-menu') ) {
  34. echo '<h4 class="menu-control"><a href="#top-menu">Top Menu</a></h4>';
  35. wp_nav_menu( array ('theme_location' => 'top-menu', 'menu_id' => 'top-menu', 'menu_class' => 'sf-menu', 'fallback_cb' => null, 'container' => null) );
  36. } ?>
  37.  
  38. <form role="search" method="get" id="searchform" class="topsearch" action="<?php echo home_url( '/' ); ?>">
  39. <div>
  40. <input type="text" value="" name="s" id="s" />
  41. <span class="icon-search"></span>
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. <!-- END: TOP -->
  47.  
  48. <div class="container">
  49.  
  50. <!-- START: HEADER -->
  51. <div id="header" class="clearfix">
  52. <div class="logo">
  53. <?php warrior_logo(); ?>
  54. </div>
  55. <div class="ad">
  56. <?php
  57. if ( get_option($shortname.'_ad_468x60_adsense') != "" ) {
  58. echo get_option($shortname.'_ad_468x60_adsense');
  59. } else {
  60. if ( get_option($shortname.'_ad_468x60') != "" ) {
  61. echo '<a href="'. stripslashes(get_option($shortname.'_ad_468x60_url')) .'"><img src="'. stripslashes(get_option($shortname.'_ad_468x60')) .'" alt="" /></a>';
  62. }
  63. }
  64. ?>
  65. </div>
  66. </div>
  67. <!-- END: HEADER -->
  68.  
  69. <!-- START: ACCESS -->
  70. <div id="access" class="clearfix">
  71. <?php if ( has_nav_menu('main-menu') ) {
  72. echo '<h4 class="menu-control"><a href="#main-menu">Main Menu</a></h4>';
  73. wp_nav_menu( array ('theme_location' => 'main-menu', 'menu_id' => 'main-menu', 'menu_class' => 'sf-menu', 'fallback_cb' => null, 'container_class' => 'float-wrapper') );
  74. } ?>
  75. <div class="access-line"></div>
  76. </div>
  77. <!-- END: ACCESS -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement