HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
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/studio/wp-content/themes/kulan/page.php
<?php
/**
 * The template for displaying all pages
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site may use a
 * different template.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package kulan
 */

get_header();

if ( class_exists('ACF') ) {
	$hide_page_banner	= get_field('hide_page_banner');
	$banner_image 		= get_field('banner_image');
	$banner_title 		= get_field('banner_title');
}else{
	$hide_page_banner = $banner_image = $banner_title = '';
}

if( !$banner_title){
$banner_title = get_the_title();
}

if($hide_page_banner == false) :
	?>
	<!-- Start page header -->
	<section class="page__header position-relative <?php if(!$banner_image): ?>no-image<?php endif; ?>" <?php if($banner_image): ?>style="background-image:url(<?php echo esc_url($banner_image); ?>);"<?php endif; ?>>
		<div class="container">
			<div class="text-center">
				<div class="d-inline-flex justify-content-center gap-2 transprent__btn">
					<?php kulan_breadcrumb_trail(); ?>
				</div>
				<h2 class="t__40"><?php echo esc_html($banner_title); ?></h2>
			</div>
		</div>
	</section>
	<!--  End page header -->
	<?php 
endif; ?>

<?php if( !kulan_is_elementor()): ?><div class="page-main-content"><?php endif; ?>
	<div class="page-area">
		<?php if( !kulan_is_elementor()): ?><div class="container"><?php endif; ?>
			<?php while ( have_posts() ) : the_post(); ?>
				<?php $thecontent = get_the_content(); // If no content ?>
				<?php if(empty($thecontent)){ ?> <div class="kulan-single-blank-page"></div><?php } ?>
				<?php get_template_part( 'template-parts/content', 'page' ); ?>
				<?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; // If comments are open or we have at least one comment, load up the comment template. ?>
			<?php endwhile; // End of the loop. ?>
		<?php if( !kulan_is_elementor()): ?></div><?php endif; ?>
	</div>
<?php if( !kulan_is_elementor()): ?></div><?php endif; ?>

<?php get_footer();