library = $photonic_slideshow_library;
}
else {
$this->library = $photonic_custom_lightbox;
}
}
/**
* Generates the markup for a single photo.
*
* @param $data array Pertinent pieces of information about the photo - the source (src), the photo page (href), title and caption
* @param $module Core The object calling this. A CSS class is created in the header, photonic-single-$module->provider-photo-header
* @return string
*/
function generate_single_photo_markup($data, $module) {
$module->push_to_stack('Generate single photo markup');
$ret = '';
$photo = array_merge(
['src' => '', 'href' => '', 'title' => '', 'caption' => ''],
$data
);
if (empty($photo['src'])) {
$module->pop_from_stack();
return $ret;
}
global $photonic_external_links_in_new_tab;
if (!empty($photo['title'])) {
$ret .= "\t".'