PageRenderTime 90ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 46 lines | 37 code | 5 blank | 4 comment | 6 complexity | 0db70cfe8838c1e84c78cd55753f44eb 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 Traction
  5. */
  6. global $traction; ?><!DOCTYPE html>
  7. <html <?php language_attributes(); ?>>
  8. <head>
  9. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  10. <title><?php wp_title(); ?> <?php bloginfo( 'name' ); ?></title>
  11. <meta name="Copyright" content="Design is copyright <?php echo date( 'Y' ); ?> The Theme Foundry" />
  12. <link rel="profile" href="http://gmpg.org/xfn/11" />
  13. <link rel="shortcut icon" href="<?php get_stylesheet_directory_uri(); ?>/images/favicon.ico" />
  14. <link href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" rel="stylesheet" />
  15. <!--[if lt IE 8]>
  16. <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'stylesheet_url' ); ?>/stylesheets/ie.css" />
  17. <![endif]-->
  18. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  19. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  20. <?php wp_enqueue_script( 'traction', get_template_directory_uri() . '/javascripts/traction.js', 'jquery' ); ?>
  21. <?php wp_head(); ?>
  22. </head>
  23. <body <?php body_class(); ?>>
  24. <div class="skip-content"><a href="#content"><?php _e( 'Skip to content', 'traction' ); ?></a></div>
  25. <div id="pg-nav-bg">
  26. <div class="wrapper clear">
  27. <?php wp_nav_menu( array( 'container_id' => 'pg-nav', 'menu_class' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'traction_primary_menu' ) ); ?>
  28. </div><!--end wrapper-->
  29. </div><!--end page-navigation-bg-->
  30. <div class="wrapper big">
  31. <div id="header" class="clear">
  32. <div class="logo">
  33. <?php if ( is_home()) echo( '<h1 id="title">' ); else echo( '<div id="title">' );?><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a><?php if ( is_home()) echo( '</h1>' ); else echo( '</div>' );?>
  34. <div id="description">
  35. <?php bloginfo( 'description' ); ?>
  36. </div><!--end description-->
  37. </div><!--end logo-->
  38. <div id="cat-nav" class="clear">
  39. <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'nav', 'theme_location' => 'secondary', 'fallback_cb' => 'traction_category_menu' ) ); ?>
  40. </div>
  41. </div><!--end header-->