Advertisement
Guest User

header.php

a guest
Jun 30th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title><?php tj_custom_titles(); ?></title>
  6. <?php tj_custom_description(); ?>
  7. <?php tj_custom_keywords(); ?>
  8. <?php tj_custom_canonical(); ?>
  9. <link rel="profile" href="http://gmpg.org/xfn/11" />
  10. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  11. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  12. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  13. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  14. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/colors/<?php echo get_option('collection_theme_stylesheet'); ?>" />
  15. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/custom.css" />
  16. <?php wp_head(); ?>
  17. </head>
  18.  
  19. <?php if (is_home() || is_archive() || is_search() ) add_filter('img_caption_shortcode', create_function('$a, $b, $c','return $c;'), 10, 3); ?>
  20.  
  21. <body <?php body_class(); ?>>
  22. <span id="home-url" name="<?php echo get_template_directory_uri();?>"></span>
  23. <?php if( get_option("collection_fixed_header_enable") == 'on' ):?>
  24. <style type='text/css'>
  25. #header { position: fixed; }
  26. #content { margin-top: 80px; }
  27. </style>
  28. <?php endif;?>
  29.  
  30. <?php if( get_option('collection_homepage_layout') == 'Fixed Width Layout (1240px)' ):?>
  31. <style type="text/css">
  32. #container { width:1240px; position: relative; left: 50%; margin-left: -620px; }
  33. #header-content { width:1240px; position: relative; left: 50%; margin-left: -620px; }
  34. </style>
  35. <?php endif;?>
  36.  
  37. <div id="header">
  38. <div id="header-content">
  39.  
  40. <?php if (get_option('collection_text_logo_enable') == 'on') { ?>
  41. <div id="text-logo">
  42. <h1 id="site-title"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
  43. </div><!-- #text-logo -->
  44. <?php } else { ?>
  45. <a href="<?php echo home_url(); ?>"><?php $logo = (get_option('collection_logo') <> '') ? get_option('collection_logo') : get_template_directory_uri().'/images/logo.png'; ?><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" id="logo"/></a><!-- #logo -->
  46. <?php }?>
  47.  
  48. <div id="header-nav">
  49. <div class="nav">
  50. <?php $menuClass = '';
  51. $menuID = '';
  52. $headerNav = '';
  53. if (function_exists('wp_nav_menu')) {
  54. $headerNav = wp_nav_menu( array( 'theme_location' => 'header-nav', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) );
  55. };
  56. if ($headerNav == '') { ?>
  57. <ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>">
  58. <?php if (get_option('collection_home_link') == 'on') { ?><li class="first"><a href="<?php bloginfo('url'); ?>"><?php _e('Главная','themejunkie');?></a></li><?php } ?>
  59. <?php if(get_option('collection_header_menu') == ('Pages')) { show_page_menu($menuClass,false,false); } else { show_categories_menu($menuClass,false,false); } ?>
  60. </ul>
  61. <?php } else echo($headerNav); ?>
  62. </div><!-- .nav -->
  63. </div><!-- #header-nav -->
  64.  
  65. <div id="header-social">
  66. <ul>
  67. <li id="header-twitter"><a href="http://twitter.com/<?php echo get_option('collection_twitter_id'); ?>"><?php _e('Твиттер','themejunkie');?></a></li>
  68. <li id="header-subscribe">
  69. <?php if( get_option('collection_feedburner_id') != null ) { ?>
  70. <a href="http://feeds.feedburner.com/<?php echo get_option('collection_feedburner_id'); ?>"><?php _e('Подписаться','themejunkie');?></a>
  71. <?php } else { ?>
  72. <a href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS feed','themejunkie');?></a>
  73. <?php } ?>
  74. </li>
  75. </ul>
  76. </div><!-- #header-social -->
  77.  
  78. </div><!-- #header-content -->
  79. </div><!-- #header -->
  80.  
  81. <div id="container" class="clear js-disabled">
  82.  
  83. <div id="content">
  84. <?php get_sidebar();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement