/** * Post pagination controller. */ function presscore_post_navigation_controller() { if (!in_the_loop()) { return; } $show_navigation = presscore_is_post_navigation_enabled(); // show navigation if ($show_navigation) { presscore_post_navigation(); } }
} // layout switch ($media_layout) { case 'left': $before_content .= sprintf('%s<div class="wf-cell %s project-content">', $media_html_with_wrap, $content_container_class); $after_content = '</div>' . $after_content; break; case 'right': $before_content .= '<div class="wf-cell ' . $content_container_class . ' project-content">'; $after_content .= sprintf('%s', $media_html_with_wrap); break; } // if media disabled } else { $before_content .= '<div class="wf-cell wf-1 project-content">'; $after_content = '</div>' . $after_content; } $show_navigation = presscore_is_post_navigation_enabled(); $project_link = presscore_get_project_link('btn-link btn-project-link'); echo $before_content; if ($show_navigation || $project_link) { echo '<div class="project-navigation">'; presscore_post_navigation_controller(); echo $project_link; echo '</div>'; } the_content(); echo presscore_new_posted_on('dt_portfolio'); presscore_display_share_buttons('portfolio_post'); wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', LANGUAGE_ZONE), 'after' => '</div>')); echo $after_content;