Advertisement
Guest User

Untitled

a guest
May 29th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7.  
  8. <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
  9. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  10. <?php endif; ?>
  11.  
  12. <?php wp_head(); ?>
  13. </head>
  14. <?php
  15. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  16. if($current_options['layout_selector'] == "boxed")
  17. { $class="boxed"; }
  18. else
  19. { $class="wide"; }
  20. ?>
  21. <body <?php body_class($class); ?> >
  22. <div id="wrapper">
  23. <!--Header Top Info-->
  24. <?php if (( is_active_sidebar('home-header-sidebar_left') || is_active_sidebar('home-header-sidebar_right') )) {?>
  25. <section class="top-header-widget">
  26. <div class="container">
  27. <div class="row">
  28. <div class="col-md-8">
  29. <?php if( is_active_sidebar('home-header-sidebar_left') ) { ?>
  30. <?php dynamic_sidebar( 'home-header-sidebar_left' ); ?>
  31. <?php } ?>
  32. </div>
  33.  
  34. <div class="col-md-4">
  35. <?php if( is_active_sidebar('home-header-sidebar_right') ) { ?>
  36. <?php dynamic_sidebar( 'home-header-sidebar_right' ); ?>
  37. <?php } ?>
  38. </div>
  39. </div>
  40. </div>
  41. </section>
  42. <?php } ?>
  43. <!--End of Header Top Info-->
  44. <!-- Navbar -->
  45. <nav class="navbar navbar-default">
  46. <div class="container">
  47. <!-- Brand and toggle get grouped for better mobile display -->
  48. <div class="navbar-header">
  49. <a class="navbar-brand" href="<?php echo home_url( '/' ); ?>" class="brand">
  50. <?php
  51. if( $current_options['enable_logo_text'] == true ){
  52. bloginfo('name');
  53. }else{
  54. ?>
  55. <img alt="<?php bloginfo("name"); ?>" src="<?php echo ( esc_url($current_options['upload_image']) ? $current_options['upload_image'] : get_template_directory_uri() . '/images/logo.png' ); ?>"
  56. alt="<?php bloginfo("name"); ?>"
  57. class="logo_imgae" style="width:<?php echo esc_html($current_options['width']).'px'; ?>; height:<?php echo esc_html($current_options['height']).'px'; ?>;">
  58. <?php } ?>
  59. </a>
  60.  
  61. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  62. <span class="sr-only">Toggle navigation</span>
  63. <span class="icon-bar"></span>
  64. <span class="icon-bar"></span>
  65. <span class="icon-bar"></span>
  66. </button>
  67. </div>
  68.  
  69. <!-- Collect the nav links, forms, and other content for toggling -->
  70. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  71. <?php
  72. wp_nav_menu( array(
  73. 'theme_location' => 'primary',
  74. 'container' => 'nav-collapse collapse navbar-inverse-collapse',
  75. 'menu_class' => 'nav navbar-nav navbar-right',
  76. 'fallback_cb' => 'busiprof_fallback_page_menu',
  77. 'walker' => new busiprof_nav_walker())
  78. );
  79. ?>
  80. </div>
  81. </div>
  82. </nav>
  83. <!-- End of Navbar -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement