File "layout_outer.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/unlimited-elements-for-elementor/views/layout_outer.php
File
size: 1.47 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
defined('UNLIMITED_ELEMENTS_INC') or die('Restricted access');
class BloxViewLayoutOuter
{
protected $objPageBuilder;
protected $objLayout, $objLayouts, $layoutID, $layoutType, $isTemplate;
public function __construct()
{
$this->objLayouts = new UniteCreatorLayouts();
$layoutID = UniteFunctionsUC::getGetVar("id", null, UniteFunctionsUC::SANITIZE_ID);
$this->isTemplate = false;
$this->objLayout = new UniteCreatorLayout();
if (!empty($layoutID)) {
$this->layoutID = $layoutID;
$this->objLayout->initByID($layoutID);
$this->layoutType = $this->objLayout->getLayoutType();
} else {
$layoutType = UniteFunctionsUC::getGetVar("layout_type", null, UniteFunctionsUC::SANITIZE_KEY);
if (!empty($layoutType)) {
$this->objLayouts->validateLayoutType($layoutType);
$this->layoutType = $layoutType;
$this->objLayout->setLayoutType($layoutType);
}
}
if (!empty($this->layoutType)) {
$this->isTemplate = true;
}
$this->objPageBuilder = new UniteCreatorPageBuilder();
$this->objPageBuilder->initOuter($this->objLayout);
}
protected function display()
{
$this->objPageBuilder->displayOuter();
}
}
$pathProviderLayoutOuter = GlobalsUC::$pathProvider . "views/layout_outer.php";
require_once $pathProviderLayoutOuter;
new BloxViewLayoutOuterProvider();