Advertisement
scross1375

header php delicate

Apr 15th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5.  
  6. <title>
  7.  
  8. </title>
  9.  
  10. <?php /* Include the jQuery framework (see hooks.php) */ ?>
  11. <!-- Style sheets -->
  12. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  13. <?php include (TEMPLATEPATH . '/style.php'); ?>
  14. <?php wp_head(); ?>
  15.  
  16. <!-- Feed link -->
  17. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  18. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  19.  
  20. <!-- jQuery utilities -->
  21. <?php if (t_get_option('t_cufon_replace') == 'yes') { ?>
  22. <!--[if gte IE 9]>
  23. <script type="text/javascript">
  24. /*<![CDATA[*/
  25. Cufon.set('engine', 'canvas');
  26. /*]]>*/
  27. </script>
  28. <![endif]-->
  29. <script type="text/javascript">/*<![CDATA[*/Cufon.replace('.post .title h2 a', {hover:true});/*]]>*/</script>
  30. <?php } ?>
  31.  
  32. <!--[if IE 6]>
  33. <?php wp_print_scripts(array('ie_menu')); ?>
  34. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/ie6.css" />
  35. <style type="text/css">
  36. img.png {
  37. filter: expression(
  38. (runtimeStyle.filter == '') ? runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+src+', sizingMethod=scale)' : '',
  39. width = width,
  40. src = '<?php echo get_template_directory_uri(); ?>/images/px.gif');
  41. }
  42. </style>
  43. <![endif]-->
  44.  
  45. <!--[if IE 7]>
  46. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/ie7.css" />
  47. <![endif]-->
  48. <style type="text/css">
  49. <?php
  50. $t_show_slideshow = t_get_option( "t_show_slideshow" );
  51. $t_scroll_pages = t_get_option( "t_scroll_pages" );
  52. ?>
  53. </style>
  54. </head>
  55.  
  56. <body <?php body_class(); ?>>
  57. <div class="content-pad">
  58.  
  59. <div id="header">
  60. <?php t_get_logo ('<div id="logo">', '</div>', 'logo.gif', true); ?>
  61.  
  62. <div id="top_search">
  63. <?php get_search_form(); ?>
  64. </div>
  65. </div>
  66.  
  67. <div class="top">
  68. <div id="menu">
  69. <?php natty_show_navigation ('primary', 'natty_show_pagemenu'); ?>
  70. </div>
  71. </div> <!-- END top -->
  72. <div class="clear"></div>
  73. <div class="head-img">
  74.  
  75. <?php if ($t_show_slideshow == 'hide') {}
  76. elseif (!isset($t_show_slideshow) || $t_show_slideshow == 'no') { // Display Slideshow is_front_page()?>
  77. <div class="slideshow-bg module">
  78. <div class="slideshow">
  79. <?php if ($t_scroll_pages == 'no' || $t_scroll_pages[0] == 'no' || $t_scroll_pages[0] == ''){
  80. echo '<div><div class="tagline">Welcome to Delicate template</div><img src="'.get_template_directory_uri().'/images/header/headers.jpg" alt="Header" /></div>';
  81. echo '<div><div class="tagline">Just another WordPress site</div><img src="'.get_template_directory_uri().'/images/header/header.jpg" alt="Header" /></div>';
  82. } else {
  83. foreach ($t_scroll_pages as $ad_pgs ) {
  84. query_posts('page_id='.$ad_pgs ); while (have_posts()) : the_post(); ?>
  85. <div>
  86. <div class="tagline"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
  87. <?php if ( has_post_thumbnail() ) {the_post_thumbnail('slide-thumb');} // 970x225 ?>
  88. </div>
  89. <?php endwhile; wp_reset_query(); ?>
  90. <?php } //end foreach ?>
  91. <?php } ?>
  92. </div><!-- END Slideshow -->
  93. <div id="slideshow-nav"></div>
  94. </div> <!-- END slideshow-bg -->
  95.  
  96. <?php } else { // Display Header Image
  97. $header_image = get_header_image();
  98. if ( !empty( $header_image ) ) : ?>
  99. <div class="tagline"><?php bloginfo('description'); ?></div>
  100. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="Header" />
  101. <?php endif;
  102. } // End if ?>
  103. </div>
  104. <!-- END Header -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement