• File: settings.php
  • Full Path: /home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/wp-content/plugins/unlimited-elements-for-elementor/views/templates/settings.php
  • Date Modified: 07/17/2025 6:16 PM
  • File size: 2.41 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?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;

	
	$sapIDPrefix = "uc_tab_";
?>
<div class="content_wrapper unite-content-wrapper">	

	<div id="uc_tabs" class="uc-tabs">
		<?php 
			$isFirstTab = true;
			foreach($arrSaps as $sap):

				$isHidden = UniteFunctionsUC::getVal($sap, "hidden");
				$isHidden = UniteFunctionsUC::strToBool($isHidden);
							
				$sapName = $sap["name"];
				$sapID = $sapIDPrefix.$sapName;
				$class = "";
				if($isFirstTab == true)
					$class = "uc-tab-selected";
				
				$text = $sap["text"];
				
				$isFirstTab = false;
				
				$style = "";
				
				if($isHidden == true)
					$style = "style='display:none'";
					
		?>
		
			<a id="<?php echo esc_attr($sapID)?>_tablink" data-name="<?php echo esc_attr($sapName)?>" data-contentid="<?php echo esc_attr($sapID)?>" class="<?php echo esc_attr($class)?>" href="javascript:void(0)" onfocus="this.blur()" <?php 
				uelm_echo( $style ); ?>> <?php echo esc_html($text)?></a>
			
		<?php endforeach?>
		
		<?php $this->drawAdditionalTabs(); ?>
		
		<div class="unite-clear"></div>
	</div>
	
	<div id="uc_tab_contents" class="uc-tabs-content-wrapper">
		
		<?php $objOutput->drawWrapperStart()?>
		
		<form name="<?php echo esc_attr($formID)?>" id="<?php echo esc_attr($formID)?>">
		
			<?php 
			$isFirstTab = true;
			
			foreach($arrSaps as $sapKey=>$sap):

			    $sapName = $sap["name"];
				
				$sapID = $sapIDPrefix.$sapName;
				
				$style = "style='display:none'";
				if($isFirstTab == true)
					$style = "";
				
				$isFirstTab = false;
				
			?>
			
			<div id="<?php echo esc_attr($sapID)?>" class="uc-tab-content" <?php 
				uelm_echo( $style ); ?> >
				<?php
				
				$objOutput->drawSettings($sapKey);
				
				$this->drawSaveSettingsButton($sapID)?>
				
			</div>
			
			
			<?php endforeach?>
			
		</form>
		
		<?php $objOutput->drawWrapperEnd()?>
		
		
		<?php $this->drawAdditionalTabsContent() ?>
		
	</div>
	
</div>	

<?php
$script = 'jQuery(document).ready(function(){
		var objAdmin = new UniteCreatorAdmin_GeneralSettings();
		objAdmin.initView("' . ( $this->saveAction ) . '");
	});';
	
UniteProviderFunctionsUC::printCustomScript($script, true);