Guest User

Untitled

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