Guest User

Untitled

a guest
Jun 5th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 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.  
  31.  
  32. <!--Logo & Menu Section-->
  33. <nav class="navbar navbar-default">
  34. <div class="container">
  35. <!-- Brand and toggle get grouped for better mobile display -->
  36. <div class="navbar-header">
  37.  
  38. <h1>
  39. <a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
  40. <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;"/>
  41. <?php
  42. echo "<div class=appointment_title_head>" . get_bloginfo( ). "</div>";
  43. $description = get_bloginfo( 'description', 'display' );
  44. echo '<p>' . $description . '</p>';
  45. ?>
  46.  
  47. </a>
  48. </h1>
  49.  
  50. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  51. <span class="sr-only"><?php echo 'Toggle navigation'; ?></span>
  52. <span class="icon-bar"></span>
  53. <span class="icon-bar"></span>
  54. <span class="icon-bar"></span>
  55. </button>
  56. </div>
  57.  
  58. <?php
  59. $facebook = $header_setting['social_media_facebook_link'];
  60. $twitter = $header_setting['social_media_twitter_link'];
  61. $linkdin = $header_setting['social_media_linkedin_link'];
  62.  
  63. $social = '<ul id="%1$s" class="%2$s">%3$s';
  64. if($header_setting['header_social_media_enabled'] == 0 )
  65. {
  66. $social .= '<ul class="head-contact-social">';
  67.  
  68. if($header_setting['social_media_facebook_link'] != '') {
  69. $social .= '<li class="facebook"><a href="'.$facebook.'"';
  70. if($header_setting['facebook_media_enabled']==1)
  71. {
  72. $social .= 'target="_blank"';
  73. }
  74. $social .='><i class="fa fa-facebook"></i></a></li>';
  75. }
  76. if($header_setting['social_media_twitter_link']!='') {
  77. $social .= '<li class="twitter"><a href="'.$twitter.'"';
  78. if($header_setting['twitter_media_enabled']==1)
  79. {
  80. $social .= 'target="_blank"';
  81. }
  82. $social .='><i class="fa fa-twitter"></i></a></li>';
  83.  
  84. }
  85. if($header_setting['social_media_linkedin_link']!='') {
  86. $social .= '<li class="linkedin"><a href="'.$linkdin.'"';
  87. if($header_setting['linkedin_media_enabled']==1)
  88. {
  89. $social .= 'target="_blank"';
  90. }
  91. $social .='><i class="fa fa-linkedin"></i></a></li>';
  92. }
  93. $social .='</ul>';
  94.  
  95. }
  96. $social .='</ul>';
  97.  
  98. ?>
  99.  
  100. <!-- Collect the nav links, forms, and other content for toggling -->
  101. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  102. <?php wp_nav_menu( array(
  103. 'theme_location' => 'primary',
  104. 'container' => '',
  105. 'menu_class' => 'nav navbar-nav navbar-right',
  106. 'fallback_cb' => 'webriti_fallback_page_menu',
  107. 'items_wrap' => $social,
  108. 'walker' => new webriti_nav_walker()
  109. ) );
  110. ?>
  111. </div><!-- /.navbar-collapse -->
  112. </div><!-- /.container-fluid -->
  113. </nav>
  114. <!--/Logo & Menu Section-->
  115. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment