PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/blog/wp-content/themes/beach/header.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 68 lines | 47 code | 11 blank | 10 comment | 8 complexity | dd1dc0192c6ca7dec3fdd58705174ef9 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Beach
  5. */
  6. ?><!DOCTYPE html>
  7. <!--[if IE 7 ]><html class="ie7" <?php language_attributes(); ?>><![endif]-->
  8. <!--[if IE 8 ]><html class="ie8" <?php language_attributes(); ?>><![endif]-->
  9. <!--[if (gt IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
  10. <head>
  11. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  12. <title><?php
  13. /*
  14. * Print the <title> tag based on what is being viewed.
  15. */
  16. global $page, $paged;
  17. wp_title( '|', true, 'right' );
  18. // Add the blog name.
  19. bloginfo( 'name' );
  20. // Add the blog description for the home/front page.
  21. $site_description = get_bloginfo( 'description', 'display' );
  22. if ( $site_description && ( is_home() || is_front_page() ) )
  23. echo " | $site_description";
  24. // Add a page number if necessary:
  25. if ( $paged >= 2 || $page >= 2 )
  26. echo ' | ' . sprintf( __( 'Page %s', 'beach' ), max( $paged, $page ) );
  27. ?></title>
  28. <link rel="profile" href="http://gmpg.org/xfn/11" />
  29. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  30. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  31. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  32. <!--[if lt IE 9]>
  33. <script src="<?php bloginfo( 'template_directory' ); ?>/html5.js" type="text/javascript"></script>
  34. <![endif]-->
  35. <?php wp_head(); ?>
  36. </head>
  37. <body <?php body_class(); ?>>
  38. <div id="page" class="hfeed">
  39. <header id="branding">
  40. <hgroup role="banner">
  41. <h1 id="site-title"><span><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
  42. <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  43. </hgroup>
  44. <?php if ( has_nav_menu( 'secondary' ) ) : ?>
  45. <nav class="access" role="navigation">
  46. <h1 class="section-heading"><?php _e( 'Menu', 'beach' ); ?></h1>
  47. <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'beach' ); ?>"><?php _e( 'Skip to content', 'beach' ); ?></a></div>
  48. <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
  49. </nav><!-- #main .access -->
  50. <?php endif; ?>
  51. </header><!-- #branding -->
  52. <div id="main">
  53. <nav class="access" role="navigation">
  54. <h1 class="section-heading"><?php _e( 'Menu', 'beach' ); ?></h1>
  55. <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'beach' ); ?>"><?php _e( 'Skip to content', 'beach' ); ?></a></div>
  56. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  57. </nav><!-- #main .access -->