Advertisement
tolikpunkoff

header.php

Nov 2nd, 2016
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.35 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package Beach
  4.  */
  5.  //шаловливые ручки
  6. //модифицировано для отображения заголовков новостей постапокалипсиса
  7. //в теме Beach для wordpress
  8. ini_set('error_reporting', E_ALL);
  9. ini_set('display_errors', 1);
  10. ini_set('display_startup_errors', 1);
  11.  include(__DIR__.'/news.php');
  12. ?><!DOCTYPE html>
  13. <!--[if IE 7 ]><html class="ie7" <?php language_attributes(); ?>><![endif]-->
  14. <!--[if IE 8 ]><html class="ie8" <?php language_attributes(); ?>><![endif]-->
  15. <!--[if (gt IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
  16. <head>
  17. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  18. <title><?php wp_title( '|', true, 'right' ); ?></title>
  19. <link rel="profile" href="http://gmpg.org/xfn/11" />
  20. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  21. <!--[if lt IE 9]>
  22. <script src="<?php echo get_template_directory_uri(); ?>/html5.js" type="text/javascript"></script>
  23. <![endif]-->
  24. <?php wp_head(); ?>
  25. </head>
  26.  
  27. <body <?php body_class(); ?>>
  28. <div id="page" class="hfeed">
  29.     <header id="branding">
  30.             <hgroup role="banner">
  31.                 <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>
  32.                 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  33.                 <h3 id="apoknews"><?php echo $obs; ?></h3>
  34.             </hgroup>
  35.  
  36.             <?php if ( has_nav_menu( 'secondary' ) ) : ?>
  37.             <nav class="access" role="navigation">
  38.                 <h1 class="section-heading"><?php _e( 'Menu', 'beach' ); ?></h1>
  39.                 <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>
  40.  
  41.                 <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
  42.             </nav><!-- #main .access -->
  43.             <?php endif; ?>
  44.     </header><!-- #branding -->
  45.  
  46.  
  47.     <div id="main">
  48.         <nav class="access" role="navigation">
  49.             <h1 class="section-heading"><?php _e( 'Menu', 'beach' ); ?></h1>
  50.             <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>
  51.  
  52.             <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  53.         </nav><!-- #main .access -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement