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/wpprm/wp-content/themes/ronneby/single-gallery.php
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }
global $dfd_ronneby;

$single_gallery_stun_header = DfdMetaBoxSettings::compared('dfd_gallery_single_stun_header', false);

$single_gallery_layout = DfdMetaBoxSettings::compared('dfd_gallery_single_layout', false);

$single_gallery_sidebars = DfdMetaBoxSettings::compared('dfd_gallery_single_sidebars', false);

$dfd_gallery_single_enable_pagination = DfdMetaBoxSettings::compared('dfd_gallery_single_enable_pagination', false);

if($single_gallery_stun_header != 'off') {
	get_template_part('templates/header/top', 'page');
}

if($dfd_gallery_single_enable_pagination == 'on') {
	$dfd_gallery_single_pagination_style = DfdMetaBoxSettings::compared('dfd_gallery_single_pagination_style', false);

	if($dfd_gallery_single_pagination_style) { ?>
		<div class="row dfd-pagination-<?php echo esc_attr($single_gallery_layout); ?>">
			<div class="twelve columns">
				<?php get_template_part('templates/pagination', 'links'); ?>
				<?php get_template_part('templates/entry-meta/gallery-top-link'); ?>
			</div>
		</div>
	<?php } else {
		get_template_part('templates/inside-pagination');
	}
}
?>
<section id="layout" class="dfd-single-gallery dfd-equal-height-children">
    <div class="row <?php echo esc_attr($single_gallery_layout) ?>">

        <?php
		if(!empty($single_gallery_sidebars) && $single_gallery_sidebars) {
			switch($single_gallery_sidebars) {
				case '3c-l-fixed':
					$dfd_layout = 'sidebar-left2';
					$dfd_width = 'six dfd-eq-height';
					break;
				case '3c-r-fixed':
					$dfd_layout = 'sidebar-right2';
					$dfd_width = 'six dfd-eq-height';
					break;
				case '2c-l-fixed':
					$dfd_layout = 'sidebar-left';
					$dfd_width = 'nine dfd-eq-height';
					break;
				case '2c-r-fixed':
					$dfd_layout = 'sidebar-right';
					$dfd_width = 'nine dfd-eq-height';
					break;
				case '3c-fixed':
					$dfd_layout = 'sidebar-both';
					$dfd_width = 'six dfd-eq-height';
					break;
				case '1col-fixed':
				default:
					$dfd_layout = '';
					$dfd_width = 'twelve';
			}
			echo '<div class="blog-section ' . esc_attr($dfd_layout) . '">';
			echo '<section id="main-content" role="main" class="' . $dfd_width . ' columns">';
		} else {
			set_layout('single', true);
		}
	?>
		
	<?php 
	if (!post_password_required(get_the_id())) {
		get_template_part('templates/gallery/gallery','media');
		comments_template();
	} else {
		echo get_the_password_form();
	}
	?>

	<?php
		if(!empty($single_gallery_sidebars) && $single_gallery_sidebars) {
			echo ' </section>';

			if (($single_gallery_sidebars == "2c-l-fixed") || ($single_gallery_sidebars == "3c-fixed")) {
				get_template_part('templates/sidebar', 'left');
				echo ' </div>';
			}
			if (($single_gallery_sidebars == "3c-l-fixed")){
				get_template_part('templates/sidebar', 'right');
				echo ' </div>';
				get_template_part('templates/sidebar', 'left');
			}
			if ($single_gallery_sidebars == "3c-r-fixed"){
				get_template_part('templates/sidebar', 'left');
				echo ' </div>';
			}
			if (($single_gallery_sidebars == "2c-r-fixed") || ($single_gallery_sidebars == "3c-fixed") || ($single_gallery_sidebars == "3c-r-fixed") ) {
				get_template_part('templates/sidebar', 'right');
			}
			echo '</div>';
        } else {
			set_layout('single', false);
		}
        ?>

    </div>
</section>