Your IP : 216.73.216.50


Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/2411249/cwd/
Upload File :
Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/2411249/cwd/Block.tar

BackgroundAnimationManager/Index.php000064400000002203152410407740013537 0ustar00<?php

namespace Nextend\SmartSlider3\BackgroundAnimation\Block\BackgroundAnimationManager;

/**
 * @var BlockBackgroundAnimationManager $this
 */
?>
<div id="n2-lightbox-backgroundanimation" class="n2_fullscreen_editor">
    <div class="n2_fullscreen_editor__overlay"></div>
    <div class="n2_fullscreen_editor__window">
        <div class="n2_fullscreen_editor__nav_bar">
            <div class="n2_fullscreen_editor__nav_bar_label">
                <?php n2_e('Background animation'); ?>
            </div>
            <div class="n2_fullscreen_editor__nav_bar_actions">
                <?php $this->displayTopBar(); ?>
            </div>
        </div>
        <div class="n2_fullscreen_editor__content">
            <div class="n2_fullscreen_editor__content_sidebar n2_container_scrollable">
                <?php
                $this->getModel()
                     ->renderSetsForm();
                ?>
            </div>
            <div class="n2_fullscreen_editor__content_content n2_container_scrollable">
                <?php $this->displayContent(); ?>
            </div>
        </div>
    </div>
</div>
BackgroundAnimationManager/BlockBackgroundAnimationManager.php000064400000003234152410410000020641 0ustar00<?php


namespace Nextend\SmartSlider3\BackgroundAnimation\Block\BackgroundAnimationManager;


use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Visual\AbstractBlockVisual;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\Button\BlockButtonApply;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\Button\BlockButtonCancel;
use Nextend\SmartSlider3\BackgroundAnimation\ModelBackgroundAnimation;

class BlockBackgroundAnimationManager extends AbstractBlockVisual {

    /** @var ModelBackgroundAnimation */
    protected $model;

    /**
     * @return ModelBackgroundAnimation
     */
    public function getModel() {
        return $this->model;
    }

    public function display() {

        $this->model = new ModelBackgroundAnimation($this);

        $this->renderTemplatePart('Index');
    }

    public function displayTopBar() {

        $buttonCancel = new BlockButtonCancel($this);
        $buttonCancel->addClass('n2_fullscreen_editor__cancel');
        $buttonCancel->display();

        $buttonApply = new BlockButtonApply($this);
        $buttonApply->addClass('n2_fullscreen_editor__save');
        $buttonApply->display();
    }

    public function displayContent() {

        $model = $this->getModel();

        Js::addFirstCode("
            new _N2.BgAnimationManager({
                setsIdentifier: '" . $model->getType() . "set',
                sets: " . json_encode($model->getSets()) . ",
                visuals: {},
                ajaxUrl: '" . $this->createAjaxUrl(array('backgroundanimation/index')) . "'
            });
        ");

        $model->renderForm();
    }
}