* @copyright Copyright 2016, .TUBE(R) * @link https://www.get.tube/wordpress * @since 1.0.0.0 */ // get the posts list heading $posts_list_heading = Tube_Theme::$tube_labels -> get_posts_list_heading(); // get the no results heading $no_results_heading = Tube_Theme::$tube_labels -> get_no_results_heading(); // get the paged title (in functions-pagination.php) $paginated_query_label = Tube_Theme::$tube_pagination -> get_paginated_query_label(); // special stuff for the home page if ( is_home() ): // test if we're on the first page if ( ! get_query_var('paged') || ( get_query_var('paged') == 1 ) ): // Get the sticky / features posts heading $sticky_posts_heading = Tube_Theme::$tube_labels -> get_sticky_posts_heading( ); // Get Sticky Posts $sticky_posts_query = Tube_Theme::$tube_home_page -> get_sticky_posts(); endif; endif; // special stuff for search results if ( is_search() ): $search_results_header_label = Tube_Theme::$tube_labels -> get_search_results_header_label(); $posts_list_heading = sprintf( _x('Results for %1$s', 'Search results heading', 'tube'), esc_attr( get_search_query() ) ); $search_no_results_message = Tube_Theme::$tube_labels -> get_search_no_results_message(); endif; // sculpt the columns for the masthead content area if ( is_home() || is_archive() ) : $masthead_columns = "col-sm-10 col-sm-push-1 col-md-8 col-md-push-2 col-xl-6 col-xl-push-3"; else: $masthead_columns = "col-sm-10 col-sm-push-1 col-xl-8 col-xl-push-2"; endif; // allow columns to be filtered $masthead_columns = apply_filters( 'tube_filter_masthead_columns', $masthead_columns ); // standard WP header get_header(); ?>
display_name; $description = wpautop( wptexturize( get_the_author_meta('description') )); elseif ( is_category() ) : $label = _x('Category', 'Category archive masthead label', 'tube'); $title = single_cat_title( '', false); $description = category_description(); elseif ( is_tag() ) : $label = _x('Tag', 'Tag archive masthead label', 'tube'); $title = single_tag_title( '', false); $description = tag_description(); elseif ( is_tax() ) : $the_tax = get_taxonomy( get_query_var( 'taxonomy' ) ); $label = $the_tax->labels->name; $title = single_term_title( '', false); $description = term_description(); elseif ( is_day() ) : $label = _x('Day', 'Day archive masthead label', 'tube'); ob_start(); the_time('F jS, Y'); $title = ob_get_clean(); elseif ( is_month() ) : $label = _x('Month', 'Month archive masthead label', 'tube'); ob_start(); the_time('F, Y'); $title = ob_get_clean(); elseif ( is_year() ) : $label = _x('Year', 'Year archive masthead label', 'tube'); ob_start(); the_time('Y'); $title = ob_get_clean(); elseif ( is_search() ) : $label = $search_results_header_label; elseif ( is_post_type_archive() ) : $title = post_type_archive_title( '', false ); endif; ?>

have_posts() ): ?>


    have_posts() ) : // setup post data $sticky_posts_query->the_post(); // set the image size $sticky_post_image_size = apply_filters( 'tube_sticky_post_image_size', 'tube-img-md-cropped'); // add image size to post object (it gets used in the partial) $post -> image_size = $sticky_post_image_size; // get the partial for post list get_template_part( 'partials/post-list' ); endwhile; // reset the post data from the sticky query wp_reset_postdata(); ?>


custom_posts_nav_link(); break; default: Tube_Theme::$tube_pagination -> custom_the_posts_pagination(); break; endswitch; else: // no posts for this archive or query ?>