Guest User

Untitled

a guest
Mar 16th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 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. <body <?php body_class(); ?> >
  17.  
  18. <?php if ( get_header_image() != '') {?>
  19. <div class="header-img">
  20. <div class="header-content">
  21. <?php if($header_setting['header_one_name'] != '') { ?>
  22. <h1><?php echo $header_setting['header_one_name'];?></h1>
  23. <?php } if($header_setting['header_one_text'] != '') { ?>
  24. <h3><?php echo $header_setting['header_one_text'];?></h3>
  25. <?php } ?>
  26. </div>
  27. <img class="img-responsive" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
  28. </div>
  29. <?php } ?>
  30. <?php if( is_active_sidebar('home-header-sidebar_left') || is_active_sidebar('home-header-sidebar_center') || is_active_sidebar('home-header-sidebar_right') ) { ?>
  31. <section class="top-header-widget">
  32. <div class="container">
  33. <div class="row">
  34. <div class="col-sm-4">
  35. <?php if( is_active_sidebar('home-header-sidebar_left') ) { ?>
  36. <?php dynamic_sidebar( 'home-header-sidebar_left' ); ?>
  37. <?php } ?>
  38. </div>
  39. <div class="col-sm-4">
  40. <?php if( is_active_sidebar('home-header-sidebar_center') ) {
  41. dynamic_sidebar( 'home-header-sidebar_center' );
  42. } ?>
  43. </div>
  44. <div class="col-sm-4">
  45. <?php if( is_active_sidebar('home-header-sidebar_right') ) { ?>
  46. <?php dynamic_sidebar( 'home-header-sidebar_right' ); ?>
  47. <?php } ?>
  48. </div>
  49. </div>
  50. </div>
  51. </section>
  52. <?php } ?>
  53. <!--Logo & Menu Section-->
  54. <nav class="navbar navbar-default">
  55. <div class="container">
  56. <!-- Brand and toggle get grouped for better mobile display -->
  57. <div class="navbar-header">
  58. <?php if($header_setting['text_title'] == 1) { ?>
  59. <a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
  60. <?php
  61. if($header_setting['enable_header_logo_text'] == 1)
  62. echo "<div class=appointment_title_head>" . get_bloginfo( ). "</div>";
  63. if($header_setting['upload_image_logo']!='')
  64. { ?>
  65. <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;"/>
  66. <?php } ?>
  67. </a>
  68. <?php } ?>
  69. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  70. <span class="sr-only"><?php _e('Toggle navigation','appointment'); ?></span>
  71. <span class="icon-bar"></span>
  72. <span class="icon-bar"></span>
  73. <span class="icon-bar"></span>
  74. </button>
  75. </div>
  76.  
  77. <?php
  78. $facebook = $header_setting['social_media_facebook_link'];
  79. $twitter = $header_setting['social_media_twitter_link'];
  80. $linkdin = $header_setting['social_media_linkedin_link'];
  81.  
  82. $social = '<ul id="%1$s" class="%2$s">%3$s';
  83. if($header_setting['header_social_media_enabled'] == 0 )
  84. {
  85. $social .= '<ul class="head-contact-social">';
  86.  
  87. if($header_setting['social_media_facebook_link'] != '') {
  88. $social .= '<li class="facebook"><a href="'.$facebook.'"';
  89. if($header_setting['facebook_media_link_target']==1)
  90. {
  91. $social .= 'target="_blank"';
  92. }
  93. $social .='><i class="fa fa-facebook"></i></a></li>';
  94. }
  95. if($header_setting['social_media_twitter_link']!='') {
  96. $social .= '<li class="twitter"><a href="'.$twitter.'"';
  97. if($header_setting['twitter_media_link_target']==1)
  98. {
  99. $social .= 'target="_blank"';
  100. }
  101. $social .='><i class="fa fa-twitter"></i></a></li>';
  102.  
  103. }
  104. if($header_setting['social_media_linkedin_link']!='') {
  105. $social .= '<li class="linkedin"><a href="'.$linkdin.'"';
  106. if($header_setting['linkedin_media_link_target']==1)
  107. {
  108. $social .= 'target="_blank"';
  109. }
  110. $social .='><i class="fa fa-linkedin"></i></a></li>';
  111. }
  112. $social .='</ul>';
  113.  
  114. }
  115. $social .='</ul>';
  116.  
  117. ?>
  118.  
  119. <!-- Collect the nav links, forms, and other content for toggling -->
  120. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  121. <?php wp_nav_menu( array(
  122. 'theme_location' => 'primary',
  123. 'container' => '',
  124. 'menu_class' => 'nav navbar-nav navbar-right',
  125. 'fallback_cb' => 'webriti_fallback_page_menu',
  126. 'items_wrap' => $social,
  127. 'walker' => new webriti_nav_walker()
  128. ) );
  129. ?>
  130. </div><!-- /.navbar-collapse -->
  131. </div><!-- /.container-fluid -->
  132. </nav>
  133. <!--/Logo & Menu Section-->
  134. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment