Guest User

Untitled

a guest
Dec 2nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 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. <body <?php body_class(); ?>>
  15. <div class="container" id="right_search"> <?php dynamic_sidebar('sidebar-additional'); ?> </div>
  16. <?php
  17.  
  18. $current_options = wp_parse_args( get_option( 'spa_theme_options', array() ), default_data() );
  19. ?>
  20. <!-- Navbar -->
  21. <nav class="navbar navbar-default">
  22. <div class="container">
  23. <!-- Brand and toggle get grouped for better mobile display -->
  24. <div class="navbar-header">
  25. <?php
  26.  
  27. if( has_custom_logo() ) {
  28.  
  29. the_custom_logo(); // Spasaloon custom logo support
  30.  
  31. } else {
  32.  
  33. echo '<a class="navbar-brand" href="'.esc_url( home_url( '/' ) ).'">';
  34.  
  35. if( $current_options['upload_image'] == '' ) {
  36.  
  37. bloginfo('name'); // if no custom logo than print bloginfo name
  38.  
  39. }
  40.  
  41. else {
  42.  
  43. $current_options['upload_image'] = ( $current_options['upload_image'] != '' ? $current_options['upload_image'] : get_template_directory_uri() . '/images/logo.png' );
  44.  
  45. $current_options['width'] = ( $current_options['width'] != '' ? $current_options['width'] : 150 );
  46.  
  47. $current_options['height'] = ( $current_options['height'] != '' ? $current_options['height'] : 35 );
  48.  
  49. echo '<img alt="'.get_bloginfo("name").'" src="'.$current_options['upload_image'].'" class="img-responsive" style="width:'.$current_options['width'].'px; height:'.$current_options['height'].'px;">';
  50.  
  51. }
  52.  
  53. echo '</a>';
  54.  
  55. }
  56.  
  57. ?>
  58. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  59. <span class="sr-only"><?php echo 'Toggle navigation'; ?></span>
  60. <span class="icon-bar"></span>
  61. <span class="icon-bar"></span>
  62. <span class="icon-bar"></span>
  63. </button>
  64. </div>
  65.  
  66. <!-- Collect the nav links, forms, and other content for toggling -->
  67. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  68. <?php
  69.  
  70. wp_nav_menu( array(
  71.  
  72. 'theme_location' => 'primary',
  73.  
  74. 'container' => 'nav-collapse collapse navbar-inverse-collapse',
  75.  
  76. 'menu_class' => 'nav navbar-nav navbar-right',
  77.  
  78. 'fallback_cb' => 'webriti_fallback_page_menu',
  79.  
  80. 'walker' => new webriti_nav_walker())
  81.  
  82. ); // primary support menu
  83.  
  84. ?>
  85. </div>
  86. </div>
  87. </nav>
  88. <!-- End of Navbar -->
  89.  
  90. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment