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/general_settings.php
<?php

defined('UNLIMITED_ELEMENTS_INC') or die;

class UniteCreatorViewGeneralSettingsProvider extends UniteCreatorViewGeneralSettings{

	/**
	 * draw additional tabs
	 */
	protected function drawAdditionalTabs(){
		parent::drawAdditionalTabs();
		return(false);
		
		?>
			<a data-contentid="uc_tab_developers" href="javascript:void(0)" onfocus="this.blur()"> <?php esc_html_e("Theme Developers", "unlimited-elements-for-elementor")?></a>
		<?php
		
	}
	
	
	/**
	* function for override
	*/
	protected function drawAdditionalTabsContent(){
		
		parent::drawAdditionalTabsContent();
		return(false);
		
		$randomString = UniteFunctionsUC::getRandomString(5);
		
		?>
		<div id="uc_tab_developers" class="uc-tab-content" style="display:none">
			Dear Theme Developer. <br><br>
			
			If you put the Unlimited Elements as part of your theme and want
			the addons to auto install on plugin activation or theme switch, <br>
			please create folder <b>"<?php GlobalsUC::DIR_THEME_ADDONS?>"</b> inside your theme and put the addons import zips there. <br>
			example: <b>wp-content/themes/yourtheme/<?php echo esc_attr(GlobalsUC::DIR_THEME_ADDONS)?></b>
			
			<br><br>
			If you want to put them to another path please copy this code to your theme <b>functions.php</b> file:
			
			<br><br>
			
<textarea cols="80" rows="6" readonly onfocus="this.select()">				
/**
* Set Unlimited Elements addons install folder. 
* example: 'installs/addons' (will be wp-content/themes/installs/addons)
**/
function set_addons_install_path_<?php echo esc_html($randomString)?>($value){
	
	//change the 'yourfolder' to the folder you want
	
	return(&quot;yourfolder&quot;);
}

add_filter(&quot;blox_path_theme_addons&quot;, &quot;set_addons_install_path_<?php echo esc_html($randomString)?>&quot;);
</textarea>
			
		</div>
	
	<?php
	}
	
	
}