Want more features on Pastebin? Sign Up, it's FREE!
Guest

Slideshow

By: a guest on Dec 25th, 2010  |  syntax: None  |  size: 1.68 KB  |  views: 513  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php if ( have_posts() ) : ?>
  2.  
  3.     <div id="loop" class="<?php if ($_COOKIE['mode'] == 'grid') echo 'grid'; else echo 'list'; ?> clear">
  4.  
  5.     <?php while ( have_posts() ) : the_post(); ?>
  6.  
  7.         <div <?php post_class('post clear'); ?> id="post_<?php the_ID(); ?>">
  8.            
  9.            
  10.            
  11.             <?php tern_wp_youtube_image(); ?>  
  12.        
  13.            
  14.             <?php if ( has_post_thumbnail() ) :?>
  15.             <a href="<?php the_permalink() ?>" class="thumb"><?php the_post_thumbnail('thumbnail', array(
  16.                         'alt'   => trim(strip_tags( $post->post_title )),
  17.                         'title' => trim(strip_tags( $post->post_title )),
  18.                     )); ?></a>
  19.             <?php endif; ?>
  20.          
  21.  
  22.             <div class="post-category"><?php the_category(' / '); ?></div>
  23.             <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  24.             <div class="post-meta">by <span class="post-author"><a
  25.                     href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span>
  26.                                    on <span
  27.                         class="post-date"><?php the_time(__('j. M. Y')) ?></span> <em>&bull; </em><?php comments_popup_link(__('Keine Kommentare'), __('1 Kommentar'), __('% Kommentare'), '', __('Keine Kommentare')); ?> <?php edit_post_link( __( 'Edit entry'), '<em>&bull; </em>'); ?>
  28.             </div>
  29.             <div class="post-content"><?php if (function_exists('smart_excerpt')) smart_excerpt(get_the_excerpt(), 55); ?></div>
  30.         </div>
  31.  
  32.     <?php endwhile; ?>
  33.  
  34.     </div>
  35.  
  36. <?php endif; ?>
clone this paste RAW Paste Data