File "layout_preview.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/unlimited-elements-for-elementor/views/layout_preview.php
File size: 1.35 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 UniteCreatorLayoutPreview
{
    protected $showHeader = false;
    protected $showToolbar = true;
    protected $layoutID;
    protected $layout;
    public function __construct()
    {
        $layoutID = UniteFunctionsUC::getGetVar("id", null, UniteFunctionsUC::SANITIZE_ID);
        UniteFunctionsUC::validateNotEmpty($layoutID, "Layout ID var");
        $this->layoutID = $layoutID;
        $this->layout = new UniteCreatorLayout();
        $this->layout->initByID($layoutID);
    }
    protected function getHeaderTitle()
    {
        $titleText = $this->layout->getTitle();
        $title = HelperUC::getText("preview_layout") . " - ";
        return $title;
    }
    protected function outputLayout($fullPage = false)
    {
        HelperUC::outputLayout($this->layoutID, false, $fullPage);
    }
    protected function display()
    {
        $layoutID = $this->layoutID;
        ?>
			<div class="unite-content-wrapper unite-inputs">
					
					<div class="uc-layout-preview-wrapper">
					
						<?php 
        $this->outputLayout();
        ?>
						
						<div class="unite-clear"></div>
					</div>
					
			</div>
		
		<?php 
    }
}
$pathProviderLayout = GlobalsUC::$pathProvider . "views/layout_preview.php";
require_once $pathProviderLayout;
new UniteCreatorLayoutPreviewProvider();