sdobwm

Untitled

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