Advertisement
Guest User

header ub

a guest
Sep 28th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 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(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  5. <title><?php elegant_titles(); ?></title>
  6. <?php elegant_description(); ?>
  7. <?php elegant_keywords(); ?>
  8. <?php elegant_canonical(); ?>
  9.  
  10. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  11. <link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:light,regular,bold&amp;subset=latin' rel='stylesheet'
  12.  
  13. type='text/css'/>
  14. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo
  15.  
  16. ('rss2_url'); ?>" />
  17. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo
  18.  
  19. ('atom_url'); ?>" />
  20. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  21.  
  22. <!--[if lt IE 7]>
  23. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6style.css" />
  24. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-
  25.  
  26. min.js"></script>
  27. <script type="text/javascript">DD_belatedPNG.fix('img#logo, a.readmore, a.readmore span, #header, span.overlay,
  28.  
  29. #search-form, ul.nav ul, ul.nav span.top-arrow, ul.nav ul li a:hover, #content-top, #content-bottom, span.post-overlay,
  30.  
  31. span.avatar-overlay, .comment-arrow, .service-top, .service-description-bottom, .service-description');</script>
  32. <![endif]-->
  33. <!--[if IE 7]>
  34. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie7style.css" />
  35. <![endif]-->
  36. <!--[if IE 8]>
  37. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie8style.css" />
  38. <![endif]-->
  39.  
  40. <script type="text/javascript">
  41. document.documentElement.className = 'js';
  42. </script>
  43.  
  44. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  45. <?php wp_head(); ?>
  46.  
  47. </head>
  48. <body <?php body_class(); ?>>
  49. <div id="background">
  50. <div id="backgrounds">
  51. <?php
  52. if ( is_home() ) {
  53. $et_bg_images = get_option('instyle_home_bg_images');
  54. } elseif ( is_category() ) {
  55. $et_bg_images = get_option('instyle_category_bg_images');
  56. } elseif ( is_archive() ) {
  57. $et_bg_images = get_option('instyle_archive_bg_images');
  58. } elseif ( is_search() ) {
  59. $et_bg_images = get_option('instyle_search_bg_images');
  60. } elseif ( is_tag() ) {
  61. $et_bg_images = get_option('instyle_tag_bg_images');
  62. } elseif ( is_single() || is_page() ) {
  63. $et_instyle_settings = maybe_unserialize( get_post_meta($post-
  64.  
  65. ID,'et_instyle_settings',true) );
  66. $et_bg_images = isset( $et_instyle_settings['et_fs_bg_images'] ) ?
  67.  
  68. $et_instyle_settings['et_fs_bg_images'] : '';
  69. }
  70.  
  71. if ( $et_bg_images == '' )
  72. $et_bg_images = get_option('instyle_default_bg_images') <> '' ? get_option
  73.  
  74. ('instyle_default_bg_images') : apply_filters('et_default_images',get_bloginfo('template_directory') .
  75.  
  76. '/images/landscape.png');
  77.  
  78. $et_backgrounds = explode(",", $et_bg_images);
  79. foreach ( $et_backgrounds as $et_background ){
  80. echo '<img src="'.esc_attr( trim($et_background) ).'" alt=""/>';
  81. }
  82. ?>
  83. </div> <!-- end #backgrounds -->
  84.  
  85. <div id="header" class="clearfix">
  86. <a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('instyle_logo') <> '') ? get_option('instyle_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?>
  87. <img src="<?php echo esc_url( $logo ); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="logo"/>
  88. </a>
  89. <div id="header-right">
  90. <?php $menuClass = 'nav';
  91. $menuID = 'top-menu';
  92. $primaryNav = '';
  93. if (function_exists('wp_nav_menu')) {
  94. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) );
  95. };
  96. if ($primaryNav == '') { ?>
  97. <ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>">
  98. <?php if (get_option('instyle_home_link') == 'on') { ?>
  99. <li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php esc_html_e('home','InStyle') ?></a></li>
  100. <?php } ?>
  101.  
  102. <?php show_page_menu($menuClass,false,false); ?>
  103. <?php show_categories_menu($menuClass,false); ?>
  104. </ul> <!-- end ul#nav -->
  105. <?php } else echo($primaryNav); ?>
  106.  
  107. <div id="search-form">
  108. <form method="get" id="searchform" action="<?php echo home_url(); ?>">
  109. <input type="text" value="<?php esc_attr_e('Przeszukaj stronę.','InStyle'); ?>" name="s" id="searchinput" />
  110. <input type="image" src="<?php bloginfo('template_directory'); ?>/images/search_btn.png" id="searchsubmit" />
  111. </form>
  112. </div> <!-- end #search-form -->
  113. </div> <!-- end #header-right -->
  114. </div> <!-- end #header -->
  115.  
  116. <div id="container"<?php global $fullwidth; if ( is_page_template('page-full.php') || $fullwidth ) echo '
  117.  
  118. class="fullwidth"'; ?>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement