Advertisement
Digitalraindrops

adventure child header.php

Feb 29th, 2012
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.30 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Adventure_Journal
  5.  */
  6. $AJOpts = get_option('ctx-adventurejournal-options');
  7. ?>
  8. <!DOCTYPE html>
  9. <html <?php language_attributes(); ?>>
  10. <head>
  11.     <meta charset="<?php bloginfo( 'charset' ); ?>" />
  12.     <title><?php
  13.             /*Print the <title> tag based on what is being viewed.*/
  14.             global $page, $paged;
  15.             wp_title( '|', true, 'right' );
  16.             // Add the blog name.
  17.             bloginfo( 'name' );
  18.             // Add the blog description for the home/front page.
  19.             $site_description = get_bloginfo( 'description', 'display' );
  20.             if ( $site_description && ( is_home() || is_front_page() ) )
  21.                     echo " | $site_description";
  22.             // Add a page number if necessary:
  23.             if ( $paged >= 2 || $page >= 2 )
  24.                     echo ' | ' . sprintf( __( 'Page %s', 'adventurejournal' ), max( $paged, $page ) );
  25.     ?></title>
  26.     <meta name="author" content="Designed by Contexture International | http://www.contextureintl.com" />
  27.     <meta name="iconpath" id="iconpath" content="<?php echo get_bloginfo( 'template_directory', 'raw' ); ?>/images/bh" />
  28.     <link rel="profile" href="http://gmpg.org/xfn/11" />
  29.     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  30.     <?php
  31.             /* We add some JavaScript to pages with the comment form
  32.              * to support sites with threaded comments (when in use).
  33.              */
  34.             if ( is_singular() && get_option( 'thread_comments' ) )
  35.                     wp_enqueue_script( 'comment-reply' );
  36.  
  37.             /* Always have wp_head() just before the closing </head>
  38.              * tag of your theme, or you will break many plugins, which
  39.              * generally use this hook to add elements to <head> such
  40.              * as styles, scripts, and meta tags.
  41.              */
  42.             wp_head();
  43.     ?>
  44. </head>
  45. <body <?php body_class(); ?>>
  46. <?php if($AJOpts['browser-helper']=='true'): ?>
  47. <div id="browser-helper">
  48.     <div id="bh-bg">
  49.         <table id="bh-notice" cellspacing="0" cellpadding="0" border="0">
  50.             <tr>
  51.                 <td id="bh-icon-td" rowspan="3">
  52.                     <img id="bh-icon" src="http://s.wordpress.org/images/browsers/ie.png" alt="browser icon" width="87"/>
  53.                 </td>
  54.                 <td id="bh-copy">
  55.                     <div id="bh-warning"><?php _e('You are using an insecure version of <span id="bh-browsername">your web browser</span>. Please update your browser!','adventurejournal') ?></div>
  56.                     <div id="bh-explain"><?php _e('Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.','adventurejournal') ?></div>
  57.                     <div id="bh-links">
  58.                         <a id="bh-update" href="#"><?php _e('Update Your Browser','adventurejournal') ?></a> | <a href="http://www.google.com/chrome/"><?php _e('Try Something New','adventurejournal') ?></a> | <a href="#" id="bh-hide"><?php _e('Hide This Warning','adventurejournal') ?></a>
  59.                     </div>
  60.                 </td>
  61.             </tr>
  62.         </table>
  63.     </div>
  64.     <div id="bh-shadow"></div>
  65. </div>
  66. <?php endif; ?>
  67.     <div <?php echo ctx_aj_get_relationships($post->ID,'siteframe'); ?>>
  68.         <div id="container">
  69.           <div id="container2">
  70.             <div class="nav-horz nav-main" id="menu">
  71.               <div class="nav-main-left">
  72.                 <div class="nav-main-right">
  73.                     <?php wp_nav_menu( array( 'theme_location' => 'primary-menu' ) ); ?>
  74.                 </div>
  75.               </div>
  76.               <div class="nav-main-bottom"></div>
  77.             </div>
  78.             <div class="clear"></div>
  79.             <!-- end header -->
  80.       <div id="header"><div id="header2"><div id="header3"><div id="header4">
  81.                 <?php ctx_aj_site_title() ;?>
  82.               <div id="banner">
  83.                 <?php
  84.  
  85.                 //wp_die('||| '.(string)has_post_thumbnail( $post->ID ).' |||');
  86.                
  87.                 /* Digital Raindrops Category Header Image */
  88.                 $CatHeaderImage = raindrops_get_category_image();
  89.                
  90.                 // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  91.                 if (is_singular()
  92.                     && has_post_thumbnail( $post->ID )
  93.                     && ( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) )
  94.                     && $image[1] >= HEADER_IMAGE_WIDTH ) {
  95.                         // Houston, we have a new header image!
  96.                         echo get_the_post_thumbnail( $post->ID );
  97.                
  98.                 // Digital Raindrops Show Category Header if there is one!
  99.                 } else if ( $CatHeaderImage ) {
  100.                 ?>
  101.                     <img src="<?php echo $CatHeaderImage; ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  102.                 <?php
  103.                 // Digital Raindrops Show Category Header if there is one!
  104.                
  105.                 } else if ( get_header_image() ) {
  106.                 ?>
  107.                         <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  108.                 <?php }  ?>
  109.  
  110.               </div>
  111.       </div></div></div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement