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>'; } }
function presscore_get_page_title_wrap_html_class($class = array()) { $config = Presscore_Config::get_instance(); $output = array(); switch ($config->get('page_title.align')) { case 'right': $output[] = 'title-right'; break; case 'left': $output[] = 'title-left'; break; case 'all_right': $output[] = 'content-right'; break; case 'all_left': $output[] = 'content-left'; break; default: $output[] = 'title-center'; } $title_bg_mode_class = presscore_get_page_title_bg_mode_html_class(); if ($title_bg_mode_class) { $output[] = $title_bg_mode_class; } if (!$config->get('page_title.breadcrumbs.enabled')) { $output[] = 'breadcrumbs-off'; } if ($config->get('page_title.background.parallax_speed')) { $output[] = 'page-title-parallax-bg'; } ////////////// // Output // ////////////// if ($class && !is_array($class)) { $class = explode(' ', $class); } $output = apply_filters('presscore_get_page_title_wrap_html_class', array_merge($class, $output)); return $output ? sprintf('class="%s"', presscore_esc_implode(' ', array_unique($output))) : ''; }