Advertisement
Guest User

Untitled

a guest
Sep 29th, 2015
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <!--[if IE]>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. ``
  7. <![endif]-->
  8. <meta charset="<?php bloginfo('charset'); ?>" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  10. <link rel="profile" href="http://gmpg.org/xfn/11" />
  11. <!-- Theme Css -->
  12. <?php
  13. $quality_pro_options=theme_data_setup();
  14. $current_options = wp_parse_args( get_option( 'quality_pro_options', array() ), $quality_pro_options ); ?>
  15. <?php if($current_options['upload_image_favicon']!=''){ ?>
  16. <link rel="shortcut icon" href="<?php echo esc_url($current_options['upload_image_favicon']); ?>" />
  17. <?php }
  18. wp_head(); ?>
  19. </head>
  20. <body <?php body_class(); ?>>
  21. <!--Header Logo & Menus-->
  22. <div class="container">
  23. <nav class="navbar navbar-default" role="navigation">
  24. <div class="container-fluid">
  25. <!-- Brand and toggle get grouped for better mobile display -->
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <div class="logo pull-left" >
  34. <?php
  35. if($current_options['text_title'] ==true)
  36. { ?>
  37. <div class="qua_title_head">
  38. <h1 class="qua-logo" ><a href="<?php echo home_url( '/' ); ?>"><?php echo get_bloginfo( ); ?></a></h1>
  39. </div>
  40. <?php
  41. } else if($current_options['upload_image_logo']!='')
  42. { ?>
  43. <a href="<?php echo home_url( '/' ); ?>"><img src="<?php echo esc_url($current_options['upload_image_logo']); ?>" style="height:<?php if($current_options['height']!='') { echo $current_options['height']; } else { "80"; } ?>px; width:<?php if($current_options['width']!='') { echo $current_options['width']; } else { "200"; } ?>px;" /></a>
  44. <?php } else { ?>
  45. <a href="<?php echo home_url( '/' ); ?>"><img src="<?php echo QUALITY_TEMPLATE_DIR_URI; ?>/images/logo.png"></a>
  46. <?php } ?>
  47. </div>
  48. </div>
  49. <!-- Collect the nav links, forms, and other content for toggling -->
  50.  
  51. <?php
  52. wp_nav_menu( array(
  53. 'menu' => 'primary',
  54. 'theme_location' => 'primary',
  55. 'depth' => 2,
  56. 'container' => 'div',
  57. 'container_class' => 'collapse navbar-collapse',
  58. 'container_id' => 'bs-example-navbar-collapse-1',
  59. 'menu_class' => 'nav navbar-nav',
  60. 'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
  61. 'walker' => new wp_bootstrap_navwalker())
  62. );
  63.  
  64. ?>
  65.  
  66. <!-- /.navbar-collapse -->
  67. </div>
  68. <!-- /.container-fluid -->
  69. </nav>
  70. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement