| 1 |
<?php |
| 2 |
|
| 3 |
namespace Photonic_Plugin\Lightboxes; |
| 4 |
|
| 5 |
use Photonic_Plugin\Components\Photo; |
| 6 |
use Photonic_Plugin\Platforms\Base; |
| 7 |
|
| 8 |
require_once 'Lightbox.php'; |
| 9 |
|
| 10 |
class Thickbox extends Lightbox { |
| 11 |
protected function __construct() { |
| 12 |
$this->library = 'thickbox'; |
| 13 |
parent::__construct(); |
| 14 |
} |
| 15 |
|
| 16 |
public function get_lightbox_title(Photo $photo, Base $module, $title, $alt_title, $target) { |
| 17 |
return ($title ?: $alt_title); |
| 18 |
} |
| 19 |
} |
| 20 |
|