function renderExcerpt($tag = 'h5', $class = '') { if (!empty($this->instance["show_excerpt"])) { if (!empty($this->instance["excerpt_length"])) { $length = $this->instance["excerpt_length"]; xt_post_excerpt($tag, $class, $length); } else { xt_post_excerpt($tag, $class); } } }
?> right<?php } ?> column"> <?php if (get_the_content()) { ?> <div class="article-content"> <?php if (($single_post_featured_image_position == 'behind-title' || $single_post_featured_image_position == 'behind-title-fullwidth') && $show_post_excerpt) { ?> <?php xt_post_excerpt('h3', 'subheader image-behind-title'); ?> <?php } ?> <?php if ($single_post_featured_image_position == 'above-content') { ?> <?php xt_post_featured_media(); ?> <?php } ?>
<?php if ($single_post_featured_image_position == 'below-title') { ?> <?php xt_post_featured_media(); ?> <?php } ?> <?php if ($single_post_featured_image_position != 'behind-title' && $single_post_featured_image_position != 'behind-title-fullwidth' && $show_post_excerpt) { ?> <?php xt_post_excerpt('h3', 'subheader'); ?> <?php } ?> <?php if ($single_post_featured_image_position == 'below-excerpt') { ?> <br><?php xt_post_featured_media(); ?> <?php } ?>
function renderExcerpt($tag = 'h5', $class = '', $forFeatured = false, $showReadMore = false) { if (!empty($this->instance["show_excerpt"])) { if (!$forFeatured && !empty($this->instance["excerpt_length"])) { $length = $this->instance["excerpt_length"]; xt_post_excerpt($tag, $class, $length, "...", $showReadMore); } else { if ($forFeatured && !empty($this->instance["featured_excerpt_length"])) { $length = $this->instance["featured_excerpt_length"]; xt_post_excerpt($tag, $class, $length, "...", $showReadMore); } else { xt_post_excerpt($tag, $class, null, "...", $showReadMore); } } } }
<?php xt_post_category(); ?> <?php } ?> <?php xt_post_title($title_heading, $title_class); ?> <?php if ($show_post_excerpt) { ?> <?php xt_post_excerpt($excerpt_heading, $excerpt_class); ?> <?php } ?> <?php if ($show_post_author) { ?> <?php xt_post_author(); ?> <?php } ?>