Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 11th, 2010 | Syntax: None | Size: 5.38 KB | Hits: 84 | Expires: Never
Copy text to clipboard
  1. <?php get_header(); ?>
  2. <div id="overcontent">
  3.  
  4.         <div id="contentarea">
  5.         <?php
  6.         $ani_adsense_code = get_option('x12_adsense_code');
  7. if ($ani_adsense_code =="" || $ani_adsense_code ==" ") :
  8. ?>
  9. <?php else: ?>
  10.         <div id="adsense"><?php echo stripslashes($ani_adsense_code); ?></div>
  11. <?php endif ?> 
  12.         <div id="content">
  13.         <?php if ( is_home() && !is_paged() )  { ?>
  14.         <!-- Tab -->
  15. <div id="anicontainer">
  16.         <div id="aninav">
  17.         <ul>
  18.         <li id="featuredtab"><a href="javascript:void(0);" rel="featuredouter"> </a></li>
  19.         <li id="latesttab"><a href="javascript:void(0);" rel="latest"> </a></li>
  20.         <li id="populartab"><a href="javascript:void(0);" rel="popular"> </a></li>
  21.         </ul>
  22.         </div>
  23.        
  24.         <!-- Sub Menus container. Do not remove -->
  25.         <div id="ani_inner">
  26.  
  27.         <div id="featuredouter" class="innercontent">
  28.        
  29.                         <div id="featured" >
  30.                
  31.                   <ul class="ui-tabs-nav">
  32.                  
  33.                    <?php
  34. $ani_featured_slide = get_option('x12_featured_slide');
  35. $my_query = new WP_Query("cat=".$ani_featured_slide."&showposts=5");
  36. while ($my_query->have_posts()) : $my_query->the_post(); ?>        
  37.  
  38.                 <li class="ui-tabs-nav-item" id="nav-fragment-<?php the_ID(); ?>"><a href="#fragment-<?php the_ID(); ?>"><img src="<?php echo get_post_meta($post->ID, "slideimage", true); ?>" width="50" height="44" alt="" /></a></li>
  39.  
  40. <?php endwhile; ?>
  41.               </ul>
  42.  
  43.                   <?php $my_query = new WP_Query("cat=".$ani_featured_slide."&showposts=5");
  44. while ($my_query->have_posts()) : $my_query->the_post();
  45. $do_not_duplicate = $post->ID; ?>
  46.             <!-- Slide Content -->
  47.             <div id="fragment-<?php the_ID(); ?>" class="ui-tabs-panel" style="">
  48.                         <img src="<?php echo get_post_meta($post->ID, "slideimage", true); ?>" alt="" width="368" height="256" />
  49.                          <div class="info" >
  50.                                 <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  51.                                 <p><?php ani_content_limit(150, "Read More &rarr;"); ?></p>
  52.                          </div>
  53.             </div>
  54. <?php endwhile; ?>
  55.  
  56.                 </div>
  57.        
  58.         </div>
  59.  
  60.         <div id="latest" class="innercontent">
  61.         <?php $recent = new WP_Query("showposts=6"); while($recent->have_posts()) : $recent->the_post();?>
  62.                         <div class="latestpost">
  63.                                 <?php if( get_post_meta($post->ID, "postimage", true) ): ?>
  64. <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, 'postimage', $single = true); ?>" class="latestpostimage" alt="<?php the_title(); ?>" /></a>
  65.                                 <?php else: ?>
  66.                                         <a href="<?php the_permalink() ?>" rel="bookmark"><img class="latestpostimage" src="<?php bloginfo('template_url'); ?>/images/postimage.png" alt="<?php the_title(); ?>" /></a><?php endif; ?><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  67.                                 <div class="shortstory">
  68.                                 <?php ani_content_limit(55, "Read More &rarr;"); ?>
  69.                                 </div>
  70.                         </div>                 
  71.                                
  72.         </div>
  73.  
  74. <div id="popular" class="innercontent">
  75. <div id="populartags"><ul><li>
  76. <?php wp_tag_cloud('smallest=9&largest=25&number=40'); ?>
  77. </li>
  78. </ul>
  79. </div>
  80.         </div>
  81.  
  82.         <!-- End Sub Menus container -->
  83.         </div>
  84.  
  85.         </div>
  86.  
  87.  
  88.  
  89.         <?php if (have_posts()) : ?>   
  90.                                 <?php while (have_posts()) : the_post(); ?>
  91.                                 <?php if (is_home()) if (in_category("".$ani_featured_right."")) continue;
  92. if (is_home()) if (in_category("".$ani_featured_left."")) continue; ?>
  93. <div class="topleftpost"><div class="topright"><div class="bottomleft"><div class="bottomright">
  94.                         <div class="hpost" id="post-<?php the_ID(); ?>">
  95.                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  96.                                 <div class="headerlist">
  97.                                 <span class="metadata date"><?php the_time("M j, Y"); ?> at <?php the_time("g:i a"); ?></span>
  98.                                 <span class="metadata cats">Posted by <?php the_author_posts_link() ?> in <?php the_category(', '); ?></span>
  99.                                 <span class="metadata"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments', 'commentslink', ''); ?></span>
  100.                                 <span class="metadata editlink"><?php edit_post_link('edit','',''); ?></span>
  101.                                 </div>
  102.                                 <div class="entry">
  103.                                         <?php if( get_post_meta($post->ID, "postimage", true) ): ?>
  104. <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, 'postimage', $single = true); ?>" width="70" height="70" class="postimage" alt="<?php the_title(); ?>" /></a>
  105.                                 <?php else: ?>
  106.                                         <a href="<?php the_permalink() ?>" rel="bookmark"><img class="postimage" src="<?php bloginfo('template_url'); ?>/images/postimage.png" alt="<?php the_title(); ?>" /></a>                       <?php endif; ?>
  107. <?php ani_content_limit(260, "Read More &rarr;"); ?>
  108.                                 </div>
  109.                                 <div class="clear"></div>
  110.                                 <p class="metadata tags"><?php the_tags('Tags: ', ', ', '<br />'); ?></p>
  111.                         </div>
  112. </div></div></div></div>
  113.  
  114.                 <?php endwhile; ?>
  115.  
  116.                 <div class="navigationpage">
  117.                         <div class="previouspage"><?php next_posts_link('&nbsp;') ?></div>
  118.                         <div class="nextpage"><?php previous_posts_link('&nbsp;') ?></div>
  119.                 </div>
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.         <?php else : ?>
  128.  
  129. <div class="topleftpost"><div class="topright"><div class="bottomleft"><div class="bottomright">
  130.                         <div class="hpost">
  131.                 <h2 class="center">Not Found</h2>
  132.                 <p>Sorry, but you are looking for something that isn't here.</p>
  133.                 <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  134. </div></div></div></div></div>
  135.  
  136.         <?php endif; ?>
  137.  
  138.  
  139. </div>
  140. <?php get_sidebar(); ?>
  141. </div>
  142. </div>
  143. <?php get_footer(); ?>