HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpkoopkj/wp-content/themes/ohio/page.php
<?php
/**
 * Ohio WordPress Theme
 *
 * Page template
 *
 * @author Colabrio
 * @link   https://ohio.clbthemes.com
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Theme header
 */
get_header();

// Get theme options
$show_breadcrumbs = OhioOptions::get( 'page_breadcrumbs_visibility', true );
$page_wrapped = OhioOptions::get( 'page_add_wrapper', true );
$no_ecommerce = !OhioOptions::page_is( 'ecommerce' );
$add_content_padding = OhioOptions::get( 'page_add_top_padding', true );
$sidebar_position = OhioOptions::get( 'page_sidebar_position', 'left' );
$sidebar_layout = OhioOptions::get( 'page_sidebar_layout', 'simple' );

$page_container_class = '';
if ( $add_content_padding && !$show_breadcrumbs ) {
	$page_container_class .= ' top-offset'; 
}
if ( !$page_wrapped ) {
	$page_container_class .= ' -full-w';
}
if ( $add_content_padding ) {
	$page_container_class .= ' bottom-offset';
}

$sidebar_class = '';
if ( is_active_sidebar( 'ohio-sidebar-page' ) ) {

	$content_container_class = '';
	if ( $no_ecommerce && $sidebar_position == 'left' ) {
		$content_container_class = '-with-left-sidebar';
	}
	if ( $no_ecommerce && $sidebar_position == 'right' ) {
		$content_container_class = '-with-right-sidebar';
	}
	if ( $sidebar_layout ) {
		$sidebar_class .= ' -' . $sidebar_layout;
	}
}

?>

<?php get_template_part( 'parts/elements/page_headline' ); ?>

<?php 
	if (OhioSettings::page_is( 'ecommerce' )) {
		if ( !( is_cart() && WC()->cart->get_cart_contents_count() == 0 ) ) {
			get_template_part( 'parts/elements/breadcrumbs' );
		}
	} else {
		get_template_part( 'parts/elements/breadcrumbs' );
	}
?>

<div class="page-container<?php echo esc_attr( $page_container_class ); ?>">
	<div id="primary" class="content-area">

		<?php if ( is_active_sidebar( 'ohio-sidebar-page' ) && $no_ecommerce && $sidebar_position == 'left' ) : ?>

			<div class="page-sidebar -left<?php echo esc_attr( $sidebar_class ); ?>">
				<aside id="secondary" class="widgets">
					<?php dynamic_sidebar( 'ohio-sidebar-page' ); ?>
				</aside>
			</div>

		<?php endif; ?>

		<div class="page-content <?php echo esc_attr( $content_container_class ); ?>">
			<main id="main" class="site-main">
			<?php
				while ( have_posts() ) : the_post();
					get_template_part( 'parts/content', 'page' );
				endwhile;
			?>
			</main>
		</div>

		<?php if ( is_active_sidebar( 'ohio-sidebar-page' ) && $no_ecommerce && $sidebar_position == 'right' ) : ?>

			<div class="page-sidebar sidebar-right<?php echo esc_attr( $sidebar_class ); ?>">
				<aside id="secondary" class="widgets">
					<?php dynamic_sidebar( 'ohio-sidebar-page' ); ?>
				</aside>
			</div>
			
		<?php endif; ?>
	</div>
</div>

<?php
	while ( have_posts() ) : the_post();
		if ( comments_open() || get_comments_number() ) :
			comments_template();
		endif;
	endwhile;

	/**
	 * Theme footer
	 */
	get_footer();