<?php

global $ss_framework;
echo '<article ';
post_class();
echo '>';
do_action('stachestack_in_article_top');
stachestack_title_section(true, 'h2', true);
if (has_action('stachestack_entry_meta_override')) {
    do_action('stachestack_entry_meta_override');
} else {
    do_action('stachestack_entry_meta');
}
echo '<div class="entry-summary">';
echo apply_filters('stachestack_do_the_excerpt', get_the_excerpt());
echo $ss_framework->clearfix();
echo '</div>';
if (has_action('stachestack_entry_footer')) {
    echo '<footer class="entry-footer">';
    do_action('stachestack_entry_footer');
    echo '</footer>';
}
do_action('stachestack_in_article_bottom');
echo '</article>';
<?php

global $ss_framework;
while (have_posts()) {
    the_post();
    stachestack_title_section();
    do_action('stachestack_entry_meta');
    do_action('stachestack_page_pre_content');
    the_content();
    echo $ss_framework->clearfix();
    stachestack_meta('cats');
    stachestack_meta('tags');
    do_action('stachestack_page_after_content');
    wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>'));
}