-
Notifications
You must be signed in to change notification settings - Fork 0
/
wpzoom_recent_posts.php
83 lines (67 loc) · 3.15 KB
/
wpzoom_recent_posts.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php rewind_posts(); ?>
<?php if (is_front_page()) {
$z = count($wpzoom_exclude_cats_home);if ($z > 0) {
$x = 0; $que = ""; while ($x < $z) {
$que .= "-".$wpzoom_exclude_cats_home[$x]; $x++;
if ($x < $z) {$que .= ",";} } }
query_posts($query_string . "&cat=$que");
}
if (have_posts()) :
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div class="posts">
<!-- <?php if ($wpzoom_homepost_thumb == 'Show') { ?>
<?php if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
$img = $thumbURL[0];
}
else {
$img = catch_that_image($post->ID);
}
if ($img){
$img = wpzoom_wpmu($img);
?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&w=<?php echo "$wpzoom_homepost_thumb_width";?>&h=<?php echo "$wpzoom_homepost_thumb_height";?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php } ?>
<?php } ?> -->
<div class="postcontent">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php if ($wpzoom_homepost_thumb == 'Show') { ?>
<?php if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
$img = $thumbURL[0];
}
else {
$img = catch_that_image($post->ID);
}
if ($img){
$img = wpzoom_wpmu($img);
?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&w=<?php echo "$wpzoom_homepost_thumb_width";?>&h=<?php echo "$wpzoom_homepost_thumb_height";?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php } ?>
<?php } ?>
<div class="meta">
<?php if ($wpzoom_home_date == 'Show') { ?> <?php the_time("$dateformat $timeformat"); } ?>
<?php if ($wpzoom_home_cat == 'Show') {?><span>/</span> <?php the_category(', '); } ?>
<?php if ($wpzoom_home_comm == 'Show') { ?><span>/</span> <a href="<?php the_permalink() ?>#commentspost" title="Jump to the comments"><?php comments_number(__('No comments', 'wpzoom'),__('1 comment', 'wpzoom'),__('% comments', 'wpzoom')); ?></a><?php } ?>
<?php edit_post_link( __('Edit', 'wpzoom'), '<span>/</span> ', ''); ?>
</div>
<div class="postExcerpt">
<?php custom_excerpt(300); ?>
</div>
</div>
<div class="cleaner"> </div>
</div><!-- /.post -->
<?php endwhile; ?>
<div class="cleaner"> </div>
<div class="navigation">
<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<div class="floatleft"><?php next_posts_link( __('← Older Entries', 'wpzoom') ); ?></div>
<div class="floatright"><?php previous_posts_link( __('Newer Entries →', 'wpzoom') ); ?></div>
<?php } ?>
</div>
<?php else : ?>
<p class="title"><?php _e('No posts matched your criteria', 'wpzoom');?></p>
<?php endif; ?>
<?php wp_reset_query(); ?>
<div class="cleaner"> </div>