Advertisement
AgenceRegard

header.php

Nov 18th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.38 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?> >
  3. <head>
  4.  
  5. <meta charset="<?php bloginfo('charset'); ?>">
  6. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  7.  
  8. <!-- Mobile Specific ================================================== -->
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
  10.  
  11. <!-- Title Tag ======================================================== -->
  12. <title><?php st_title(); ?></title>
  13.  
  14. <!-- Browser Specical Files =========================================== -->
  15. <!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]-->
  16. <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  17. <!--[if lt IE 9]> <link rel='stylesheet' id='' href='<?php echo ST_THEME_URL; ?>ie8.css' type='text/css' media='all' /><![endif]-->
  18.  
  19. <!-- Site Favicon ===================================================== -->
  20. <?php echo st_favicon(); ?>
  21. <?php
  22. $defaults = array('theme_location' => 'Primary_Navigation','container'=> false,'menu_class'=> 'menu','menu_id'=> '','echo' => false);
  23. if(class_exists('ST_Walker_Nav_Menu')){$defaults['walker'] = new ST_Walker_Nav_Menu();}
  24. $primary_nav = wp_nav_menu( $defaults );
  25. ?>
  26.  
  27. <!-- WP HEAD ========================================================== -->
  28. <?php wp_head(); ?>
  29. </head>
  30. <?php // <!-- Begin Body ======================================================= --> ?>
  31. <body <?php body_class(); ?>>
  32. <div class="body-outer-wrapper">
  33. <div class="body-wrapper <?php echo st_boxed_full(); ?>">
  34. <div class="header-outer-wrapper b30">
  35. <div class="top-nav-outer-wrapper">
  36. <div class="top-nav-wrapper container">
  37. <div class="row">
  38. <a href="#" id="top-nav-mobile" class="top-nav-close">
  39. <span></span>
  40. </a>
  41. <div class="top-nav-left">
  42. <nav id="top-nav-id" class="top-nav slideMenu">
  43. <?php
  44. $defaults = array(
  45. 'theme_location' => 'Top_Menu',
  46. 'container' => false,
  47. 'menu_class' => 'menu',
  48. 'echo' => true
  49. );
  50. wp_nav_menu( $defaults );
  51. ?>
  52. </nav>
  53. </div>
  54. <div class="top-nav-right text-right right">
  55.  
  56. <?php if(st_get_setting('show_top_search','y')!='n'){ ?>
  57. <div class="search-block right">
  58. <form action="<?php echo home_url(); ?>" method="get" id="searchform">
  59. <input id="s" onblur="if (this.value == '') {this.value = '<?php echo esc_attr(__('SEARCH...','magazon')); ?>';}" onfocus="if (this.value == '<?php echo esc_attr(__('SEARCH...','magazon')); ?>') {this.value = '';}" value="<?php echo esc_attr(__('SEARCH...','magazon')); ?>" name="s" type="text">
  60. <input class="search-submit" value="<?php echo esc_html(__('Search','magazon')) ?>" type="submit">
  61. </form>
  62. </div>
  63. <?php } ?>
  64.  
  65.  
  66. <div class="social-block right">
  67. <ul>
  68. <?php
  69. $link_target = st_get_setting('social_link_target','_blank');
  70. if($link_target=='_blank'){
  71. $link_target =' target="_blank" ';
  72. }else{
  73. $link_target = '';
  74. }
  75. ?>
  76. <?php if(st_get_setting("facebook")): ?>
  77. <li><a class="icon-facebook" <?php echo $link_target; ?> href="<?php echo esc_attr(st_get_setting("facebook")); ?>" title="<?php _e('Facebook','magazon'); ?>"></a></li>
  78. <?php endif; ?>
  79. <?php if(st_get_setting("google_plus")): ?>
  80. <li><a class="icon-google-plus" <?php echo $link_target; ?> href="<?php echo esc_attr(st_get_setting("google_plus")); ?>" title="<?php _e('Google Plus','magazon'); ?>"></a></li>
  81. <?php endif; ?>
  82. <?php if(st_get_setting("twitter")): ?>
  83. <li><a class="icon-twitter" <?php echo $link_target; ?> href="<?php echo esc_attr(st_get_setting("twitter")); ?>" title="<?php _e('Twitter','magazon'); ?>"></a></li>
  84. <?php endif; ?>
  85. <?php if(st_get_setting("linkedin")): ?>
  86. <li><a class="icon-linkedin" <?php echo $link_target; ?> href="<?php echo esc_attr(st_get_setting("linkedin")); ?>" title="<?php _e('Linkedin','magazon'); ?>"></a></li>
  87. <?php endif; ?>
  88. <?php if(st_get_setting("pinterest")): ?>
  89. <li><a class="icon-pinterest" <?php echo $link_target; ?> href="<?php echo esc_attr(st_get_setting("pinterest")); ?>" title="<?php _e('Pinterest','magazon'); ?>"></a></li>
  90. <?php endif; ?>
  91.  
  92. <?php if(st_get_setting("rss")): ?>
  93. <li><a class="icon-rss" <?php echo $link_target; ?> href="<?php echo esc_attr(st_get_setting("rss")); ?>" title="<?php _e('RSS','magazon'); ?>"></a></li>
  94. <?php endif; ?>
  95.  
  96. </ul>
  97. </div>
  98. <div class="clear"></div>
  99.  
  100. </div>
  101. <div class="clear"></div>
  102. </div>
  103. </div>
  104. </div> <!-- END .top-nav-outer-wrapper -->
  105. <div class="logo-outer-wrapper">
  106. <div class="logo-wrapper container">
  107. <div class="row">
  108. <div class="twelve columns">
  109. <?php
  110. global $st_options;
  111. $logo_padding_top = $st_options['logo_padding_top'];// st_get_setting('logo_padding_top');
  112. $logo_padding_bottom = $st_options['logo_padding_bottom']; //st_get_setting('logo_padding_bottom');
  113.  
  114. $logo_padding_top =($logo_padding_top=='') ? 20 : intval($logo_padding_top);
  115. $logo_padding_bottom =($logo_padding_bottom=='') ? 20 : intval($logo_padding_bottom);
  116.  
  117.  
  118. ?>
  119. <div class="logo-left" style="padding:<?php echo $logo_padding_top; ?>0px 0px <?php echo $logo_padding_bottom; ?>0px 0px">
  120. <h1>
  121. <a href="<?php echo home_url(); ?>">
  122. <?php if(st_get_setting("site_logo")): ?>
  123. <img src="<?php echo st_get_setting("site_logo"); ?>" alt="<?php _e('Logo','magazon'); ?>"></a>
  124. <?php else: ?>
  125. <?php bloginfo('name'); ?>
  126. <?php endif; ?>
  127. </a>
  128. </h1>
  129. </div>
  130. <div class="logo-right-widget right">
  131. <div class="logo-right-ads">
  132. <?php dynamic_sidebar('header_ads'); ?>
  133. </div>
  134. </div>
  135. <div class="clear"></div>
  136. </div>
  137. </div>
  138. <div class="clear"></div>
  139. </div>
  140. </div> <!-- END .logo-outer-wrapper -->
  141.  
  142. <div class="primary-nav-outer-wrapper">
  143. <div class="primary-nav-wrapper container">
  144. <div class="row">
  145. <div class="twelve columns nav-wrapper">
  146. <a href="#" id="primary-nav-mobile-a" class="primary-nav-close">
  147. <span></span>
  148. <?php _e('Navigation','magazon'); ?>
  149. </a>
  150. <nav id="primary-nav-mobile"></nav>
  151.  
  152. <nav id="primary-nav-id" class="primary-nav slideMenu">
  153. <?php
  154. echo $primary_nav;
  155. ?>
  156. <div class="clear"></div>
  157. </nav>
  158. <?php if(st_get_setting('show_nav_search','y')!='n'){ ?>
  159. <form id="nav-searchform" method="get" action="<?php echo home_url(); ?>">
  160. <div class="iw">
  161. <input type="submit" value="Search" class="search-submit">
  162. <input type="text" name="s" value="" placeholder="<?php echo esc_attr(__('SEARCH...','magazon')); ?>" class="s closed">
  163.  
  164. </div>
  165. </form>
  166. <?php } ?>
  167.  
  168. </div>
  169. </div>
  170. <div class="clear"></div>
  171. </div>
  172. </div><!-- END .primary-nav-outer-wrapper -->
  173. </div> <!-- END .header-outer-wrapper-->
  174.  
  175.  
  176.  
  177. <div class="main-outer-wrapper mt30">
  178. <div class="main-wrapper container">
  179. <div class="row row-wrapper">
  180. <div class="page-wrapper twelve columns b0">
  181. <div class="row">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement