Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php if ($post->post_type == 'attachment'): ?>
- <section class="media image">
- <a class="fancyimg" rel="fancygallery" href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image($post->ID, 'thumbnail', 0); ?></a>
- <a class="fancyimg fancycaption" rel="fancygallery" href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php the_title(); ?></a>
- </section>
- <?php else : ?>
- <section class="box">
- <h3 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Suchergebnis zu %s', 'grandeur' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <footer class="entry-utility">
- <?php if ( count( get_the_category() ) ) : ?>
- <?php printf( __( 'Posted in %2$s', 'grandeur' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> |
- <?php endif; ?>
- <?php $tags_list = get_the_tag_list( '', ', ' );
- if ( $tags_list ): ?>
- <?php printf( __( 'Tagged %2$s', 'grandeur' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> |
- <?php endif; ?>
- </footer><!-- .entry-utility -->
- <div class="clear"></div>
- </section>
- <?php endif; ?>
- </article><!-- end post-<?php the_ID(); ?> -->
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement