Advertisement
Guest User

museum core header.php

a guest
Jul 29th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. <!doctype html>
  2. <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  3. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
  4. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
  5. <!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
  6. <!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
  7. <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
  8. <head>
  9. <meta charset="<?php bloginfo('charset'); ?>">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  11. <?php $options = get_option( 'ap_core_theme_options' ); ?>
  12. <title><?php wp_title(); ?></title>
  13. <!-- Mobile viewport optimized: h5bp.com/viewport -->
  14. <meta name="viewport" content="width=device-width">
  15. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  16. <?php wp_get_archives('type=monthly&format=link'); ?>
  17. <?php wp_head(); ?>
  18. </head>
  19. <body <?php body_class(); ?>>
  20. <div class="container" id="wrap">
  21. <header>
  22. <div class="header">
  23.  
  24.  
  25.  
  26.  
  27. <?php if ( (!get_header_image()) && (!has_post_thumbnail( $post->ID )) ) { ?>
  28.  
  29.  
  30. <hgroup class="siteinfo">
  31. <div id="branding">
  32. <h1><a href="http://174.122.106.66/~lindab" title="vannuysplating.com">vannuysplating.com</a></h1>
  33. <h2 class="alt">Van Nuys Plating Site</h2>
  34. </div>
  35. </hgroup>
  36.  
  37.  
  38. <hgroup class="siteinfo">
  39. <?php if ($options['alth1'] == 'true') { ?>
  40. <h1 class="alt"><a href="<?php echo home_url() ?>" title="<?php bloginfo('title'); ?>"><?php bloginfo('title'); ?></a></h1>
  41. <h2><?php bloginfo('description'); ?></h2>
  42. <?php } else { ?>
  43. <h1><a href="<?php echo home_url() ?>" title="<?php bloginfo('title'); ?>"><?php bloginfo('title'); ?></a></h1>
  44. <h2 class="alt"><?php bloginfo('description'); ?></h2>
  45. <?php } ?>
  46. </hgroup>
  47. <?php } else { ?>
  48.  
  49.  
  50. <div class="headerimg">
  51. <?php
  52. // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  53. if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
  54. has_post_thumbnail( $post->ID ) &&
  55. ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
  56. $image[1] >= HEADER_IMAGE_WIDTH ) :
  57. // Houston, we have a new header image!
  58. echo get_the_post_thumbnail( $post->ID );
  59. elseif ( get_header_image() ) : ?>
  60. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  61.  
  62.  
  63. <?php wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'topnav', 'theme_location' => 'top', 'fallback_cb' => false ) ); ?>
  64.  
  65.  
  66.  
  67.  
  68. <div class="clear"></div>
  69.  
  70. <?php wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'mainnav', 'theme_location' => 'main', 'fallback_cb' => false ) ); ?>
  71. </div>
  72.  
  73.  
  74.  
  75. <?php endif; ?>
  76. <hgroup class="siteinfo">
  77. <?php if ($options['alth1'] == 'true') { ?>
  78. <h1 class="alt"><a href="<?php echo home_url() ?>" title="<?php bloginfo('title'); ?>"><?php bloginfo('title'); ?></a></h1>
  79. <h2><?php bloginfo('description'); ?></h2>
  80. <?php } else { ?>
  81. <h1><a href="<?php echo home_url() ?>" title="<?php bloginfo('title'); ?>"><?php bloginfo('title'); ?></a></h1>
  82. <h2 class="alt"><?php bloginfo('description'); ?></h2>
  83. <?php } ?>
  84. </hgroup>
  85. </div>
  86. <?php } ?>
  87. </header>
  88. <div class="clear"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement