*/ global $canuck_include_breadcrumbs,$canuck_exclude_page_title,$canuck_page_title,$curauth; $layout_option = get_theme_mod( 'canuck_author_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; $curauth = isset( $_GET['author_name'] ) ? get_user_by( 'slug', $author_name ) : get_userdata( intval( $author ) ); $canuck_page_title = esc_html__( 'Posts by: ', 'canuck' ) . $curauth->display_name; 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 '
'; get_template_part( '/template-parts/partials', 'author-bio' ); 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' === $layout_option ) { echo ''; echo '
'; get_template_part( '/template-parts/partials', 'author-bio' ); 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' === $layout_option ) { echo '
'; get_template_part( '/template-parts/partials', 'author-bio' ); 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 '
'; get_template_part( '/template-parts/partials', 'author-bio' ); 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 ''; }// End if(). ?>