PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
smart-slider-3
/
Nextend
/
SmartSlider3
/
Slider
/
Feature
<?php namespace Nextend\SmartSlider3\Slider\Feature; use Nextend\Framework\Platform\Platform; use Nextend\Framework\View\Html; class Margin { private $slider; private $margin; public function __construct($slider) { $this->slider = $slider; $this->margin = explode('|*|', $slider->params->get('margin', '0|*|0|*|0|*|0')); } public function renderSlider($sliderHTML) { if (!Platform::isAdmin() && count($this->margin) >= 4) { array_splice($this->margin, 4); if ($this->margin[0] != 0 || $this->margin[1] != 0 || $this->margin[2] != 0 || $this->margin[3] != 0) { $sliderHTML = Html::tag("div", array( "class" => "n2-ss-margin", "encode" => false, "style" => "margin: " . implode('px ', $this->margin) . "px;" ), $sliderHTML); } } return $sliderHTML; } }
[-] Align.php
[edit]
[-] Focus.php
[edit]
[+]
..
[-] BlockRightClick.php
[edit]
[-] SlideBackground.php
[edit]
[-] Responsive.php
[edit]
[-] MaintainSession.php
[edit]
[-] LazyLoad.php
[edit]
[-] Autoplay.php
[edit]
[-] PostBackgroundAnimation.php
[edit]
[-] Optimize.php
[edit]
[-] Controls.php
[edit]
[-] TranslateUrl.php
[edit]
[-] Margin.php
[edit]
[-] LayerMode.php
[edit]