0 ) {
// Widgets such as Post Title / Post Content read the queried post from the main query.
EPPRO_Theme_Builder_Renderer::render_content();
} elseif ( is_404() ) {
echo '
' . esc_html__( 'Page Not Found', 'admore-widgets-suite' ) . '
'
. '
' . esc_html__( 'The page you are looking for could not be found.', 'admore-widgets-suite' ) . '
';
} elseif ( have_posts() ) {
// Only reached when a site forces the canvas through the
// "eppro_theme_builder_use_canvas" filter without a content template.
while ( have_posts() ) {
the_post();
$eppro_post_id = get_the_ID();
$eppro_post_classes = implode( ' ', get_post_class( 'eppro-canvas-article', $eppro_post_id ) );
echo '
';
if ( is_singular() ) {
echo '' . esc_html( get_the_title() ) . '
';
the_content();
} else {
echo '';
the_excerpt();
}
echo '';
}
if ( ! is_singular() ) {
the_posts_pagination();
} elseif ( comments_open() || get_comments_number() ) {
comments_template();
}
}
?>