| Server IP : 77.39.210.126 / Your IP : 216.73.216.203 Web Server : Apache System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64 User : artecasarepresti ( 1022) PHP Version : 7.4.33 Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/artecasarepresti/www/wp-content/themes/Avada/templates/ |
Upload File : |
<?php
/**
* Featured images for page.
*
* @package Avada
* @subpackage Templates
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
$video = '';
$featured_images = '';
if ( ! post_password_required( get_the_ID() ) ) {
if ( Avada()->settings->get( 'featured_images_pages' ) && ! is_archive() ) {
$pyre_video = apply_filters( 'privacy_iframe_embed', get_post_meta( get_the_ID(), 'pyre_video', true ) );
if ( 0 < avada_number_of_featured_images() || $pyre_video ) {
if ( $pyre_video ) {
$video = '<li><div class="full-video">' . $pyre_video . '</div></li>';
}
if ( has_post_thumbnail() && 'yes' !== get_post_meta( get_the_ID(), 'pyre_show_first_featured_image', true ) ) {
$attachment_data = Avada()->get_images_obj()->get_attachment_data( get_post_thumbnail_id() );
if ( is_array( $attachment_data ) ) {
$featured_images .= '<li><a href="' . esc_url( $attachment_data['url'] ) . '" data-rel="iLightbox[gallery' . get_the_ID() . ']" title="' . esc_attr( $attachment_data['caption_attribute'] ) . '" data-title="' . esc_attr( $attachment_data['title_attribute'] ) . '" data-caption="' . esc_attr( $attachment_data['caption_attribute'] ) . '">';
$featured_images .= '<img src="' . esc_url( $attachment_data['url'] ) . '" alt="' . esc_attr( $attachment_data['alt'] ) . '" />';
$featured_images .= '</a></li>';
}
}
$i = 2;
while ( $i <= Avada()->settings->get( 'posts_slideshow_number' ) ) :
$attachment_new_id = fusion_get_featured_image_id( 'featured-image-' . $i, 'page' );
if ( $attachment_new_id ) {
$attachment_data = Avada()->get_images_obj()->get_attachment_data( $attachment_new_id );
$featured_images .= '<li><a href="' . esc_url( $attachment_data['url'] ) . '" data-rel="iLightbox[gallery' . get_the_ID() . ']" title="' . esc_attr( $attachment_data['caption_attribute'] ) . '" data-title="' . esc_attr( $attachment_data['title_attribute'] ) . '" data-caption="' . esc_attr( $attachment_data['caption_attribute'] ) . '">';
$featured_images .= '<img src="' . esc_url( $attachment_data['url'] ) . '" alt="' . esc_attr( $attachment_data['alt'] ) . '" />';
$featured_images .= '</a></li>';
}
$i++;
endwhile;
?>
<div class="fusion-flexslider fusion-flexslider-loading flexslider post-slideshow">
<ul class="slides">
<?php echo $video . $featured_images; // phpcs:ignore WordPress.Security.EscapeOutput ?>
</ul>
</div>
<?php
}
}
}