예제 #1
0
	                <?php 
        if (has_post_thumbnail()) {
            ?>

		            	<figure class="featured-image">
							<?php 
            nice_image(array('width' => 620, 'height' => 285, 'class' => 'wp-post-image'));
            ?>
		                </figure>

					<?php 
        }
        ?>

					<?php 
        nice_excerpt();
        ?>

                </article>

		<?php 
    }
    ?>

        <?php 
    nice_pagenavi();
    ?>

<?php 
} else {
    ?>
예제 #2
0
            printf(__('Permanent Link to %s', 'nicethemes'), get_the_title());
            ?>
">
									<?php 
            nice_image(array('width' => 320, 'height' => 200, 'class' => 'wp-post-image'));
            ?>
								</a>
							</figure>

						<?php 
        }
        ?>

						<div class="post-content">
							<?php 
        nice_excerpt(400);
        ?>
						</div>

					</div>

				<!-- END .post -->
				</article>

		<?php 
    }
    ?>

<?php 
} else {
    ?>
		<header>
			<h1 class="archive-header"><span class="cat"><?php echo single_cat_title(); ?></span></h1>
		</header>

		<?php while (have_posts()) : the_post(); ?>

				<!-- BEGIN .post -->
				<article class="post clearfix">

					<header>
						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'nicethemes' ), get_the_title() ); ?>"><?php the_title(); ?></a></h2>
					</header>


					<div class="post-content">
							<?php nice_excerpt(); ?>
					</div>

				<!-- END .post -->
				</article>

		<?php endwhile; ?>

		<?php nice_pagenavi(); ?>

<?php else : ?>

			<?php _e( 'Sorry, no posts matched your criteria.', 'nicethemes' ); ?>

<?php endif; ?>
예제 #4
0
					</header>

					<div class="entry">

						<?php if ( has_post_thumbnail() ) :	?>

							<figure class="featured-image">
								<a href="<?php the_permalink(); ?>" title="<?php printf( __( 'Permanent Link to %s', 'nicethemes' ), get_the_title() ); ?>">
									<?php nice_image( array( 'width' => 320, 'height' => 200, 'class' => 'wp-post-image' ) ); ?>
								</a>
							</figure>

						<?php endif; ?>

						<div class="post-content">
							<?php nice_excerpt( 400 ); ?>
						</div>

					</div>

				<!-- END .post -->
				</article>

		<?php endwhile; ?>

<?php else : ?>

			<?php _e( 'Sorry, no posts matched your criteria.', 'nicethemes' ); ?>

<?php endif; ?>