HEX
Server: LiteSpeed
System:
User: ()
PHP: 7.3.33
Disabled: ln,cat,popen,pclose,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,system,dl,passthru,exec,shell_exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,mysql_list_dbs,get_current_user,getmyuid,pconnect,link,symlink,pcntl_exec,ini_alter,pfsockopen,leak,apache_child_terminate,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,stream_select,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual,ini_get_all,php_passthru,posix_uname,php_uname,highlight_file,define_syslog_variables,ftp_exec,inject_code,eval
Upload Files
File: /var/www/vhosts/miroglu.net/httpdocs/wp-content/themes/the-landscaper/parts/project-fullwidth.php
<?php
/**
 * Pagination Template Part
 *
 * @package The Landscaper
 */

// Get the gallery field images
$images = get_field( 'gallery_field' );

// Get the extra textfield position
$extra_textarea_position = get_field( 'extra_textarea_position' );

// Get the extra textfield area
$extra_textarea = preg_replace( '#<script(.*?)>(.*?)</script>#is', '', get_field( 'extra_textarea' ) );

// Get the amount of columns
$columns = get_field( 'gallery_columns' );

// Get the gallery gap option
$gallery_gap = get_field( 'gallery_images_gap' );

// Check if gallery gap is empty
if ( ! $gallery_gap ) { 
	$gallery_gap = '15';
}

// Check if textfield position isset
if ( ! $extra_textarea_position ) { 
	$extra_textarea_position = 'below';
}
?>
	
<?php if ( 'above' === $extra_textarea_position && ! empty( $extra_textarea ) ) : ?>
	<div class="gallery-extra clear">
		<?php echo wp_kses_post( $extra_textarea ); ?>
	</div>
<?php endif; ?>

<?php if( $images ) : ?>
	<div class="gallery-field-wrapper">
		<div class="gallery-field gallery-columns-<?php echo esc_attr( $columns ); ?> gallery-gap-<?php echo esc_attr( $gallery_gap ); ?> clearfix">
			<?php foreach ( $images as $image ) :
				$slide_image_srcset = thelandscaper_srcset_sizes( $image['ID'], array( 'thelandscaper-project-images-s', 'thelandscaper-project-images-m', 'thelandscaper-project-images-l' ) ); ?>
				<div class="gallery-item">
					<a href="<?php echo esc_url( $image['url'] ); ?>" class="image" data-elementor-lightbox-slideshow="8fdc453">
						<?php if( $columns === '1' ) : ?> 
							<img src="<?php echo esc_url( $image['sizes']['thelandscaper-project-images'] ); ?>" srcset="<?php echo esc_html( $slide_image_srcset ); ?>" sizes="100vw" alt="<?php echo esc_attr( get_sub_field( 'slide_heading' ) ); ?>">
						<?php else : ?>
							<img src="<?php echo esc_url( $image['sizes']['thelandscaper-project-images'] ); ?>" alt="<?php echo esc_attr( $image['alt'] ); ?>">
						<?php endif; ?>
					</a>
				</div>
			<?php endforeach; ?>
		</div>
	</div>
<?php endif; ?>

<?php if ( 'below' === $extra_textarea_position && ! empty( $extra_textarea ) ) : ?>
	<div class="gallery-extra clearfix">
		<?php echo wp_kses_post( $extra_textarea ); ?>
	</div>
<?php endif; ?>

<?php if ( have_posts() ) : while ( have_posts() ) : ?>	
	<div class="gallery-content clearfix">
		<?php the_post(); the_content(); ?>
	</div>
<?php endwhile; endif; ?>