File: /home/rockyroadprintin/www/wp-content/themes/consulting/partials/content-page.php
<?php
$vc_status = get_post_meta( get_the_ID(), '_wpb_vc_js_status', true );
$is_shop = false;
if ( ( function_exists( 'is_cart' ) && is_cart() ) || ( function_exists( 'is_shop' ) && is_shop() ) || ( function_exists( 'is_product' ) && is_product() ) || ( function_exists( 'is_account_page' ) && is_account_page() ) || ( function_exists( 'is_checkout' ) && is_checkout() ) ) {
$is_shop = true;
}
$elementor_status = get_post_meta( get_the_ID(), '_elementor_edit_mode', true );
$elementor_status = (!empty($elementor_status) && $elementor_status === 'builder');
$classes = '';
if($elementor_status) $classes = 'consulting_elementor_wrapper';
?>
<article id="post-<?php the_ID(); ?>" <?php post_class($classes); ?>>
<div class="entry-content">
<?php if ( $vc_status != 'false' && $vc_status == true || $is_shop ) { ?>
<?php the_content(); ?>
<?php } else if($elementor_status) { ?>
<div class="text_block consulting_elementor_wrapper clearfix">
<?php the_content(); ?>
</div>
<?php } else { ?>
<div class="text_block wpb_text_column clearfix">
<?php the_content(); ?>
</div>
<?php } ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'consulting' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'consulting' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div>
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</article>