Guest User

Untitled

a guest
Oct 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Page_Full
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <?php $cat_tab_1 = get_option('lp_tab_cat_1'); ?>
  8. <?php $cat_tab_2 = get_option('lp_tab_cat_2'); ?>
  9. <?php $cat_tab_3 = get_option('lp_tab_cat_3'); ?>
  10. <?php $post_number = get_option('lp_post_num'); ?>
  11. <div id="content">
  12. <div id="main-content">
  13.  
  14. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  15. <div id="post-<?php the_ID(); ?>" class="post">
  16.  
  17. <div class="entry">
  18. <?php the_content(); ?>
  19. </div>
  20. <div class="clear"></div>
  21. </div>
  22.  
  23. <ul class="tabs">
  24. <li><a href="#tab1"><?php echo stripslashes ($cat_tab_1) ?></a></li>
  25. <li><a href="#tab2"><?php echo stripslashes ($cat_tab_2) ?></a></li>
  26. <li><a href="#tab3"><?php echo stripslashes ($cat_tab_3) ?></a></li>
  27. </ul>
  28.  
  29. <!-- tab-container -->
  30. <div class="tab_container">
  31. <!-- tab-content begin -->
  32. <div id="tab1" class="tab_content">
  33. <?php query_posts("category_name=$cat_tab_1&showposts=4"); ?>
  34. <?php while (have_posts()) : the_post(); ?>
  35. <ul class="tab-post">
  36. <li>
  37. <div class="date left"><?php the_time('M j'); ?></div>
  38. <h4 class="post-title event-post left"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
  39. <div class="clear"></div>
  40. </li>
  41. </ul>
  42. <?php endwhile;?>
  43. </div>
  44. <div id="tab2" class="tab_content">
  45. <?php query_posts("category_name=$cat_tab_2&showposts=4"); ?>
  46. <?php while (have_posts()) : the_post(); ?>
  47. <ul class="tab-post">
  48. <li>
  49. <div class="date left"><?php the_time('M j'); ?></div>
  50. <h4 class="post-title event-post left"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
  51. <div class="clear"></div>
  52. </li>
  53. </ul>
  54. <?php endwhile;?>
  55. </div>
  56. <div id="tab3" class="tab_content">
  57. <?php query_posts("category_name=$cat_tab_3&showposts=4"); ?>
  58. <?php while (have_posts()) : the_post(); ?>
  59. <ul class="tab-post">
  60. <li>
  61. <div class="date left"><?php the_time('M j'); ?></div>
  62. <h4 class="post-title event-post left"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
  63. <div class="clear"></div>
  64. </li>
  65. </ul>
  66. <?php endwhile;?>
  67. </div>
  68. <!-- tab-content end -->
  69. </div>
  70.  
  71. <?php endwhile; else : ?>
  72. <div class="post">
  73. <h2>404 - Not Found</h2>
  74. <p>The page you are looking for is not here.</p>
  75. </div>
  76. <?php endif; ?>
  77. </div>
  78. </div>
  79. <!--content end-->
  80. <!--Popup window-->
  81. <?php include(TEMPLATEPATH.'/popup.php') ?>
  82. </div>
  83. <!--main end-->
  84. </div>
  85. <!--wrapper end-->
  86. <div class="clear"></div>
  87. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment