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

use Nextend\Framework\Form\ContainerInterface;
use Nextend\Framework\Form\Element\CheckboxOnOff;
use Nextend\Framework\Form\Element\Group\GroupCheckboxOnOff;
use Nextend\Framework\Form\Form;
use Nextend\Framework\Pattern\OrderableTrait;
use Nextend\SmartSlider3\Widget\AbstractWidget;
use Nextend\SmartSlider3\Widget\WidgetGroupFactory;

abstract class AbstractWidgetGroup {

    use OrderableTrait;

    /** @var AbstractWidget[] */
    private $widgets = array();

    protected $showOnMobileDefault = 0;

    public function __construct() {
        WidgetGroupFactory::addGroup($this);
    }

    public abstract function getName();

    public abstract function getLabel();

    /**
     * @param                $name
     * @param AbstractWidget $widget
     */
    public function addWidget($name, $widget) {
        $this->widgets[$name] = $widget;
    }

    /**
     * @return AbstractWidget[]
     */
    public function getWidgets() {
        return $this->widgets;
    }

    /**
     * @param $name
     *
     * @return AbstractWidget
     */
    public function getWidget($name) {
        return $this->widgets[$name];
    }

    /**
     * @param ContainerInterface $container
     */
    abstract public function renderFields($container);

    /**
     * @param Form $form
     */
    protected function compatibility($form) {
        $name = $this->getName();

        /**
         * Convert to the new control form with the enable field
         */
        if (!$form->has('widget-' . $name . '-enabled')) {

            if ($form->get('widget' . $name, 'disabled') !== 'disabled') {
                $form->set('widget-' . $name . '-enabled', 1);

            } else {
                $form->set('widget-' . $name . '-enabled', 0);
            }
        }

        $widgets = $this->getWidgets();

        $widgetPreset = $form->get('widget' . $name);

        if (!isset($widgets[$widgetPreset])) {
            $widgetPreset = key($widgets);
            $form->set('widget' . $name, $widgetPreset);
        }

        $widget = $widgets[$widgetPreset];

        $form->fillDefault($widget->getDefaults());
    }

    protected function addHideOnFeature($key, $row) {

        $groupShowOn = new GroupCheckboxOnOff($row, $key, n2_('Hide on'));
        new CheckboxOnOff($groupShowOn, $key . 'mobileportrait', false, 'ssi_16 ssi_16--mobileportrait', $this->showOnMobileDefault, array(
            'invert'      => true,
            'checkboxTip' => n2_('Mobile')
        ));


        new CheckboxOnOff($groupShowOn, $key . 'tabletportrait', false, 'ssi_16 ssi_16--tabletportrait', 1, array(
            'invert'      => true,
            'checkboxTip' => n2_('Tablet')
        ));


        new CheckboxOnOff($groupShowOn, $key . 'desktopportrait', false, 'ssi_16 ssi_16--desktopportrait', 1, array(
            'invert'      => true,
            'checkboxTip' => n2_('Desktop')
        ));
    }
}

Filemanager

Name Type Size Permission Actions
AbstractWidgetGroup.php File 2.9 KB 0664
Arrow.php File 2.64 KB 0664
Autoplay.php File 3.69 KB 0664
Bar.php File 2.09 KB 0664
Bullet.php File 3.44 KB 0664
Shadow.php File 1.46 KB 0664
Thumbnail.php File 3.65 KB 0664
Filemanager