File "LayoutIframe.php"

Full Path: /home2/sdektunc/cepali.edu.mx/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Layout/LayoutIframe.php
File size: 881 bytes
MIME-type: text/x-php
Charset: utf-8

<?php


namespace Nextend\SmartSlider3\Application\Admin\Layout;


use Nextend\Framework\View\AbstractBlock;
use Nextend\Framework\View\AbstractLayout;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Core\AdminIframe\BlockAdminIframe;

class LayoutIframe extends AbstractLayout {

    protected $label = '';

    /**
     * @var AbstractBlock[]
     */
    protected $actions = array();

    public function render() {

        $admin = new BlockAdminIframe($this);
        $admin->setLayout($this);
        $admin->setLabel($this->label);
        $admin->setActions($this->actions);

        $admin->display();
    }

    /**
     * @param string $label
     */
    public function setLabel($label) {
        $this->label = $label;
    }

    /**
     * @param AbstractBlock $block
     */
    public function addAction($block) {
        $this->actions[] = $block;
    }
}