by

post_content)*/?>

$post->ID, 'post_type' => af_namespace() . '_' . \ArticleForge\Constants::ContentPostType, 'post_status' => $statuses, 'posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'ASC' ) ); if ($show_toc && ($contents->found_posts != 0)) { ?>
Table of Contents
rewind_posts(); $content = null; $last_content; while ( $contents->have_posts() ) { $last_content = $content; $content = $contents->next_post(); //$content = $contents->post; if ($show_first_section) { \ArticleForge\Content::load('article', 'section'); break; } else if ($show_all_sections) { \ArticleForge\Content::load('article', 'section'); } else if ($has_section) { if ($content->post_name == $section) { ?>post_status == 'publish') && af_check_preview($content->ID)) || ($content->status == 'draft'))) $content = _set_preview($content); \ArticleForge\Content::load('article', 'section'); break; } } } // output navigation (if necessary) if (!$show_all_sections) { ?>
have_posts()) { $content = $contents->next_post(); ?>