PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.44
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.44
3.36 3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 2.44 All 141 releases
photonic / Lightboxes / PrettyPhoto.php

PrettyPhoto.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.44, at Lightboxes/PrettyPhoto.php

27 lines 624 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }