Guest User

Untitled

a guest
Aug 17th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.26 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?> >
  3. <head>
  4. <meta charset="<?php bloginfo('charset'); ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <?php
  8. $appointment_options=theme_setup_data();
  9. $header_setting = wp_parse_args( get_option( 'appointment_options', array() ), $appointment_options);
  10. if($header_setting['upload_image_favicon']!=''){ ?>
  11. <link rel="shortcut icon" href="<?php echo $header_setting['upload_image_favicon']; ?>" />
  12. <?php } ?>
  13. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  14. <?php wp_head(); ?>
  15. </head>
  16. <?php
  17. if($header_setting['layout_selector'] == "boxed")
  18. { $class="boxed"; }
  19. else
  20. { $class="wide"; }
  21. ?>
  22. <body <?php body_class($class); ?> >
  23. <div id="wrapper">
  24. <?php if ( get_header_image() != '') {?>
  25. <div class="header-img">
  26. <div class="header-content">
  27. <?php if($header_setting['header_one_name'] != '') { ?>
  28. <h1><?php echo $header_setting['header_one_name'];?></h1>
  29. <?php } if($header_setting['header_one_text'] != '') { ?>
  30. <h3><?php echo $header_setting['header_one_text'];?></h3>
  31. <?php } ?>
  32. </div>
  33. <img class="img-responsive" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
  34. </div>
  35. <?php } ?>
  36. <?php if( is_active_sidebar('home-header-sidebar_left') || is_active_sidebar('home-header-sidebar_center') || is_active_sidebar('home-header-sidebar_right') ) { ?>
  37. <section class="top-header-widget">
  38. <div class="container">
  39. <div class="row">
  40. <div class="col-sm-4">
  41. <div id="top-header-sidebar-left">
  42. <?php if( is_active_sidebar('home-header-sidebar_left') ) { ?>
  43. <?php dynamic_sidebar( 'home-header-sidebar_left' ); ?>
  44. <?php } ?>
  45. </div>
  46. </div>
  47. <div class="col-sm-4">
  48. <div id="top-header-sidebar-center">
  49. <?php if( is_active_sidebar('home-header-sidebar_center') ) {
  50. dynamic_sidebar( 'home-header-sidebar_center' );
  51. } ?>
  52. </div>
  53. </div>
  54. <div class="col-sm-4">
  55. <div id="top-header-sidebar-right">
  56. <?php if( is_active_sidebar('home-header-sidebar_right') ) { ?>
  57. <?php dynamic_sidebar( 'home-header-sidebar_right' ); ?>
  58. <?php } ?>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </section>
  64. <?php } ?>
  65. <!--Logo & Menu Section-->
  66. <nav class="navbar navbar-default">
  67. <div class="container">
  68. <!-- Brand and toggle get grouped for better mobile display -->
  69. <div class="navbar-header">
  70. <?php if($header_setting['text_title'] == 1) { ?>
  71. <a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
  72. <?php
  73. if($header_setting['enable_header_logo_text'] == 1)
  74. { echo "<div class=appointment_title_head>" . get_bloginfo( ). "</div>"; }
  75. elseif($header_setting['upload_image_logo']!='')
  76. { ?>
  77. <img class="img-responsive" src="<?php echo $header_setting['upload_image_logo']; ?>" style="height:<?php echo $header_setting['height']; ?>px; width:<?php echo $header_setting['width']; ?>px;"/>
  78. <?php } else { ?>
  79. <img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/logo.png">
  80. <?php } ?>
  81. </a>
  82. <?php } ?>
  83. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  84. <span class="sr-only"><?php echo 'Toggle navigation'; ?></span>
  85. <span class="icon-bar"></span>
  86. <span class="icon-bar"></span>
  87. <span class="icon-bar"></span>
  88. </button>
  89. </div>
  90.  
  91. <?php
  92. $facebook = $header_setting['social_media_facebook_link'];
  93. $twitter = $header_setting['social_media_twitter_link'];
  94. $linkdin = $header_setting['social_media_linkedin_link'];
  95. $googleplus = $header_setting['social_media_googleplus_link'];
  96. $instagram = $header_setting['social_media_instagram_link'];
  97. $skype = $header_setting['social_media_skype_link'];
  98. $youtube = $header_setting['social_media_youtube_link'];
  99.  
  100.  
  101. $social = '<ul id="%1$s" class="%2$s">%3$s';
  102. if($header_setting['header_social_media_enabled'] == 0 )
  103. {
  104. $social .= '<ul class="head-contact-social">';
  105.  
  106. if($header_setting['social_media_facebook_link'] != '') {
  107. $social .= '<li class="facebook"><a href="'.$facebook.'"';
  108. if($header_setting['facebook_media_link_target']==1)
  109. {
  110. $social .= 'target="_blank"';
  111. }
  112. $social .='><i class="fa fa-facebook"></i></a></li>';
  113. }
  114. if($header_setting['social_media_twitter_link']!='') {
  115. $social .= '<li class="twitter"><a href="'.$twitter.'"';
  116. if($header_setting['twitter_media_link_target']==1)
  117. {
  118. $social .= 'target="_blank"';
  119. }
  120. $social .='><i class="fa fa-twitter"></i></a></li>';
  121.  
  122. }
  123. if($header_setting['social_media_linkedin_link']!='') {
  124. $social .= '<li class="linkedin"><a href="'.$linkdin.'"';
  125. if($header_setting['linkedin_media_link_target']==1)
  126. {
  127. $social .= 'target="_blank"';
  128. }
  129. $social .='><i class="fa fa-linkedin"></i></a></li>';
  130. }
  131.  
  132. if($header_setting['social_media_googleplus_link']!='') {
  133. $social .= '<li class="googleplus"><a href="'.$googleplus.'"';
  134. if($header_setting['googleplus_media_link_target']==1)
  135. {
  136. $social .= 'target="_blank"';
  137. }
  138. $social .='><i class="fa fa-google-plus"></i></a></li>';
  139. }
  140.  
  141. if($header_setting['social_media_instagram_link']!='') {
  142. $social .= '<li class="instagram"><a href="'.$instagram.'"';
  143. if($header_setting['instagram_media_link_target']==1)
  144. {
  145. $social .= 'target="_blank"';
  146. }
  147. $social .='><i class="fa fa-instagram"></i></a></li>';
  148. }
  149.  
  150. if($header_setting['social_media_skype_link']!='') {
  151. $social .= '<li class="skype"><a href="'.$skype.'"';
  152. if($header_setting['skype_media_link_target']==1)
  153. {
  154. $social .= 'target="_blank"';
  155. }
  156. $social .='><i class="fa fa-skype"></i></a></li>';
  157. }
  158.  
  159.  
  160. if($header_setting['social_media_youtube_link']!='') {
  161. $social .= '<li class="youtube"><a href="'.$youtube.'"';
  162. if($header_setting['youtube_media_link_target']==1)
  163. {
  164. $social .= 'target="_blank"';
  165. }
  166. $social .='><i class="fa fa-youtube"></i></a></li>';
  167. }
  168.  
  169. if ( class_exists( 'WooCommerce' ) ) {
  170. global $woocommerce;
  171. $social .= '<li class="cart-icon">';
  172.  
  173. $link = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : $woocommerce->cart->get_cart_url();
  174. $social .= '<a href="'.$link.'" >';
  175.  
  176. if ($woocommerce->cart->cart_contents_count == 0){
  177. $social .= '<img src="'.get_stylesheet_directory_uri().'/images/empty.png" alt="empty" height="25" width="25">';
  178. }else{
  179. $social .= '<img src="'.get_stylesheet_directory_uri().'/images/full.png" alt="full" height="25" width="25">';
  180. }
  181.  
  182. $social .= '</a>';
  183.  
  184. $social .= '<a class="cart-contents" href="'.$link.'" >
  185. '.sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'appointment'), $woocommerce->cart->cart_contents_count).'</a>';
  186.  
  187. $social .= '</li>';
  188. }
  189.  
  190.  
  191. $social .='<li class="search">
  192. <a class="search_icon">
  193. <i class="fa fa-search">
  194. </i>
  195. </a>
  196. <div style="display:none;" class="searchform">
  197. <form role="search" method="get" id="searchform" action="/index.php">
  198. <input type="text" name="s" id="s" />
  199. <input type="submit" id="searchsubmit" value="Search" />
  200. </form>
  201. </div>
  202. </li></ul>';
  203.  
  204. }
  205. $social .='</ul>';
  206.  
  207. ?>
  208.  
  209. <!-- Collect the nav links, forms, and other content for toggling -->
  210. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  211. <?php wp_nav_menu( array(
  212. 'theme_location' => 'primary',
  213. 'container' => '',
  214. 'menu_class' => 'nav navbar-nav navbar-right',
  215. 'fallback_cb' => 'webriti_fallback_page_menu',
  216. 'items_wrap' => $social,
  217. 'walker' => new webriti_nav_walker()
  218. ) );
  219. ?>
  220. </div><!-- /.navbar-collapse -->
  221. </div><!-- /.container-fluid -->
  222. </nav>
  223. <!--/Logo & Menu Section-->
  224. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment