PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 59 lines | 38 code | 11 blank | 10 comment | 7 complexity | b805ac087408df6a20efbb71d84f7a29 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 Duster
  5. */
  6. ?><!DOCTYPE html>
  7. <html <?php language_attributes(); ?>>
  8. <head>
  9. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  10. <title><?php
  11. /*
  12. * Print the <title> tag based on what is being viewed.
  13. */
  14. global $page, $paged;
  15. wp_title( '|', true, 'right' );
  16. // Add the blog name.
  17. bloginfo( 'name' );
  18. // Add the blog description for the home/front page.
  19. $site_description = get_bloginfo( 'description', 'display' );
  20. if ( $site_description && ( is_home() || is_front_page() ) )
  21. echo " | $site_description";
  22. // Add a page number if necessary:
  23. if ( $paged >= 2 || $page >= 2 )
  24. echo ' | ' . sprintf( __( 'Page %s', 'duster' ), max( $paged, $page ) );
  25. ?></title>
  26. <link rel="profile" href="http://gmpg.org/xfn/11" />
  27. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  28. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  29. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  30. <!--[if lt IE 9]>
  31. <script src="<?php bloginfo( 'template_directory' ); ?>/html5.js" type="text/javascript"></script>
  32. <![endif]-->
  33. <?php wp_head(); ?>
  34. </head>
  35. <body <?php body_class(); ?>>
  36. <div id="page" class="hfeed">
  37. <header id="branding">
  38. <hgroup role="banner">
  39. <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>
  40. <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  41. </hgroup>
  42. <nav id="access" role="navigation">
  43. <h1 class="section-heading"><?php _e( 'Main menu', 'duster' ); ?></h1>
  44. <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'duster' ); ?>"><?php _e( 'Skip to content', 'duster' ); ?></a></div>
  45. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  46. </nav><!-- #access -->
  47. </header><!-- #branding -->
  48. <div id="main">