1. <?php
  2. /**
  3. * Header style 2
  4. *
  5. * @package circles
  6. * @since circles 1.0
  7. */
  8. ?>
  9. <header class='page-header'>
  10. <?php $active_social_items = ot_get_option('active_social_items');
  11. if (!is_array($active_social_items))
  12. {
  13. $active_social_items = array();
  14. }
  15. ?>
  16. <?php if (ot_get_option('show_preheader') != 'no'): ?>
  17. <div class="wrapper preheader">
  18. <div class="container">
  19. <ul class="socials no-bg-icon">
  20. <?php if (in_array('facebook',$active_social_items)): ?>
  21. <li>
  22. <span class="tran02slinear"></span>
  23. <a class='facebook tran02slinear' href='<?php echo ot_get_option('facebook_url'); ?>' title="Facebook" target="_blank"></a>
  24. </li>
  25. <?php endif;?>
  26. <?php if (in_array('twitter',$active_social_items)): ?>
  27. <li>
  28. <span class="tran02slinear"></span>
  29. <a class='twitter tran02slinear' href='<?php echo ot_get_option('twitter_url'); ?>' title="Twitter" target="_blank"></a>
  30. </li>
  31. <?php endif;?>
  32. <?php if (in_array('skype',$active_social_items)): ?>
  33. <li>
  34. <span class="tran02slinear"></span>
  35. <a class='skype tran02slinear' href='skype:<?php echo ot_get_option('skype_url'); ?>?call'></a>
  36. </li>
  37. <?php endif;?>
  38. <?php if (in_array('dribble',$active_social_items)): ?>
  39. <li>
  40. <span class="tran02slinear"></span>
  41. <a class='dribbble tran02slinear' href='<?php echo ot_get_option('dribble_url'); ?>' title="Dribble" target="_blank"></a>
  42. </li>
  43. <?php endif;?>
  44. <?php if (in_array('youtube',$active_social_items)): ?>
  45. <li>
  46. <span class="tran02slinear"></span>
  47. <a class='youtube tran02slinear' href='<?php echo ot_get_option('youtube_url'); ?>' title="Youtube" target="_blank"></a>
  48. </li>
  49. <?php endif;?>
  50. <?php if (in_array('pinterest',$active_social_items)): ?>
  51. <li>
  52. <span class="tran02slinear"></span>
  53. <a class='pinterest tran02slinear' href='<?php echo ot_get_option('pinterest_url'); ?>' title="Pinterest" target="_blank"></a>
  54. </li>
  55. <?php endif;?>
  56. <?php if (in_array('tumblr',$active_social_items)): ?>
  57. <li>
  58. <span class="tran02slinear"></span>
  59. <a class='tumblr tran02slinear' href='<?php echo ot_get_option('tumblr_url'); ?>' title="Tumblr" target="_blank"></a>
  60. </li>
  61. <?php endif;?>
  62. <?php if (in_array('google_plus',$active_social_items)): ?>
  63. <li>
  64. <span class="tran02slinear"></span>
  65. <a class='google-plus tran02slinear' href='<?php echo ot_get_option('google_plus_url'); ?>' title="Google+" target="_blank"></a>
  66. </li>
  67. <?php endif;?>
  68. <?php if (in_array('linkedin',$active_social_items)): ?>
  69. <li>
  70. <span class="tran02slinear"></span>
  71. <a class='linkedin tran02slinear' href='<?php echo ot_get_option('linkedin_url'); ?>' title="LinkedIn" target="_blank"></a>
  72. </li>
  73. <?php endif;?>
  74. </ul>
  75. <?php if (ot_get_option('header_phone')): ?>
  76. <a class="phone contact" href="#"><?php echo ot_get_option('header_phone'); ?></a>
  77. <?php endif; ?>
  78. </div>
  79. </div>
  80. <?php endif; ?>
  81. <div class='wrapper menu-bg <?php echo get_post_meta(get_the_ID(), 'transparent_header', true) == 'yes' ? 'transparent' : '' ?> border-bottom-white'>
  82. <div class='container'>
  83. <div class='grid_12'>
  84. <div class='logo'>
  85. <?php if (ot_get_option('logo_url')): ?>
  86. <?php $logo = ts_get_image(ot_get_option('logo_url'), '' , esc_attr( get_bloginfo( 'name', 'display' ) )); ?>
  87. <?php else: ?>
  88. <?php $logo = '<img src="'.get_bloginfo('template_directory').'/images/logo.png" alt="'.esc_attr( get_bloginfo( 'name', 'display' ) ).'">'; ?>
  89. <?php endif;?>
  90. <a href='<?php echo home_url( '/' ); ?>' title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php echo $logo; ?></a>
  91. </div>
  92. <a id="menu-btn" href="#"></a>
  93. <?php if (ot_get_option('show_search_nav') != 'no'): ?>
  94. <div id="search-icon">
  95. <i></i>
  96. <form role="search" method="get" id="searchform" action="<?php bloginfo('url')?>">
  97. <input type="text" value="" name="s" placeholder="Search" id="s">
  98. </form>
  99. </div>
  100. <?php endif;
  101. $defaults = array(
  102. 'container' => 'nav',
  103. 'theme_location' => 'primary',
  104. 'depth' => 3,
  105. 'walker' => new ts_walker_nav_menu
  106. );
  107. wp_nav_menu( $defaults ); ?>
  108. <ul class='socials mobile-socials'>
  109. <?php if (in_array('facebook',$active_social_items)): ?>
  110. <li>
  111. <span class="tran02slinear"></span>
  112. <a class='facebook tran02slinear' href='<?php echo ot_get_option('facebook_url'); ?>' title="Facebook" target="_blank"></a>
  113. </li>
  114. <?php endif;?>
  115. <?php if (in_array('twitter',$active_social_items)): ?>
  116. <li>
  117. <span class="tran02slinear"></span>
  118. <a class='twitter tran02slinear' href='<?php echo ot_get_option('twitter_url'); ?>' title="Twitter" target="_blank"></a>
  119. </li>
  120. <?php endif;?>
  121. <?php if (in_array('skype',$active_social_items)): ?>
  122. <li>
  123. <span class="tran02slinear"></span>
  124. <a class='skype tran02slinear' href='skype:<?php echo ot_get_option('skype_url'); ?>?call'></a>
  125. </li>
  126. <?php endif;?>
  127. <?php if (in_array('dribble',$active_social_items)): ?>
  128. <li>
  129. <span class="tran02slinear"></span>
  130. <a class='dribbble tran02slinear' href='<?php echo ot_get_option('dribble_url'); ?>' title="Dribble" target="_blank"></a>
  131. </li>
  132. <?php endif;?>
  133. <?php if (in_array('youtube',$active_social_items)): ?>
  134. <li>
  135. <span class="tran02slinear"></span>
  136. <a class='youtube tran02slinear' href='<?php echo ot_get_option('youtube_url'); ?>' title="Youtube" target="_blank"></a>
  137. </li>
  138. <?php endif;?>
  139. <?php if (in_array('pinterest',$active_social_items)): ?>
  140. <li>
  141. <span class="tran02slinear"></span>
  142. <a class='pinterest tran02slinear' href='<?php echo ot_get_option('pinterest_url'); ?>' title="Pinterest" target="_blank"></a>
  143. </li>
  144. <?php endif;?>
  145. <?php if (in_array('tumblr',$active_social_items)): ?>
  146. <li>
  147. <span class="tran02slinear"></span>
  148. <a class='tumblr tran02slinear' href='<?php echo ot_get_option('tumblr_url'); ?>' title="Tumblr" target="_blank"></a>
  149. </li>
  150. <?php endif;?>
  151. <?php if (in_array('google_plus',$active_social_items)): ?>
  152. <li>
  153. <span class="tran02slinear"></span>
  154. <a class='google-plus tran02slinear' href='<?php echo ot_get_option('google_plus_url'); ?>' title="Google+" target="_blank"></a>
  155. </li>
  156. <?php endif;?>
  157. <?php if (in_array('linkedin',$active_social_items)): ?>
  158. <li>
  159. <span class="tran02slinear"></span>
  160. <a class='linkedin tran02slinear' href='<?php echo ot_get_option('linkedin_url'); ?>' title="LinkedIn" target="_blank"></a>
  161. </li>
  162. <?php endif;?>
  163. </ul>
  164. </div>
  165. </div>
  166. </div>
  167. <div class='absolute'>
  168. <?php if (!get_post_meta(get_the_ID(), 'post_slider',true)/* && !get_post_meta(get_the_ID(),'header_background',true)*/):
  169. get_template_part( 'inc/top' );
  170. endif; ?>
  171. </div>
  172. </header>

Headerstyle3 of my existing Wordpress theme

Comments powered by Disqus