Example #1
0
							<?php 
        the_post_thumbnail();
        ?>
						</a>
					<?php 
    }
    ?>

					<?php 
    // Adding filter to get excpert toggle option working.
    $excerpt_toggle = apply_filters('responsive_mobile_post_excerpt', 0);
    // Check if excpert toggle is on then call the excerpt, otherwise the full content.
    if ($excerpt_toggle) {
        the_excerpt();
    } else {
        the_content(responsive_mobile_read_more());
    }
    wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive-mobile'), 'after' => '</div>'));
    ?>
				</div><!-- .entry-content -->
			<?php 
}
?>
		</div><!-- .post-entry -->

		<?php 
get_template_part('template-parts/post-data');
?>

		<?php 
responsive_mobile_entry_bottom();
Example #2
0
/**
 * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and responsive_mobile_read_more_link().
 */
function responsive_mobile_auto_excerpt_more($more)
{
    if (false !== $more) {
        $more = '<span class="ellipsis">&hellip;</span>';
    }
    return $more . '<div class="read-more"><a href="' . get_permalink() . '">' . responsive_mobile_read_more() . '</a></div><!-- end of .read-more -->';
}