|
1 <?php get_header();?> |
|
2 <div class="main-container"> |
|
3 |
|
4 <?php |
|
5 global $options; |
|
6 foreach ($options as $value) { |
|
7 if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } |
|
8 } |
|
9 ?> |
|
10 |
|
11 |
|
12 <?php if ($apa_use_slide_show == '') { |
|
13 include (TEMPLATEPATH . '/gallery.php'); |
|
14 }?> |
|
15 |
|
16 <?php if (have_posts()) : while (have_posts()) : the_post(); |
|
17 if ($apa_use_slide_show == '') { |
|
18 if (in_array($post->ID, $saved_ids)) continue; |
|
19 update_post_caches($posts); |
|
20 }?> |
|
21 |
|
22 |
|
23 <div class="retweet-btn-small"> |
|
24 <script type="text/javascript"> |
|
25 tweetmeme_url = '<?php the_permalink();?>'; |
|
26 tweetmeme_source = '<?php echo $apa_Twitter;?>'; |
|
27 tweetmeme_style = 'compact'; |
|
28 </script> |
|
29 <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> |
|
30 </div><!--retweet-btn--> |
|
31 |
|
32 <div class="post-title"> |
|
33 <a href="<?php the_permalink();?>" title="<?php the_title();?>"> |
|
34 <?php the_title();?> |
|
35 </a> |
|
36 </div><!--post-title--> |
|
37 <div class="post-meta-data"> |
|
38 Added <?php the_time('M j, Y');?>, Under: <?php the_category(',')?> |
|
39 </div><!--post-meta-data--> |
|
40 |
|
41 <?php if ( has_post_thumbnail() ) { ?> |
|
42 <a href="<?php the_permalink();?>" title="<?php the_title();?>"> |
|
43 <?php the_post_thumbnail(array(), array('class' => 'thumbs-in-archive')); ?> |
|
44 </a> |
|
45 <?php } elseif (get_post_meta($post->ID, 'image', true) ) {?> |
|
46 <a href="<?php the_permalink();?>" title="<?php the_title();?>"> |
|
47 <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image', $single = true); ?>&h=65&w=195&zc=1&q=100" alt="<?php the_title(); ?>" class="thumbs-in-archive"/> |
|
48 </a> |
|
49 <?php } ?> |
|
50 |
|
51 <div class="post-excerpt"> |
|
52 <?php the_excerpt();?> |
|
53 </div><!--post-excerpt--> |
|
54 <div class="author-box-small"> |
|
55 By <?php the_author_posts_link(); ?> with <?php comments_number('0 comments', '1 comment', '% comments');?> |
|
56 </div><!--author-box--> |
|
57 |
|
58 |
|
59 <?php endwhile; endif; ?> |
|
60 |
|
61 <?php if(function_exists('wp_pagenavi')){ |
|
62 wp_pagenavi();}else{?> |
|
63 <div class="next-prev-links"> |
|
64 <?php posts_nav_link(); ?> |
|
65 </div> |
|
66 <?php } ?> |
|
67 |
|
68 |
|
69 |
|
70 </div><!--main-container--> |
|
71 <?php get_sidebar();?> |
|
72 <?php get_footer();?> |