Advertisement
Guest User

Untitled

a guest
Nov 5th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. <?php
  2. // Get theme options
  3. $theme_options = get_option('option_tree');
  4. $omc_logo_image = get_option_tree('omc_logo_image', $theme_options, false);
  5. $omc_favicon = get_option_tree('omc_favicon', $theme_options, false);
  6. $omc_header_font = get_option_tree('omc_header_font', $theme_options, false);
  7. $omc_paragraph_font = get_option_tree('omc_paragraph_font', $theme_options, false);
  8. $omc_top_menu = get_option_tree('omc_top_menu', $theme_options, false);
  9.  
  10. ?>
  11.  
  12. <!doctype html >
  13. <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
  14. <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
  15. <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
  16. <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
  17.  
  18. <head>
  19.  
  20. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  21.  
  22. <title><?php bloginfo('name') ;?> | <?php bloginfo('description');?></title>
  23.  
  24. <?php if ($omc_favicon !== NULL) { ?><link href="<?php echo $omc_favicon; ?>" rel="shortcut icon"/><?php } ?>
  25.  
  26. <meta name="description" content="<?php bloginfo('description');?>">
  27.  
  28. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  29.  
  30. <?php wp_head(); ?>
  31.  
  32. <!--[if IE 8]><link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri();?>/css/ie8.css" /><![endif]-->
  33.  
  34. <!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri();?>/css/ie7.css" /><![endif]-->
  35.  
  36.  
  37. <link href='http://fonts.googleapis.com/css?family=<?php $omc_header_font = str_replace(" ", "+", $omc_header_font); echo $omc_header_font; ?>:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
  38.  
  39. <?php if ($omc_paragraph_font !== NULL) { $omc_paragraph_font = str_replace(" ", "+", $omc_paragraph_font); echo("<link href='http://fonts.googleapis.com/css?family=".$omc_paragraph_font.":400italic,700italic,400,700' rel='stylesheet' type='text/css'>"); }?>
  40.  
  41. <noscript>
  42. <style>
  43. .es-carousel ul{display:block;}
  44. </style>
  45. </noscript>
  46.  
  47. <?php get_template_part('header-options');?>
  48.  
  49. </head>
  50.  
  51. <body <?php body_class(); ?> >
  52.  
  53. <div id="fb-root">
  54. </div>
  55. <script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
  56.  
  57. <div id="omc-transparent-layer">
  58.  
  59. <!-- <div class="preloaders" style=""></div> -->
  60.  
  61. <?php if ($omc_top_menu === 'Yes') { ?>
  62.  
  63. <div id="omc-top-menu">
  64.  
  65. <?php wp_nav_menu( array('container_class' => 'omc-top-menu-inner', 'theme_location' => 'toplevel'));?>
  66.  
  67. <br class="clear" />
  68.  
  69. </div>
  70.  
  71. <?php } ?>
  72.  
  73. <div id="omc-container">
  74.  
  75. <header>
  76.  
  77. <?php if ( ! dynamic_sidebar( 'Header Banner' ) ) : endif; ?>
  78.  
  79. <a id="omc-logo" href="<?php echo home_url();?>"><img src="<?php if ($omc_logo_image !== NULL) { echo $omc_logo_image; } else { echo get_template_directory_uri();?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name');?> logo" <?php if ($omc_logo_image === NULL) { echo('height="96"'); }?> /></a>
  80.  
  81. <nav id="omc-main-navigation">
  82.  
  83. <?php if ( has_nav_menu( 'primary' ) ) { ?>
  84.  
  85. <?php wp_nav_menu( array('container_class' => 'omc-over-480', 'fallback_cb' => 'none', 'theme_location' => 'primary', 'walker' => new Description_Walker));?>
  86.  
  87. <?php } else { wp_nav_menu(); } ?>
  88.  
  89. <br class="clear" />
  90.  
  91. <?php wp_nav_menu( array('container_class' => 'omc-under-480', 'theme_location' => 'mobile', 'fallback_cb' => 'none', 'items_wrap' => '%3$s'));?>
  92.  
  93. <div id="omc-header-search-mobi">
  94.  
  95. <form method="get" id="mobi-search" class="omc-mobi-search-form" action="<?php echo home_url(); ?>/">
  96.  
  97. <input type="text" class="omc-header-mobi-search-input-box" value="" name="s" id="mobi-mobi-search">
  98.  
  99. <input type="submit" class="omc-header-mobi-search-button" id="seadssdrchsubmit" value="">
  100.  
  101. </form>
  102.  
  103. </div>
  104.  
  105. </nav>
  106.  
  107. <br class="clear" />
  108.  
  109. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement