function presscore_single_post_navigation_bar()
 {
     if (!(is_single() && presscore_is_content_visible())) {
         return;
     }
     switch (get_post_type()) {
         case 'post':
             $post_meta = presscore_new_posted_on('single_post');
             break;
         case 'dt_portfolio':
             $post_meta = presscore_new_posted_on('single_dt_portfolio');
             break;
         case 'dt_gallery':
             $post_meta = presscore_new_posted_on('single_dt_gallery');
             break;
         default:
             $post_meta = '';
     }
     $post_navigation = presscore_post_navigation();
     if ($post_meta || $post_navigation) {
         $article_top_bar_html_class = 'article-top-bar ' . presscore_get_page_title_bg_mode_html_class();
         if (!$post_meta) {
             $article_top_bar_html_class .= ' post-meta-disabled';
         }
         echo '<div class="' . $article_top_bar_html_class . '"><div class="wf-wrap"><div class="wf-container-top">';
         echo presscore_get_post_meta_wrap($post_meta);
         echo '<div class="navigation-inner"><div class="single-navigation-wrap">' . $post_navigation . '</div></div>';
         echo '</div></div></div>';
     }
 }
 function presscore_single_post_navigation_bar()
 {
     if (!(is_single() && presscore_is_content_visible())) {
         return;
     }
     $post_meta = presscore_get_posted_on();
     $post_navigation = presscore_post_navigation();
     if ($post_meta || $post_navigation) {
         $article_top_bar_html_class = 'article-top-bar ' . presscore_get_page_title_bg_mode_html_class();
         if (!$post_meta) {
             $article_top_bar_html_class .= ' post-meta-disabled';
         }
         echo '<div class="' . esc_attr($article_top_bar_html_class) . '"><div class="wf-wrap"><div class="wf-container-top">';
         echo $post_meta;
         echo '<div class="navigation-inner"><div class="single-navigation-wrap">' . $post_navigation . '</div></div>';
         echo '</div></div></div>';
     }
 }
 protected function get_post_navigation()
 {
     if (function_exists('presscore_post_navigation')) {
         $post_navigation = presscore_post_navigation();
     } else {
         $post_navigation = '';
     }
     return '<div class="project-navigation">' . '<span>' . get_the_title() . '</span>' . $post_navigation . '</div>';
 }
Example #4
0
 /**
  * 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();
     }
 }