__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Slider\Feature;
use Nextend\Framework\View\Html;
class Align {
private $slider;
public $align = 'normal';
public function __construct($slider) {
$this->slider = $slider;
$this->align = $slider->params->get('align', 'normal');
}
public function renderSlider($sliderHTML, $maxWidth) {
$htmlOptions = array(
"id" => $this->slider->elementId . '-align',
"class" => "n2-ss-align",
"encode" => false
);
$htmlOptionsPadding = array(
"class" => 'n2-padding'
);
if (!$this->slider->features->responsive->scaleUp && $this->align != 'normal') {
switch ($this->align) {
case 'left':
case 'right':
$width = $this->slider->assets->sizes['width'];
$htmlOptions["style"] = "float: {$this->align}; width: {$width}px; max-width:100%;";
break;
case 'center':
$htmlOptions["style"] = "margin: 0 auto; max-width: {$maxWidth}px;";
break;
}
}
$sliderHTML = Html::tag("div", $htmlOptions, Html::tag("div", $htmlOptionsPadding, $sliderHTML));
if ($this->slider->params->get('clear-both-after', 1)) {
$sliderHTML .= Html::tag("div", array("class" => "n2_clear"), "");
}
return $sliderHTML;
}
public function makeJavaScriptProperties(&$properties) {
$properties['align'] = $this->align;
$properties['isDelayed'] = intval($this->slider->params->get('is-delayed', 0));
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Align.php | File | 1.66 KB | 0664 |
|
| Autoplay.php | File | 2.98 KB | 0664 |
|
| BlockRightClick.php | File | 424 B | 0664 |
|
| Controls.php | File | 1.15 KB | 0664 |
|
| Focus.php | File | 1.61 KB | 0664 |
|
| LayerMode.php | File | 1.41 KB | 0664 |
|
| LazyLoad.php | File | 1.4 KB | 0664 |
|
| MaintainSession.php | File | 423 B | 0664 |
|
| Margin.php | File | 956 B | 0664 |
|
| Optimize.php | File | 3.91 KB | 0664 |
|
| PostBackgroundAnimation.php | File | 253 B | 0664 |
|
| Responsive.php | File | 33.24 KB | 0664 |
|
| SlideBackground.php | File | 14.63 KB | 0664 |
|
| TranslateUrl.php | File | 678 B | 0664 |
|