PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.37
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.37
3.37 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 All 142 releases
← All changes | Lightboxes/Thickbox.php +11 -3 2.43 → 3.37 View file →
@@ -1,11 +1,19 @@
1 1 <?php
2 +
2 3 namespace Photonic_Plugin\Lightboxes;
3 4
4 -require_once('Lightbox.php');
5 +use Photonic_Plugin\Components\Photo;
6 +use Photonic_Plugin\Platforms\Base;
5 7
8 +require_once 'Lightbox.php';
9 +
6 10 class Thickbox extends Lightbox {
7 - function __construct() {
11 + protected function __construct() {
8 12 $this->library = 'thickbox';
9 13 parent::__construct();
10 14 }
11 -}
15 +
16 + public function get_lightbox_title(Photo $photo, Base $module, $title, $alt_title, $target) {
17 + return ($title ?: $alt_title);
18 + }
19 +}