Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Header

By: STATEDLIGHT on Jan 21st, 2013  |  syntax: None  |  size: 7.17 KB  |  views: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. <title>
  6. <?php wp_title(' | ', true, 'right'); ?>
  7. <?php bloginfo('name'); ?>
  8. </title>
  9. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
  10. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  11. <?php wp_head(); ?>
  12. </head>
  13. <body <?php body_class(); ?>>
  14. <div id="topwrapper">
  15.   <div class="center">
  16.     <div id="header">
  17.       <div id="headleft">
  18.         <div id="blog-title">
  19.           <?php $tiger_sitelogo = get_option('tiger_sitelogo'); if ($tiger_sitelogo): ?>
  20.           <a href="<?php echo home_url() ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home"><img src="<?php echo $tiger_sitelogo; ?>" /></a>
  21.           <?php else: ?>
  22.           <a href="<?php echo home_url() ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home">
  23.           <?php bloginfo( 'name' ) ?>
  24.           </a>
  25.           <?php endif; ?>
  26.         </div>
  27.         <?php $tiger_strapline = get_option('tiger_strapline');
  28.                 if ($tiger_strapline == "true"): ?>
  29.         <div id="blog-description">
  30.           <?php bloginfo( 'description' ) ?>
  31.         </div>
  32.         <?php endif; ?>
  33.       </div>
  34.       <div id="headright">
  35.         <div id="searchbox">
  36.           <?php $tiger_twitter = get_option('tiger_twitter'); if ($tiger_twitter) { ?>
  37.           <?php echo "<a href=\"http://$tiger_twitter\" target=\"_blank\"><img src=\"". get_template_directory_uri() . "/images/twitter_32.png\" alt=\"Twitter\"/></a>"; ?>
  38.           <?php } ?>
  39.           <?php $tiger_facebook = get_option('tiger_facebook'); if ($tiger_facebook) { ?>
  40.           <?php echo "<a href=\"http://$tiger_facebook\" target=\"_blank\"><img src=\"". get_template_directory_uri() . "/images/facebook_32.png\" alt=\"Facebook\"/></a>"; ?>
  41.           <?php } ?>
  42.           <?php $tiger_linkedin = get_option('tiger_linkedin'); if ($tiger_linkedin) { ?>
  43.           <?php echo "<a href=\"http://$tiger_linkedin\" target=\"_blank\"><img src=\"". get_template_directory_uri() . "/images/linkedin_32.png\" alt=\"Linkedin\"/></a>"; ?>
  44.           <?php } ?>
  45.           <?php $tiger_youtube = get_option('tiger_youtube'); if ($tiger_youtube) { ?>
  46.           <?php echo "<a href=\"http://$tiger_youtube\" target=\"_blank\"><img src=\"". get_template_directory_uri() . "/images/youtube_32.png\" alt=\"Youtube\"/></a>"; ?>
  47.           <?php } ?>
  48.           <?php $tiger_rss = get_option('tiger_rss'); if ($tiger_rss) { ?>
  49.           <?php echo "<a href=\"http://$tiger_rss\" target=\"_blank\"><img src=\"". get_template_directory_uri() . "/images/rss_32.png\" alt=\"RSS\"/></a>"; ?>
  50.           <?php } ?>
  51.           <?php get_search_form(); ?>
  52.         </div>
  53.       </div>
  54.     </div>
  55.   </div>
  56. </div>
  57. <div id="navwrapper">
  58.   <div class="center">
  59.     <?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container_class' => 'menu', 'menu_class' => '' ) ); ?>
  60.   </div>
  61. </div>
  62. <div id="midwrapper">
  63. <div class="center">
  64. <?php if (is_front_page()): ?>
  65. <?php $tiger_slider = get_option('tiger_slider');
  66. if ($tiger_slider == "true"): ?>
  67. <div id="featured" >
  68.   <ul class="ui-tabs-nav">
  69.     <?php
  70. global $post;
  71. $args = array( 'numberposts' => 1 );
  72. $myposts = get_posts( $args );
  73. foreach( $myposts as $post ) :  setup_postdata($post); ?>
  74.     <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-<?php echo $post->ID; ?>"><a href="#fragment-<?php echo $post->ID; ?>">
  75.       <?php if ( has_post_thumbnail() ): $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
  76.       <?php the_post_thumbnail(array( 120,60,true )); ?>
  77.       <?php else: ?>
  78.       <img src="<?php echo get_template_directory_uri(); ?>/images/awaiting-slider-thb.jpg" alt="Awaiting image" />
  79.       <?php endif; ?>
  80.       <?php tiger_truncate_title(20); ?>
  81.       </a></li>
  82.     <?php endforeach; ?>
  83.     <?php
  84. global $post;
  85. $args = array( 'numberposts' => 4, 'offset'=> 1 );
  86. $myposts = get_posts( $args );
  87. foreach( $myposts as $post ) :  setup_postdata($post); ?>
  88.     <li class="ui-tabs-nav-item" id="nav-fragment-<?php echo $post->ID; ?>"><a href="#fragment-<?php echo $post->ID; ?>">
  89.       <?php if ( has_post_thumbnail() ): $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
  90.       <?php the_post_thumbnail(array( 120,60,true )); ?>
  91.       <?php else: ?>
  92.       <img src="<?php echo get_template_directory_uri(); ?>/images/awaiting-slider-thb.jpg" alt="Awaiting image" />
  93.       <?php endif; ?>
  94.       <span>
  95.       <?php tiger_truncate_title(20); ?>
  96.       </span></a></li>
  97.     <?php endforeach; ?>
  98.   </ul>
  99.   <?php
  100. global $post;
  101. $args = array( 'numberposts' => 1 );
  102. $myposts = get_posts( $args );
  103. foreach( $myposts as $post ) :  setup_postdata($post); ?>
  104.   <div id="fragment-<?php echo $post->ID; ?>" class="ui-tabs-panel" style="">
  105.     <?php if ( has_post_thumbnail() ): $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
  106.     <a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark"> <a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
  107.     <?php the_post_thumbnail(array( 640,350,true )); ?>
  108.     </a>
  109.     <?php else: ?>
  110.     <a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><img src="<?php echo get_template_directory_uri(); ?>/images/awaiting-slider.jpg" alt="Awaiting image" class="blog-thumb" /></a>
  111.     <?php endif; ?>
  112.     <div class="info" >
  113.       <h2><a href="#" >
  114.         <?php tiger_truncate_title(50); ?>
  115.         </a></h2>
  116.       <p>
  117.         <?php tiger_truncate_post(320); ?>
  118.       </p>
  119.     </div>
  120.   </div>
  121.   <?php endforeach; ?>
  122.   <?php
  123. global $post;
  124. $args = array( 'numberposts' => 4, 'offset'=> 1 );
  125. $myposts = get_posts( $args );
  126. foreach( $myposts as $post ) :  setup_postdata($post); ?>
  127.   <div id="fragment-<?php echo $post->ID; ?>" class="ui-tabs-panel ui-tabs-hide" style="">
  128.     <?php if ( has_post_thumbnail() ): $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
  129.     <a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark"> <a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
  130.     <?php the_post_thumbnail(array( 640,350,true )); ?>
  131.     </a>
  132.     <?php else: ?>
  133.     <a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><img src="<?php echo get_template_directory_uri(); ?>/images/awaiting-slider.jpg" alt="Awaiting image" class="blog-thumb" /></a>
  134.     <?php endif; ?>
  135.     <div class="info" >
  136.       <h2><a href="#" >
  137.         <?php tiger_truncate_title(50); ?>
  138.         </a></h2>
  139.       <p>
  140.         <?php tiger_truncate_post(320); ?>
  141.       </p>
  142.     </div>
  143.   </div>
  144.   <?php endforeach; ?>
  145. </div>
  146. <?php endif; ?>
  147. <?php endif; ?>
  148. <?php $tiger_breadcrumbs = get_option('tiger_breadcrumbs'); if ($tiger_breadcrumbs == "true"): ?>
  149. <?php tiger_breadcrumbs(); ?>
  150. <?php endif; ?>