get_render_attribute_string( 'grid' ) ); ?>>
render_filter_tabs( $is_all_active, $active_cat_index );
endif;
?>
get_render_attribute_string( 'gallery_container' ) ); ?>>
$image ) :
$key = 'gallery_item_' . $index;
$image_id = apply_filters( 'wpml_object_id', $image['premium_gallery_img']['id'], 'attachment', true );
// Check for Image ID, but not for the default Elementor placeholder.
if ( false === strpos( $image['premium_gallery_img']['url'], 'placeholder.png' ) && ! $image['premium_gallery_video'] && ! $image_id && empty( $image['premium_gallery_img']['url'] ) ) {
continue;
}
$image_by_id = get_post( $image_id );
$alt = $this->get_lightbox_title( $image_by_id );
$this->add_render_attribute(
$key,
array(
'class' => array(
'premium-gallery-item',
'elementor-repeater-item-' . $image['_id'],
$this->filter_cats( $image['premium_gallery_img_category'] ),
),
)
);
if ( $load_more && $index > $minimum - 1 ) {
$this->add_render_attribute( $key, 'class', 'premium-gallery-item-hidden' );
}
if ( $image['premium_gallery_video'] ) {
$this->add_render_attribute( $key, 'class', 'premium-gallery-video-item' );
}
?>
get_render_attribute_string( $key ) ); ?>>
get_render_attribute_string( 'image_container' ) ); ?>>
render_grid_item( $image, $index );
$image['video_link'] = $video_data['link'];
$image['video_thumb'] = $video_data['thumbnail'];
if ( 'style3' === $skin ) :
?>
render_icons( $image, $index, $alt ); ?>
render_icons( $image, $index, $alt ); ?>
render_image_caption( $image );
else :
?>
render_icons( $image, $index, $alt );
$this->render_image_caption( $image );
?>
add_render_attribute(
$link_key,
array(
'class' => 'pa-gallery-whole-link',
)
);
if ( 'url' === $image['premium_gallery_img_link_type'] ) {
$icon_link = $image['premium_gallery_img_link'];
} else {
$icon_link = get_permalink( $image['premium_gallery_img_existing'] );
}
if ( ! empty( $icon_link ) ) {
if ( 'url' === $image['premium_gallery_img_link_type'] ) {
$this->add_link_attributes( $link_key, $icon_link );
} else {
$this->add_render_attribute( $link_key, 'href', $icon_link );
}
?>
get_render_attribute_string( $link_key ) ); ?>>
add_render_attribute(
$lightbox_key,
array(
'class' => 'pa-gallery-whole-link',
'href' => esc_url( $image['premium_gallery_img']['url'] ),
)
);
if ( 'default' !== $lightbox_type ) {
$this->add_render_attribute(
$lightbox_key,
array(
'data-elementor-open-lightbox' => $lightbox_type,
'data-elementor-lightbox-slideshow' => count( $settings['premium_gallery_img_content'] ) > 1 ? $this->get_id() : false,
)
);
if ( 'yes' === $settings['lightbox_show_title'] ) {
$this->add_render_attribute( $lightbox_key, 'data-elementor-lightbox-title', $alt );
}
} else {
$rel = sprintf( 'prettyPhoto[premium-grid-%s]', $this->get_id() );
$this->add_render_attribute(
$lightbox_key,
array(
'data-rel' => $rel,
)
);
}
?>
get_render_attribute_string( $lightbox_key ) ); ?>>