Guest User

Untitled

a guest
Dec 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. Template Name: Charitable Giving
  6.  
  7. */
  8.  
  9. ?>
  10.  
  11. <?php get_header(); ?>
  12.  
  13. <?php global $woo_options; ?>
  14.  
  15.  
  16.  
  17. <!-- #content Starts -->
  18.  
  19. <?php woo_content_before(); ?>
  20.  
  21. <div id="content" class="col-full">
  22.  
  23.  
  24.  
  25.  
  26.  
  27. <div id="main-sidebar-container">
  28.  
  29.  
  30.  
  31. <!-- #main Starts -->
  32.  
  33. <?php woo_main_before(); ?>
  34.  
  35. <div id="main">
  36.  
  37. <h1 class="title"><?php the_title(); ?></h1>
  38.  
  39.  
  40. ##<?php the_content(); ?>
  41.  
  42. <div class="h-line"><hr /></div>
  43.  
  44. <?php woo_loop_before(); ?>
  45. <br />
  46. <?php
  47.  
  48. // WP 3.0 PAGED BUG FIX
  49.  
  50. if ( get_query_var('paged') )
  51.  
  52. $paged = get_query_var('paged');
  53.  
  54. elseif ( get_query_var('page') )
  55.  
  56. $paged = get_query_var('page');
  57.  
  58. else
  59.  
  60. $paged = 1;
  61.  
  62. //$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  63.  
  64.  
  65. query_posts("cat=96&showposts=10&paged=$paged");
  66.  
  67. ?>
  68.  
  69. <?php if (have_posts()) : $count = 0; ?>
  70.  
  71. <?php while (have_posts()) : the_post(); $count++; ?>
  72.  
  73.  
  74.  
  75. <!-- Post Starts -->
  76.  
  77. <?php woo_post_before(); ?>
  78.  
  79. <div <?php post_class(); ?>>
  80.  
  81.  
  82.  
  83. <?php woo_post_inside_before(); ?>
  84.  
  85.  
  86.  
  87. <?php woo_image('width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align']); ?>
  88.  
  89.  
  90. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  91.  
  92.  
  93.  
  94. <?php woo_post_meta(); ?>
  95.  
  96.  
  97.  
  98. <div class="entry">
  99.  
  100. <?php global $more; $more = 0; ?>
  101.  
  102.  
  103.  
  104. <?php the_excerpt_reloaded(70, '<p><br /><ul><li>', 'content', TRUE, 'Keep reading', FALSE, 2); ?>
  105.  
  106.  
  107.  
  108. </div>
  109. <div class="h-line"><hr /></div>
  110.  
  111.  
  112. <?php woo_post_inside_after(); ?>
  113.  
  114.  
  115.  
  116. </div><!-- /.post -->
  117.  
  118. <?php woo_post_after(); ?>
  119.  
  120.  
  121.  
  122. <?php endwhile; else: ?>
  123.  
  124. <div class="post">
  125.  
  126. <p><?php _e('There are not any posts at this time. Check back with us soon.', 'woothemes') ?></p>
  127.  
  128. </div><!-- /.post -->
  129.  
  130. <?php endif; ?>
  131.  
  132.  
  133.  
  134. <?php woo_pagenav(); ?>
  135.  
  136.  
  137.  
  138. </div><!-- /#main -->
  139.  
  140. <?php woo_main_after(); ?>
  141.  
  142.  
  143.  
  144. <?php get_sidebar(); ?>
  145.  
  146.  
  147.  
  148. </div><!-- /#main-sidebar-container -->
  149.  
  150.  
  151.  
  152. <?php get_sidebar('alt'); ?>
  153.  
  154.  
  155.  
  156. </div><!-- /#content -->
  157.  
  158. <?php woo_content_after(); ?>
  159.  
  160.  
  161.  
  162.  
  163.  
  164. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment