| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | namespace Photonic_Plugin\Lightboxes; |
| 3 | 4 | |
| 4 | -use Photonic_Plugin\Modules\Core; | |
| 5 | +use Photonic_Plugin\Platforms\Base; | |
| 5 | 6 | |
| 6 | -require_once('Lightbox.php'); | |
| 7 | +require_once 'Lightbox.php'; | |
| 7 | 8 | |
| 8 | 9 | class PrettyPhoto extends Lightbox { |
| 9 | 10 | protected function __construct() { |
| 10 | 11 | $this->library = 'prettyphoto'; |
| @@ -12,16 +13,16 @@ | ||
| 12 | 13 | } |
| 13 | 14 | |
| 14 | 15 | /** |
| 15 | 16 | * @param $rel_id |
| 16 | - * @param Core $module | |
| 17 | + * @param Base $module | |
| 17 | 18 | * @return array |
| 18 | 19 | */ |
| 19 | - function get_gallery_attributes($rel_id, $module) { | |
| 20 | - $rel = 'lightbox-photonic-'.$module->provider.'-stream-'.(empty($rel_id) ? $module->gallery_index : $rel_id); | |
| 20 | + public function get_gallery_attributes($rel_id, Base $module): array { | |
| 21 | + $rel = 'lightbox-photonic-' . $module->provider . '-stream-' . (empty($rel_id) ? $module->gallery_index : $rel_id); | |
| 21 | 22 | return [ |
| 22 | - 'class' => $this->class, | |
| 23 | - 'rel' => ["photonic-prettyPhoto[{$rel}]"], | |
| 23 | + 'class' => $this->class, | |
| 24 | + 'rel' => ["photonic-prettyPhoto[$rel]"], | |
| 24 | 25 | 'specific' => [], |
| 25 | 26 | ]; |
| 26 | 27 | } |
| 27 | -} | |
| 28 | +} | |