HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
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>