Guest User

Untitled

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