Created
July 22, 2014 12:39
-
-
Save cidadesonho/dfe83ca4ecc742b33334 to your computer and use it in GitHub Desktop.
Header PHP for WP Bootstrap Theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="pt-br"> | |
| <head> | |
| <!-- meta --> | |
| <meta charset="utf-8"> | |
| <title><?php bloginfo('name'); ?></title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content="<?php if ( is_single() ) { | |
| single_post_title('', true); | |
| } else { | |
| bloginfo('name'); echo " - "; bloginfo('description'); | |
| } | |
| ?>" /> | |
| <!-- css styles --> | |
| <link href="<?php bloginfo('stylesheet_url');?>" rel="stylesheet"> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <!-- support of HTML5 elements --> | |
| <!--[if lt IE 9]> | |
| <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| <?php wp_enqueue_script("jquery"); ?> | |
| <?php wp_head(); ?> | |
| </head> | |
| <body> | |
| <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#wpbootstrap-navbar-collapse"> | |
| <span class="sr-only">Toggle navigation</span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| </button> | |
| </div> | |
| <div class="navbar-collapse collapse"> | |
| <?php | |
| wp_nav_menu( array( | |
| 'menu' => 'primary', | |
| 'theme_location' => 'primary', | |
| 'depth' => 2, | |
| 'container' => 'div', | |
| 'container_class' => '', | |
| 'container_id' => 'wpbootstrap-navbar-collapse', | |
| 'menu_class' => 'nav navbar-nav navbar-right', | |
| 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', | |
| 'walker' => new wp_bootstrap_navwalker()) | |
| ); | |
| ?> | |
| </div><!--/.navbar-collapse --> | |
| </div><!--/.container --> | |
| </div><!--/.navbar-inverse --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment