Esempio n. 1
0
/**
 * The template part for displaying related posts.
 *
 * @package Gently
 */
?>

<div class="row collapse">

	<?php 
/* Add columns only if there is a featured image to display. */
if (has_post_thumbnail()) {
    ?>
	<div class="small-12 medium-3 columns related-post-img">
		<?php 
    gently_featured_image(true);
    ?>
	</div>

	<div class="small-12 medium-9 columns">
	<?php 
}
?>

	<?php 
gently_entry_time();
gently_comments_count();
the_title(sprintf('<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h3>');
echo '<p>' . wp_trim_words(get_the_excerpt(), 27) . '</p>';
if (has_post_thumbnail()) {
    echo '</div>';
Esempio n. 2
0
					<div class="small-6 columns">
						<?php 
    echo gently_comments_link();
    ?>
					</div>

				<?php 
}
?>

			</div>
		</div>
		<!-- .entry-meta -->

		<?php 
gently_featured_image();
?>

		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>

	</header>
	<!-- .entry-header -->

	<div class="entry-content">
		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'gently'), 'after' => '</div>'));