library = 'fancybox'; parent::__construct(); } public function get_photo_attributes(array $photo_data, Base $module): array { $out = parent::get_photo_attributes($photo_data, $module); if ('google' === $module->provider) { if (empty($photo_data['video'])) { $out['data-fancybox'] = '{type: \"image\"}'; } } if (!empty($photo_data['video'])) { $out['data-html5-href'] = $photo_data['video']; } return $out; } }