* @package Scout WP * @subpackage Scout WP - Steel * @since Scout WP - Steel 1.0 */ ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <header> <?php scoutwp_the_title(); scoutwp_edit_link(); ?> </header> <?php scoutwp_the_thumbnail('large'); ?> <?php the_content(); ?> <footer> <div class="post-data"> <time datetime="<?php the_time('c'); ?> "><?php the_time(get_option('date_format'));
/** * Displays the title for the current post, wrapped in <h1> (single) or <h2> (archive) tags * @param bool $edit_link If to include an edit link in the heading tags (default: false) * @return null */ function scoutwp_the_title($edit_link = false) { global $welcome_section; if (isset($welcome_section) && $welcome_section) { ?> <h2> <?php the_title(); ?> <?php $edit_link ? scoutwp_edit_link() : null; ?> </h2><?php } elseif (is_single() || is_page()) { ?> <h1> <?php the_title(); ?> <?php $edit_link ? scoutwp_edit_link() : null; ?> </h1><?php } else { ?> <h2> <a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "> <?php the_title(); ?> <?php $edit_link ? scoutwp_edit_link() : null; ?> </a> </h2><?php } }