Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Page_Full
- */
- ?>
- <?php get_header(); ?>
- <?php $cat_tab_1 = get_option('lp_tab_cat_1'); ?>
- <?php $cat_tab_2 = get_option('lp_tab_cat_2'); ?>
- <?php $cat_tab_3 = get_option('lp_tab_cat_3'); ?>
- <?php $post_number = get_option('lp_post_num'); ?>
- <div id="content">
- <div id="main-content">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" class="post">
- <div class="entry">
- <?php the_content(); ?>
- </div>
- <div class="clear"></div>
- </div>
- <ul class="tabs">
- <li><a href="#tab1"><?php echo stripslashes ($cat_tab_1) ?></a></li>
- <li><a href="#tab2"><?php echo stripslashes ($cat_tab_2) ?></a></li>
- <li><a href="#tab3"><?php echo stripslashes ($cat_tab_3) ?></a></li>
- </ul>
- <!-- tab-container -->
- <div class="tab_container">
- <!-- tab-content begin -->
- <div id="tab1" class="tab_content">
- <?php query_posts("category_name=$cat_tab_1&showposts=4"); ?>
- <?php while (have_posts()) : the_post(); ?>
- <ul class="tab-post">
- <li>
- <div class="date left"><?php the_time('M j'); ?></div>
- <h4 class="post-title event-post left"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
- <div class="clear"></div>
- </li>
- </ul>
- <?php endwhile;?>
- </div>
- <div id="tab2" class="tab_content">
- <?php query_posts("category_name=$cat_tab_2&showposts=4"); ?>
- <?php while (have_posts()) : the_post(); ?>
- <ul class="tab-post">
- <li>
- <div class="date left"><?php the_time('M j'); ?></div>
- <h4 class="post-title event-post left"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
- <div class="clear"></div>
- </li>
- </ul>
- <?php endwhile;?>
- </div>
- <div id="tab3" class="tab_content">
- <?php query_posts("category_name=$cat_tab_3&showposts=4"); ?>
- <?php while (have_posts()) : the_post(); ?>
- <ul class="tab-post">
- <li>
- <div class="date left"><?php the_time('M j'); ?></div>
- <h4 class="post-title event-post left"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
- <div class="clear"></div>
- </li>
- </ul>
- <?php endwhile;?>
- </div>
- <!-- tab-content end -->
- </div>
- <?php endwhile; else : ?>
- <div class="post">
- <h2>404 - Not Found</h2>
- <p>The page you are looking for is not here.</p>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <!--content end-->
- <!--Popup window-->
- <?php include(TEMPLATEPATH.'/popup.php') ?>
- </div>
- <!--main end-->
- </div>
- <!--wrapper end-->
- <div class="clear"></div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment