Guest

Untitled

By: a guest on Mar 11th, 2010  |  syntax: None  |  size: 8.79 KB  |  hits: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  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.                                 <?php endwhile; ?>
  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. <script type="text/javascript">
  88.  
  89. anitabs.init("aninav", 0)
  90.  
  91. </script>
  92. <!-- // Tab --><?php
  93. $ani_featured_left = get_option('x12_featured_left');
  94. $ani_featured_right = get_option('x12_featured_right');
  95.  ?>
  96. <div id="leftposts"><?php $recent = new WP_Query("cat=".$ani_featured_left."&showposts=2"); while($recent->have_posts()) : $recent->the_post();?><div class="topleft"><div class="topright"><div class="bottomleft"><div class="bottomright">
  97.                         <div class="homepost" id="homeleftpost-<?php the_ID(); ?>">
  98.                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  99.                                 <div class="headerlist">
  100.                                 <span class="metadata date"><?php the_time("M j, Y"); ?> at <?php the_time("g:i a"); ?></span>
  101.                                 <span class="metadata cats">Posted by <?php the_author_posts_link() ?></span>
  102.                                 </div>
  103.                                 <div class="altentry">
  104.                                         <?php if( get_post_meta($post->ID, "postimage", true) ): ?>
  105. <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>
  106.                                 <?php else: ?>
  107.                                         <a href="<?php the_permalink() ?>" rel="bookmark"><img class="postimage" src="<?php bloginfo('template_url'); ?>/images/postimage.png" alt="<?php the_title(); ?>" /></a>
  108.                                 <?php endif; ?><?php ani_content_limit(180, ""); ?>
  109.                                 <div class="clear_head"></div><div style="width:240px;"><div class="alignleftcomments"><?php comments_popup_link('Add comment', '1 Comment', '% Comments', 'commentsbutton', ''); ?></div>
  110.                                 <div class="alignrightmore"><a href="<?php the_permalink() ?>">More</a></div></div>
  111.                                 </div>
  112.                         </div>
  113.                         </div></div></div></div>                               
  114.                                 <?php endwhile; ?></div>       
  115.                                                        
  116.                                                
  117.                                 <div id="rightposts"><?php $recent = new WP_Query("cat=".$ani_featured_right."&showposts=2"); while($recent->have_posts()) : $recent->the_post();?><div class="topleft"><div class="topright"><div class="bottomleft"><div class="bottomright">
  118.                         <div class="homepost" id="homerightpost-<?php the_ID(); ?>">
  119.                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  120.                                 <div class="headerlist">
  121.                                 <span class="metadata date"><?php the_time("M j, Y"); ?> at <?php the_time("g:i a"); ?></span>
  122.                                 <span class="metadata cats">Posted by <?php the_author_posts_link() ?></span>
  123.                                 </div>
  124.                                 <div class="altentry">
  125.                                         <?php if( get_post_meta($post->ID, "postimage", true) ): ?>
  126. <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>
  127.                                 <?php else: ?>
  128.                                         <a href="<?php the_permalink() ?>" rel="bookmark"><img class="postimage" src="<?php bloginfo('template_url'); ?>/images/postimage.png" alt="<?php the_title(); ?>" /></a>
  129.                                 <?php endif; ?><?php ani_content_limit(180, ""); ?>
  130.                                 <div class="clear_head"></div><div style="width:240px;"><div class="alignleftcomments"><?php comments_popup_link('Add comment', '1 Comment', '% Comments', 'commentsbutton', ''); ?></div>
  131.                                 <div class="alignrightmore"><a href="<?php the_permalink() ?>">More</a></div></div>
  132.                                 </div>
  133.                         </div>
  134.                         </div></div></div></div>                               
  135.                                 <?php endwhile; ?></div> <div class="clear"></div>
  136. <?php } ?>
  137.         <?php if (have_posts()) : ?>   
  138.                                 <?php while (have_posts()) : the_post(); ?>
  139.                                 <?php if (is_home()) if (in_category("".$ani_featured_right."")) continue;
  140. if (is_home()) if (in_category("".$ani_featured_left."")) continue; ?>
  141. <div class="topleftpost"><div class="topright"><div class="bottomleft"><div class="bottomright">
  142.                         <div class="hpost" id="post-<?php the_ID(); ?>">
  143.                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  144.                                 <div class="headerlist">
  145.                                 <span class="metadata date"><?php the_time("M j, Y"); ?> at <?php the_time("g:i a"); ?></span>
  146.                                 <span class="metadata cats">Posted by <?php the_author_posts_link() ?> in <?php the_category(', '); ?></span>
  147.                                 <span class="metadata"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments', 'commentslink', ''); ?></span>
  148.                                 <span class="metadata editlink"><?php edit_post_link('edit','',''); ?></span>
  149.                                 </div>
  150.                                 <div class="entry">
  151.                                         <?php if( get_post_meta($post->ID, "postimage", true) ): ?>
  152. <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>
  153.                                 <?php else: ?>
  154.                                         <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; ?>
  155. <?php ani_content_limit(260, "Read More &rarr;"); ?>
  156.                                 </div>
  157.                                 <div class="clear"></div>
  158.                                 <p class="metadata tags"><?php the_tags('Tags: ', ', ', '<br />'); ?></p>
  159.                         </div>
  160. </div></div></div></div>
  161.  
  162.                 <?php endwhile; ?>
  163.  
  164.                 <div class="navigationpage">
  165.                         <div class="previouspage"><?php next_posts_link('&nbsp;') ?></div>
  166.                         <div class="nextpage"><?php previous_posts_link('&nbsp;') ?></div>
  167.                 </div>
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.         <?php else : ?>
  176.  
  177. <div class="topleftpost"><div class="topright"><div class="bottomleft"><div class="bottomright">
  178.                         <div class="hpost">
  179.                 <h2 class="center">Not Found</h2>
  180.                 <p>Sorry, but you are looking for something that isn't here.</p>
  181.                 <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  182. </div></div></div></div></div>
  183.  
  184.         <?php endif; ?>
  185.  
  186.  
  187. </div>
  188. <?php get_sidebar(); ?>
  189. </div>
  190. </div>
  191. <?php get_footer(); ?>