wp_back/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Widget/Bullet/AbstractBulletFrontend.php
2024-05-20 15:37:46 +03:00

36 lines
888 B
PHP

<?php
namespace Nextend\SmartSlider3\Widget\Bullet;
use Nextend\Framework\Platform\Platform;
use Nextend\Framework\Url\Url;
use Nextend\SmartSlider3\Widget\AbstractWidgetFrontend;
abstract class AbstractBulletFrontend extends AbstractWidgetFrontend {
public function __construct($sliderWidget, $widget, $params) {
parent::__construct($sliderWidget, $widget, $params);
if ($params->get($this->key . 'thumbnail-show-image')) {
$this->slider->exposeSlideData['thumbnail'] = true;
}
$this->addToPlacement($this->key . 'position-', array(
$this,
'render'
));
}
public function getCommonAssetsUri() {
return Url::pathToUri($this->getCommonAssetsPath());
}
public function getCommonAssetsPath() {
return Platform::filterAssetsPath(dirname(__FILE__) . '/Assets');
}
}