Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Begind recent post-->
- <?php if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
- <?php static $ctr = 0;
- if ($ctr == "$artsee_homepage_posts;") { break; }
- else { ?>
- <div class="home-post-wrap">
- <div class="home-post-wrap-top">
- <div class="comment-buble">
- <?php comments_popup_link('0', '1', '%'); ?>
- </div>
- <div class="date">
- <?php the_time('j m, Y') ?>
- </div>
- </div>
- <div class="thumbnail-div">
- <?php
- // check for thumbnail
- $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true);
- // check for thumbnail class
- $thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true);
- // check for thumbnail alt text
- $thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true);
- ?>
- <?php // if there's a thumbnail
- if($thumb !== '') { ?>
- <img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=175&w=189&q=50&zc=1" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>" style="border: none;" />
- <?php } // end if statement
- // if there's not a thumbnail
- else { echo ''; } ?>
- <div class="overlay">
- </div>
- <div class="post-info2">
- <a href="<?php the_permalink() ?>" class="post-info-title" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('', '...', true, '30') ?></a>
- Eklenme tarihi <?php the_time('0j m, Y') ?> <br /> <?php comments_popup_link('Yorum yok', '1 yorum', '% yorum'); ?>
- </div>
- </div>
- <img src="<?php bloginfo('stylesheet_directory'); ?>/images/post-bottom.gif" style="margin: 0px 0px 0px 0px; float: left;" alt="post bottom" />
- </div>
- <?php $ctr++; } ?>
- <?php endwhile; ?>
- <!--end recent post-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement