<?php $post_id = get_the_ID(); $post_type = get_post_type(); ?> <span class="wolf-slide-caption-container"> <span class="wolf-slide-caption"> <span class="wrap"> <span data-max-font-size="48" class="fittext wolf-slide-title"><?php the_title(); ?> </span> <span class="wolf-slide-subtitle"><?php echo sanitize_text_field(wolf_sample(wolf_excerpt(false), 140)); ?> </span> <span class="wolf-slide-button-container"> <a href="<?php the_permalink(); ?> " class="wolf-button border-button medium square in-site"><?php echo sanitize_text_field(wolf_more_text()); ?> </a> </span> <?php edit_post_link(__('Edit', 'wolf'), '<span class="edit-link">', '</span>'); ?> </span><!-- .wrap --> </span><!-- .wolf-slide-caption --> </span><!-- .wolf-slide-caption-container -->
the_ID(); ?> "> <div class="entry-thumbnail"> <?php the_post_thumbnail($thumb_size); ?> </div> <h3 class="entry-title"> <?php wolf_entry_title(true, false, true); ?> </h3> <div class="entry-meta"> <?php wolf_post_entry_meta(); ?> <?php edit_post_link(__('Edit', 'wolf'), '<span class="edit-link">', '</span>'); ?> </div> <?php wolf_excerpt(); ?> <footer class="entry-meta icon-meta-container"> <?php wolf_icon_meta(); ?> </footer> </article>
/** * Display the excerpt of the content depending on options * * @param * @return */ function wolf_excerpt_text() { if ('auto' == wolf_get_theme_option('excerpt_type')) { wolf_excerpt(); } else { echo wolf_content(); } }