HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ubuntu-8gb-hel1-1 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /var/www/agighana.org_backup/addontype_elementor.class.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
 * */
if ( ! defined( 'ABSPATH' ) ) exit;

class UniteCreatorAddonType_Elementor extends UniteCreatorAddonType{
	
	
	/**
	 * init the addon type
	 */
	protected function init(){
		
		parent::init();
		
		$isGutenbergPlugin = GlobalsUnlimitedElements::$isGutenbergOnly;
		
		$this->typeName = GlobalsUnlimitedElements::ADDONSTYPE_ELEMENTOR;
		
		if($isGutenbergPlugin == true)
			$this->typeNameCorrection = "gutenberg";
		
		$this->isBasicType = false;
		
		$this->allowWebCatalog = true;
		$this->allowManagerWebCatalog = true;
		$this->catalogKey = "addons";
		$this->arrCatalogExcludeCats = array("basic");
		
		//can't translate here - before init
		
		$this->textPlural = "Widgets";
		$this->textSingle = "Widget";
		$this->textShowType = "Elementor Widget";
		
		if($isGutenbergPlugin == true){
			$this->textPlural = "Blocks";
			$this->textSingle = "Block";
			$this->textShowType = "Gutenberg Blocks";
		}
		
		$this->browser_textBuy = "Go Pro";
		$this->browser_textHoverPro = "Upgrade to PRO version <br> to use this widget";
		$this->browser_urlPreview = "https://unlimited-elements.com/widget-preview/?widget=[name]";
		
		$urlLicense = "https://unlimited-elements.com/pricing/";
				
		$urlBuyInsidePlugin = admin_url("admin.php?".GlobalsUnlimitedElements::SLUG_BUY_BROWSER);
				
		$this->browser_urlBuyPro = $urlBuyInsidePlugin;
		
		$responseAssets = UniteProviderFunctionsUC::setAssetsPath("ac_assets", true);
		
		$this->pathAssets = UniteFunctionsUC::getVal($responseAssets, "path_assets");
		$this->urlAssets = UniteFunctionsUC::getVal($responseAssets, "url_assets");
		
		$this->addonView_urlBack = HelperUC::getViewUrl(GlobalsUnlimitedElements::VIEW_ADDONS_ELEMENTOR);
		$this->addonView_showSmallIconOption = false;		
	}
	
	
}