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