* * @package pgb */ ?> <div class="col-xs-12 col-sm-12 col-md-8 col-lg-9"> <?php if (is_front_page()) { printf('<h1 class="page-title">%s</h1>', get_bloginfo('name')); //printf( '<h3 class="page-sub-title">%s</h3>', get_bloginfo( 'description' ) ); } elseif (is_single() || is_page()) { the_title('<h1 class="page-title">', '</h1>'); pgb_the_subtitle('<h3 class="page-sub-title">', '</h3>'); } elseif (pgb_is_blog_page()) { pgb_blog_page_title(); pgb_get_the_subtitle(pgb_blog_page_id(), '<h3 class="page-sub-title">', '</h3>', true); } elseif (is_search()) { printf('<h1 class="page-title">%s%s</h1>', __('Search Results for: ', 'pgb'), '<span>' . get_search_query() . '</span>'); } elseif (is_archive()) { if (is_category()) { printf('<h1 class="page-title">%s</h1>', single_cat_title('', false)); } elseif (is_tag()) { printf('<h1 class="page-title">%s</h1>', single_tag_title('', false)); } elseif (is_author()) { /* Queue the first post, that way we know * what author we're dealing with (if that is the case). */ the_post(); printf('<h1 class="page-title">%s%s</h1>', __('Author: ', 'pgb'), '<span class="vcard">' . get_the_author() . '</span>'); /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way
/** * Returns block to link to next page... this is a temporary fix * @param $previous boolean (default: false) * @uses get_next_page_id() * @return HTML or false */ function nlk_get_pagelink_next($previous = false) { $output = false; $class = $previous ? 'prev' : 'next'; $page_id = $previous ? get_next_page_id(true) : get_next_page_id(); if (!$page_id) { return false; } $args = array('post_type' => array('page', 'post'), 'post__in' => array($page_id)); $nextpage = new WP_query($args); if ($nextpage->have_posts()) { while ($nextpage->have_posts()) { $nextpage->the_post(); $output = '<div id="' . $class . '-' . get_the_ID() . '" class="page-' . $class . ' text-center col-md-12 ajax-nav" data-target="' . get_permalink() . '" data-id="' . get_the_ID() . '">' . '<a href="' . get_permalink() . '" data-id="' . get_the_ID() . '" data-page="ajax"><h3>' . get_the_title() . '</h3>' . pgb_get_the_subtitle(get_the_ID(), '<h5 class="page-sub-title">', '</h5>', false) . '</a></div>'; } } wp_reset_query(); return $output; }