Advertisement
Guest User

Header

a guest
Oct 5th, 2013
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.31 KB | None | 0 0
  1. http://ru.forums.wordpress.org/topic/Выпадающее-меню-11?replies=1#post-129328
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  5.  
  6. <head profile="http://gmpg.org/xfn/11">
  7. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  8.  
  9. <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>
  10. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
  12. <!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->
  13. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  14. <?php if(get_theme_option('featured_posts') != '' && is_home()) {
  15. ?>
  16. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />
  17. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.5-core-yc.js" type="text/javascript"></script>
  18. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2-more.js" type="text/javascript"></script>
  19. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.js" type="text/javascript"></script>
  20. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.transitions.js" type="text/javascript"></script>
  21. <?php } ?>
  22. <!--[if IE 6]>
  23.     <script src="<?php bloginfo('template_url'); ?>/js/pngfix.js"></script>
  24. <![endif]-->
  25. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  26. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  27. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  28. <?php echo get_theme_option("head") . "\n";  wp_head(); ?>
  29. </head>
  30. <body><?php wp_contents_stats(); ?>
  31.     <div id="wrapper">
  32.         <div id="container" class="container">  
  33.             <div class="span-24">
  34.                 <div class="span-14">
  35.                     <div id="pagemenucontainer">
  36.                         <?php
  37.                     if(function_exists('wp_nav_menu')) {
  38.                         wp_nav_menu( 'depth=1&theme_location=menu_1&menu_id=pagemenu&container=&fallback_cb=menu_1_default');
  39.                     } else {
  40.                         menu_1_default();
  41.                     }
  42.                    
  43.                     function menu_1_default()
  44.                     {
  45.                         ?>
  46.                         <ul id="pagemenu">
  47.                             <li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Главная</a></li>
  48.                             <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
  49.                         </ul>
  50.                         <?php
  51.                     }
  52.                    
  53.                 ?>
  54.                     </div>
  55.                 </div>
  56.                 <div class="span-3 feedtwitter" style="margin-top: 5px; text-align:right;">
  57.                     <a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/rss.png"  style="margin:0 4px 0 0;"  /></a>       
  58.                     <?php if(get_theme_option('twitter') != '') { ?><a rel="nofollow" href="<?php echo get_theme_option('twitter'); ?>" title="<?php echo get_theme_option('twittertext'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/twitter.png"  style="margin:0 4px 0 0; "  title="<?php echo get_theme_option('twittertext'); ?>" /></a><?php } ?>
  59.                 </div>
  60.                
  61.                 <div id="topsearch" class="span-7 last">
  62.                     <?php get_search_form(); ?>
  63.                 </div>
  64.             </div>
  65.                 <div id="header" class="span-24">
  66.                     <div class="span-11">
  67.                         <?php
  68.                         $get_logo_image = get_theme_option('logo');
  69.                         if($get_logo_image != '') {
  70.                             ?>
  71.                             <a href="<?php bloginfo('url'); ?>"><img src="<?php echo $get_logo_image; ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" class="logoimg" /></a>
  72.                             <?php
  73.                         } else {
  74.                             ?>
  75.                             <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  76.                             <h2><?php bloginfo('description'); ?></h2>
  77.                             <?php
  78.                         }
  79.                         ?>
  80.                        
  81.                     </div>
  82.                    
  83.                    
  84.                 </div>
  85.            
  86.             <div class="span-24">
  87.                 <div class="navcontainer">
  88.                     <?php
  89.                     if(function_exists('wp_nav_menu')) {
  90.                         wp_nav_menu( 'depth=1&theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default');
  91.                     } else {
  92.                         menu_2_default();
  93.                     }
  94.                    
  95.                     function menu_2_default()
  96.                     {
  97.                         ?>
  98.                         <ul id="nav">
  99.                             <li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Главная</a></li>
  100.                            
  101.  
  102.  
  103.                         <?php
  104.                     }
  105.                 ?>
  106.                    
  107.                 </div>
  108.             </div>text/javascriptspan-14/a?php bloginfo(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement