Advertisement
Guest User

Untitled

a guest
Jul 29th, 2010
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.81 KB | None | 0 0
  1. <?php get_header();  ?>
  2.  
  3. <?php if (is_home()) add_filter('img_caption_shortcode', create_function('$a, $b, $c','return $c;'), 10, 3); ?>
  4.  
  5. <div id="leftwrapper">
  6.     <?php include('left-sidebar.php'); ?>
  7.     <div id="column2">
  8.         <?php if (get_theme_mod('featured') == 'Yes') { ?>
  9.         <div id="slider">
  10.             <div id="featured" >
  11.               <?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
  12.               <div id="post-<?php the_ID(); ?>" class="ui-tabs-panel ui-tabs-hide"><a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=236&w=373&zc=1" alt="<?php the_title(); ?>" /></a>
  13.                 <div class="info" >
  14.                     <h2><a href="<?php the_permalink(); ?>" rel="bookmark">
  15.                       <?php the_title(); ?>
  16.                       </a></h2>
  17.                 </div>
  18.               </div>
  19.               <?php endwhile; ?>
  20.               <ul class="ui-tabs-nav">
  21.                 <?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
  22.                 <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-post-<?php the_ID(); ?>"><a href="#post-<?php the_ID(); ?>"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=44&w=80&zc=1" alt="<?php the_title(); ?>" /></a></li>
  23.                 <?php endwhile; ?>
  24.               </ul>
  25.             </div> <!--end: featured-->
  26.         </div> <!--end: slider-->
  27.         <?php } ?>
  28.         <?php if (get_theme_mod('box1') == 'Enable') { ?>
  29.         <div class="postbox left">
  30.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat1')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat1')); ?></a></h1>
  31.             <div class="boxcontent">
  32.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  33.             <div class="thumb">
  34.                 <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  35.             </div> <!--end: thumb-->
  36.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  37.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  38.             <?php endwhile; ?>
  39.             <div class="more"><div class="more">Mais Notícias &raquo;</div></div>
  40.             <ul>
  41.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  42.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  43.                 <?php endwhile; ?>
  44.             </ul>
  45.             </div> <!--end: boxcontent-->
  46.         </div> <!--end: postbox-->
  47.         <?php } ?>
  48.         <?php if (get_theme_mod('box2') == 'Enable') { ?>
  49.         <div class="postbox right">
  50.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat2')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat2')); ?></a></h1>
  51.             <div class="boxcontent">
  52.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  53.             <div class="thumb">
  54.                     <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  55.             </div> <!--end: thumb-->
  56.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  57.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  58.             <?php endwhile; ?>
  59.             <div class="more">Mais Notícias &raquo;</div>
  60.             <ul>
  61.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  62.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  63.                 <?php endwhile; ?>
  64.             </ul>
  65.             </div> <!--end: boxcontent-->
  66.         </div> <!--end: postbox-->
  67.         <?php } ?>
  68.  
  69.         <div class="clear"></div>
  70.  
  71.         <?php if (get_theme_mod('box3') == 'Enable') { ?>
  72.         <div class="postbox left">
  73.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat3')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat3')); ?></a></h1>
  74.             <div class="boxcontent">
  75.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  76.             <div class="thumb">
  77.                     <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  78.             </div> <!--end: thumb-->
  79.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  80.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  81.             <?php endwhile; ?>
  82.             <div class="more">Mais Notícias &raquo;</div>
  83.             <ul>
  84.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  85.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  86.                 <?php endwhile; ?>
  87.             </ul>
  88.             </div> <!--end: boxcontent-->
  89.         </div> <!--end: postbox-->
  90.         <?php } ?>
  91.  
  92.         <?php if (get_theme_mod('box4') == 'Enable') { ?>
  93.         <div class="postbox right">
  94.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat4')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat4')); ?></a></h1>
  95.             <div class="boxcontent">
  96.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  97.             <div class="thumb">
  98.                 <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  99.             </div> <!--end: thumb-->
  100.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  101.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  102.             <?php endwhile; ?>
  103.             <div class="more">Mais Notícias &raquo;</div>
  104.             <ul>
  105.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  106.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  107.                 <?php endwhile; ?>
  108.             </ul>
  109.             </div> <!--end: boxcontent-->
  110.         </div> <!--end: postbox-->
  111.         <?php } ?>
  112.  
  113.         <div class="clear"></div>
  114.  
  115.         <?php if (get_theme_mod('box5') == 'Enable') { ?>
  116.         <div class="postbox left">
  117.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat5')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat5')); ?></a></h1>
  118.             <div class="boxcontent">
  119.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  120.             <div class="thumb">
  121.                 <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  122.             </div> <!--end: thumb-->
  123.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  124.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  125.             <?php endwhile; ?>
  126.             <div class="more">Mais Notícias &raquo;</div>
  127.             <ul>
  128.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  129.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  130.                 <?php endwhile; ?>
  131.             </ul>
  132.             </div> <!--end: boxcontent-->
  133.         </div> <!--end: postbox-->
  134.         <?php } ?>
  135.  
  136.         <?php if (get_theme_mod('box6') == 'Enable') { ?>
  137.         <div class="postbox right">
  138.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat6')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat6')); ?></a></h1>
  139.             <div class="boxcontent">
  140.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  141.             <div class="thumb">
  142.                 <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  143.             </div> <!--end: thumb-->
  144.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  145.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  146.             <?php endwhile; ?>
  147.             <div class="more">Mais Notícias &raquo;</div>
  148.             <ul>
  149.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  150.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  151.                 <?php endwhile; ?>
  152.             </ul>
  153.             </div> <!--end: boxcontent-->
  154.         </div> <!--end: postbox-->
  155.         <?php } ?>
  156.         <div class="clear"></div>
  157.  
  158.         <?php if (get_theme_mod('box7') == 'Enable') { ?>
  159.         <div class="postbox left">
  160.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat7')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat7')); ?></a></h1>
  161.             <div class="boxcontent">
  162.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  163.             <div class="thumb">
  164.                 <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  165.             </div> <!--end: thumb-->
  166.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  167.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  168.             <?php endwhile; ?>
  169.             <div class="more">Mais Notícias &raquo;</div>
  170.             <ul>
  171.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  172.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  173.                 <?php endwhile; ?>
  174.             </ul>
  175.             </div> <!--end: boxcontent-->
  176.         </div> <!--end: postbox-->
  177.         <?php } ?>
  178.  
  179.         <?php if (get_theme_mod('box8') == 'Enable') { ?>
  180.         <div class="postbox right">
  181.         <h1><a href="<?php echo get_category_link(get_theme_mod('boxcat8')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat8')); ?></a></h1>
  182.             <div class="boxcontent">
  183.             <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
  184.             <div class="thumb">
  185.                 <?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
  186.             </div> <!--end: thumb-->
  187.             <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
  188.             <h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  189.             <?php endwhile; ?>
  190.             <div class="more">Mais Notícias &raquo;</div>
  191.             <ul>
  192.                 <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
  193.                 <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  194.                 <?php endwhile; ?>
  195.             </ul>
  196.             </div> <!--end: boxcontent-->
  197.         </div> <!--end: postbox-->
  198.         <?php } ?>
  199.         <div class="clear"></div>
  200.  
  201.     </div> <!--end: column2-->
  202. </div> <!--end: leftwrapper-->
  203. <?php get_sidebar(); ?>
  204. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement