layout ) : ?>
get_photos() as $photo ) : ?>
click_action ? '' : $photo->link; if ( 'lightbox' == $settings->click_action && isset( $settings->lightbox_image_size ) ) { if ( '' !== $settings->lightbox_image_size ) { $size = $settings->lightbox_image_size; $data = FLBuilderPhoto::get_attachment_data( $photo->id ); if ( isset( $data->sizes->{$size} ) ) { $url = $data->sizes->{$size}->url; } } } FLBuilder::render_module_html('photo', array( 'crop' => false, 'link_target' => '_self', 'link_type' => 'none' == $settings->click_action ? '' : 'url', 'link_url' => $url, 'photo' => $photo, 'photo_src' => $photo->src, 'show_caption' => $settings->show_captions, )); ?>