*/ global $canuck_include_breadcrumbs,$canuck_exclude_page_title,$canuck_page_title; $canuck_layout_option = get_theme_mod( 'canuck_date_layout', 'right_sidebar' ); $canuck_include_breadcrumbs = get_theme_mod( 'canuck_breadcrumbs' ) ? true : false; $canuck_use_feature = get_theme_mod( 'canuck_use_feature' ) ? true : false; $canuck_exclude_page_title = false; if ( is_day() ) { $canuck_page_title = esc_html__( 'Posts for : ', 'canuck' ) . esc_html( get_the_time( get_option( 'date_format' ) ) ); } elseif ( is_month() ) { $canuck_page_title = esc_html__( 'Posts for : ', 'canuck' ) . single_month_title( ' ', false ); } elseif ( is_year() ) { $canuck_page_title = esc_html__( 'Posts for : ', 'canuck' ) . esc_html( get_the_time( 'Y' ) ); } get_header( 'no-feature' ); get_template_part( '/template-parts/partials', 'page-title-no-post' ); ?>
'; get_template_part( '/template-parts/sidebars/sidebar', 'default-a' ); echo ''; echo '
'; if ( true === $canuck_use_feature ) { get_template_part( '/template-parts/partials', 'general-posts-side-feature' ); } else { get_template_part( '/template-parts/partials', 'general-posts' ); } get_template_part( '/template-parts/partials', 'page-navi' ); echo '
'; } elseif ( 'both_sidebars' === $canuck_layout_option ) { echo ''; echo '
'; if ( true === $canuck_use_feature ) { get_template_part( '/template-parts/partials', 'general-posts-top-feature' ); } else { get_template_part( '/template-parts/partials', 'general-posts' ); } get_template_part( '/template-parts/partials', 'page-navi' ); echo '
'; echo ''; } elseif ( 'fullwidth' === $canuck_layout_option ) { echo '
'; if ( true === $canuck_use_feature ) { get_template_part( '/template-parts/partials', 'general-posts-side-feature' ); } else { get_template_part( '/template-parts/partials', 'general-posts' ); } get_template_part( '/template-parts/partials', 'page-navi' ); echo '
'; } else { echo '
'; if ( true === $canuck_use_feature ) { get_template_part( '/template-parts/partials', 'general-posts-side-feature' ); } else { get_template_part( '/template-parts/partials', 'general-posts' ); } get_template_part( '/template-parts/partials', 'page-navi' ); echo '
'; echo ''; } ?>