Beispiel #1
0
 function quasar_get_post_loop_description()
 {
     global $post;
     if (!$post) {
         return;
     }
     $summary_choice = xr_get_option('post_summary', 'content');
     //or excerpt;
     $return = '';
     if ($summary_choice === 'content') {
         $return = quasar_get_the_content();
     } elseif ($summary_choice === 'excerpt') {
         $return = rock_check_p(get_the_excerpt());
         $return .= quasar_get_read_more_link();
     }
     return $return;
 }
Beispiel #2
0
	<?php 
if (is_search() || !is_single()) {
    // Only display Excerpts for Search
    ?>
	<div class="entry-summary">
		<?php 
    echo quasar_get_post_loop_description();
    ?>
	</div><!-- .entry-summary -->
	<?php 
} else {
    ?>
	<div class="entry-content">
		<?php 
    echo quasar_get_the_content();
    ?>
		<?php 
    quasar_get_link_pages();
    ?>
	</div><!-- .entry-content -->
	<?php 
}
?>

	<footer class="entry-meta">
    	<div class="entry-footer-details">
			<?php 
if (!is_single()) {
    ?>
            	<?php