/** * Prints a subtitle for a post. * * @package nsh * * @param string $tag The tag to wrap the subtitle in * @param string $class The class to apply * @param string $prefix String to be printed before subtitle * @param string $suffix String to be printed after subtitle * */ function nsh_subtitle($tag = 'h3', $class = 'post__subtitle', $prefix = '', $suffix = '') { $subtitle = nsh_get_subtitle($prefix, $suffix); if ($subtitle) { echo '<' . $tag . ' class="' . $class . '">'; echo $subtitle; echo '</' . $tag . '>'; } }
?> </figure> <?php } ?> <h2 class="post__title"> <span <?php nsh_post_link_class('post__link'); ?> > <?php the_title(); ?> <?php echo nsh_get_subtitle('<span class="post__subtitle"><span class="post__subtitle__prefix">: </span>', '</span>'); ?> </span> </h2> </a> <?php get_template_part('partials/meta', get_post_type()); ?> </header> <div class="post__content post__content--summary"> <div class="wysiwyg js-wysiwyg l-content">