HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
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/dhoistage.concertium.com/wp-content/themes/vantage/loops/loop-slider.php
<?php
/**
 * Just displays a slider loop. Intended to be included in child themes using get_template_part('loop', 'slider'). Also works with SiteOrigin page builder loop widget.
 *
 * Loop Name: Slider
 *
 * @package vantage
 * @since vantage 1.0
 * @license GPL 2.0
 */
?>

<?php if ( have_posts() ) : ?>

<div class="flexslider-wrapper">
	<div class="flexslider">
		<ul class="slides">
			<?php while ( have_posts() ) : the_post(); ?>
				<?php if( has_post_thumbnail() ) : ?>
					<li class="slide">
						<a href="<?php the_permalink() ?>">
							<?php the_post_thumbnail('vantage-slide'); ?>
							<div class="flex-caption">
								<h3><?php the_title() ?></h3>
							</div>
						</a>
					</li>
				<?php elseif( 'attachment' == get_post_type() && wp_get_attachment_image_src(get_post_thumbnail_id(), 'vantage-slide') ) : ?>
					<li class="slide">
						<a href="<?php the_permalink() ?>">
							<?php echo wp_get_attachment_image( get_the_ID(), 'vantage-slide' ); ?>
							<div class="flex-caption">
								<h3><?php the_title() ?></h3>
							</div>
						</a>
					</li>
				<?php endif; ?>
			<?php endwhile; ?>
		</ul>
	</div>
</div>

<?php endif; ?>