";
$i = 0;
if ($hasTitleSlide) {
$i++;
$output .= "
" . $galleryTitle . "
" . wpautop($galleryText) . "
";
}
foreach ( $attachments as $id => $attachment ) {
$i++;
$large = wp_get_attachment_image_src($id, 'large');
$xlarge = wp_get_attachment_image_src($id, 'xlarge');
$caption = solofolio_attachment_caption($attachment);
$output .= "
";
$output .= "
";
if ($captions != "false" && !empty($caption)) {
$output .= "
" . $caption . "
";
}
$output .= "
";
}
$output .= "