| Server IP : 188.114.97.4 / Your IP : 104.23.243.201 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : 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, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/temp/fusion-core/templates/ |
Upload File : |
<?php
/**
* Featured images for single portfolio.
*
* @package Fusion-Core
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
if ( ! class_exists( 'Avada' ) ) {
exit( 'This feature requires the Avada theme.' );
}
if ( ! post_password_required( get_the_ID() ) ) : ?>
<?php if ( Avada()->settings->get( 'portfolio_featured_images' ) ) : ?>
<?php if ( 0 < avada_number_of_featured_images() || get_post_meta( get_the_ID(), 'pyre_video', true ) ) : ?>
<div class="fusion-flexslider flexslider fusion-post-slideshow post-slideshow fusion-flexslider-loading">
<ul class="slides">
<?php if ( get_post_meta( get_the_ID(), 'pyre_video', true ) ) : ?>
<li>
<div class="full-video">
<?php echo get_post_meta( get_the_ID(), 'pyre_video', true ); // phpcs:ignore WordPress.Security ?>
</div>
</li>
<?php endif; ?>
<?php if ( has_post_thumbnail() && ( ! fusion_get_mismatch_option( 'portfolio_disable_first_featured_image', 'show_first_featured_image', get_the_ID() ) || 'no' === fusion_get_mismatch_option( 'portfolio_disable_first_featured_image', 'show_first_featured_image', get_the_ID() ) ) ) : ?>
<li>
<?php if ( Avada()->settings->get( 'status_lightbox' ) && Avada()->settings->get( 'status_lightbox_single' ) ) : ?>
<?php $attachment_data = Avada()->images->get_attachment_data( get_post_thumbnail_id() ); ?>
<?php if ( is_array( $attachment_data ) ) : ?>
<a href="<?php echo esc_url( $attachment_data['url'] ); ?>" data-rel="iLightbox[gallery<?php the_ID(); ?>]" title="<?php echo esc_attr( $attachment_data['title_attribute'] ); ?>" data-title="<?php echo esc_attr( $attachment_data['title_attribute'] ); ?>" data-caption="<?php echo esc_attr( $attachment_data['caption_attribute'] ); ?>">
<span class="screen-reader-text"><?php esc_html_e( 'View Larger Image', 'fusion-core' ); ?></span>
<?php echo get_the_post_thumbnail( get_the_ID(), 'full' ); ?>
</a>
<?php else : ?>
<?php echo get_the_post_thumbnail( get_the_ID(), 'full' ); ?>
<?php endif; ?>
<?php else : ?>
<?php echo get_the_post_thumbnail( get_the_ID(), 'full' ); ?>
<?php endif; ?>
</li>
<?php endif; ?>
<?php $i = 2; ?>
<?php while ( $i <= Avada()->settings->get( 'posts_slideshow_number' ) ) : ?>
<?php $attachment_new_id = fusion_get_featured_image_id( 'featured-image-' . $i, 'avada_portfolio' ); ?>
<?php if ( $attachment_new_id ) : ?>
<li>
<?php if ( Avada()->settings->get( 'status_lightbox' ) && Avada()->settings->get( 'status_lightbox_single' ) ) : ?>
<?php $attachment_data = Avada()->images->get_attachment_data( $attachment_new_id ); ?>
<?php if ( is_array( $attachment_data ) ) : ?>
<a href="<?php echo esc_url( $attachment_data['url'] ); ?>" data-rel="iLightbox[gallery<?php the_ID(); ?>]" title="<?php echo esc_attr( $attachment_data['title_attribute'] ); ?>" data-title="<?php echo esc_attr( $attachment_data['title_attribute'] ); ?>" data-caption="<?php echo esc_attr( $attachment_data['caption_attribute'] ); ?>">
<span class="screen-reader-text"><?php esc_html_e( 'View Larger Image', 'fusion-core' ); ?></span>
<?php echo wp_get_attachment_image( $attachment_new_id, 'full' ); ?>
</a>
<?php else : ?>
<?php echo get_the_post_thumbnail( get_the_ID(), 'full' ); ?>
<?php endif; ?>
<?php else : ?>
<?php echo wp_get_attachment_image( $attachment_new_id, 'full' ); ?>
<?php endif; ?>
</li>
<?php endif; ?>
<?php $i++; ?>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<?php endif; // Portfolio single image theme option check. ?>
<?php endif; // Password check. ?>