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