File: /www/wwwroot/claudiayancor.duckdns.org/wp-content/plugins/photonic/Lightboxes/BaguetteBox.php
<?php
namespace Photonic_Plugin\Lightboxes;
require_once 'Lightbox.php';
class BaguetteBox extends Lightbox {
protected function __construct() {
$this->library = 'baguettebox';
parent::__construct();
}
public function get_photo_attributes($photo_data, $module) {
$out = parent::get_photo_attributes($photo_data, $module);
return $out . (!empty($photo_data['video']) ? ' data-html5-href="' . $photo_data['video'] . '" data-content-type="video"' : ' data-content-type="image"');
}
}