Guest User

Untitled

a guest
Dec 18th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.78 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. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  71. <span class="sr-only"><?php echo 'Toggle navigation'; ?></span>
  72. <span class="icon-bar"></span>
  73. <span class="icon-bar"></span>
  74. <span class="icon-bar"></span>
  75. </button>
  76.  
  77. <?php if($header_setting['text_title'] == 1) { ?>
  78. <a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
  79. <?php
  80. if($header_setting['enable_header_logo_text'] == 1)
  81. { echo "<div class=appointment_title_head>" . get_bloginfo( ). "</div>"; }
  82. elseif($header_setting['upload_image_logo']!='')
  83. { ?>
  84. <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;"/>
  85. <?php } else { ?>
  86. <img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/logo.png">
  87. <?php } ?>
  88. </a>
  89. <?php } ?>
  90.  
  91. </div>
  92.  
  93. <?php
  94. $facebook = $header_setting['social_media_facebook_link'];
  95. $twitter = $header_setting['social_media_twitter_link'];
  96. $linkdin = $header_setting['social_media_linkedin_link'];
  97. $googleplus = $header_setting['social_media_googleplus_link'];
  98. $instagram = $header_setting['social_media_instagram_link'];
  99. $skype = $header_setting['social_media_skype_link'];
  100. $youtube = $header_setting['social_media_youtube_link'];
  101.  
  102.  
  103. $social = '<ul id="%1$s" class="%2$s">%3$s';
  104. if($header_setting['header_social_media_enabled'] == 0 )
  105. {
  106. $social .= '<ul class="head-contact-social">';
  107.  
  108. if($header_setting['social_media_facebook_link'] != '') {
  109. $social .= '<li class="facebook"><a href="'.$facebook.'"';
  110. if($header_setting['facebook_media_link_target']==1)
  111. {
  112. $social .= 'target="_blank"';
  113. }
  114. $social .='><i class="fa fa-facebook"></i></a></li>';
  115. }
  116. if($header_setting['social_media_twitter_link']!='') {
  117. $social .= '<li class="twitter"><a href="'.$twitter.'"';
  118. if($header_setting['twitter_media_link_target']==1)
  119. {
  120. $social .= 'target="_blank"';
  121. }
  122. $social .='><i class="fa fa-twitter"></i></a></li>';
  123.  
  124. }
  125. if($header_setting['social_media_linkedin_link']!='') {
  126. $social .= '<li class="linkedin"><a href="'.$linkdin.'"';
  127. if($header_setting['linkedin_media_link_target']==1)
  128. {
  129. $social .= 'target="_blank"';
  130. }
  131. $social .='><i class="fa fa-linkedin"></i></a></li>';
  132. }
  133.  
  134. if($header_setting['social_media_googleplus_link']!='') {
  135. $social .= '<li class="googleplus"><a href="'.$googleplus.'"';
  136. if($header_setting['googleplus_media_link_target']==1)
  137. {
  138. $social .= 'target="_blank"';
  139. }
  140. $social .='><i class="fa fa-google-plus"></i></a></li>';
  141. }
  142.  
  143. if($header_setting['social_media_instagram_link']!='') {
  144. $social .= '<li class="instagram"><a href="'.$instagram.'"';
  145. if($header_setting['instagram_media_link_target']==1)
  146. {
  147. $social .= 'target="_blank"';
  148. }
  149. $social .='><i class="fa fa-instagram"></i></a></li>';
  150. }
  151.  
  152. if($header_setting['social_media_skype_link']!='') {
  153. $social .= '<li class="skype"><a href="'.$skype.'"';
  154. if($header_setting['skype_media_link_target']==1)
  155. {
  156. $social .= 'target="_blank"';
  157. }
  158. $social .='><i class="fa fa-skype"></i></a></li>';
  159. }
  160.  
  161.  
  162. if($header_setting['social_media_youtube_link']!='') {
  163. $social .= '<li class="youtube"><a href="'.$youtube.'"';
  164. if($header_setting['youtube_media_link_target']==1)
  165. {
  166. $social .= 'target="_blank"';
  167. }
  168. $social .='><i class="fa fa-youtube"></i></a></li>';
  169. }
  170.  
  171. if ( class_exists( 'WooCommerce' ) ) {
  172. global $woocommerce;
  173. $social .= '<li class="cart-icon">';
  174.  
  175. $social .= '<a href="'.$woocommerce->cart->get_cart_url().'" >';
  176.  
  177. if ($woocommerce->cart->cart_contents_count == 0){
  178. $social .= '<img src="'.get_stylesheet_directory_uri().'/images/empty.png" alt="empty" height="25" width="25">';
  179. }else{
  180. $social .= '<img src="'.get_stylesheet_directory_uri().'/images/full.png" alt="full" height="25" width="25">';
  181. }
  182.  
  183. $social .= '</a>';
  184.  
  185. $social .= '<a class="cart-contents" href="'.$woocommerce->cart->get_cart_url().'" >
  186. '.sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'appointment'), $woocommerce->cart->cart_contents_count).'</a>';
  187.  
  188. $social .= '</li>';
  189. }
  190.  
  191.  
  192. $social .='</ul>';
  193.  
  194. }
  195. $social .='</ul>';
  196.  
  197. ?>
  198.  
  199. <!-- Collect the nav links, forms, and other content for toggling -->
  200. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  201. <?php wp_nav_menu( array(
  202. 'theme_location' => 'primary',
  203. 'container' => '',
  204. 'menu_class' => 'nav navbar-nav navbar-right',
  205. 'fallback_cb' => 'webriti_fallback_page_menu',
  206. 'items_wrap' => $social,
  207. 'walker' => new webriti_nav_walker()
  208. ) );
  209. ?>
  210. </div><!-- /.navbar-collapse -->
  211. </div><!-- /.container-fluid -->
  212. </nav>
  213. <!--/Logo & Menu Section-->
  214. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment