HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/diasporameetsafrica.com/wp-content/themes/DA10/framework/design/text/icon179.php
<?php
 
add_filter( 'ppt_blocks_args', 	array('block_icon179',  'data') );
add_action( 'icon179',  		array('block_icon179', 'output' ) );
add_action( 'icon179-css',  	array('block_icon179', 'css' ) );
add_action( 'icon179-js',  	array('block_icon179', 'js' ) );

class block_icon179 {

	function __construct(){}		

	public static function data($a){  global $CORE;
  
		$a['icon179'] = array(
			"name" 		=> "Style 179",
			"image"		=> "icon179.jpg",
			"cat"		=> array("text","icon"),
			"desc" 		=> "", 
			"order" 	=> 179, 
			"widget" => "ppt-icon",	
			"data" 	=> array( ),	
			
			"defaults" => array( ), 
			
					
		);		
		
		return $a;
	
	} public static function output(){ global $CORE, $text_settings;
	 	
		 
		 // ALL DEFAULT FIELDS
		 $df = ppt_theme_blocks_defaults("text"); 
		  
		$cc = array(
		 
		 	"image1" =>  DEMO_IMG_PATH."icons/a1.jpg",
			"image2" => DEMO_IMG_PATH."icons/a2.jpg",
			"image3" => DEMO_IMG_PATH."icons/a3.jpg",
			"image4" => DEMO_IMG_PATH."icons/a4.jpg",
			
			"btn1" => 1,
			"btn2" => 1,		 
		 );		
		$df = array_merge($df, $cc);
		 
		// APPLY ELEMENTOR
		if(!empty($text_settings)){
			foreach($df as $k => $v){				
				if(isset($text_settings[$k]) && $text_settings[$k] != "" ){
					$df[$k] = $text_settings[$k];
				}
			}		
		}   
		 
	$text = array(
		1 => "Data Science",
		2 => "Art & Design",
		3 => "Lifestyle",
		4 => "Marketing",
		5 => "Fun & Challenging",
		6 => "Health & Fitness",
		7 => "Major or Minor",
		8 => "Academics", 
	);
	
	$icons = array(
		1 => "fa-life-ring",
		2 => "fa-star",
		3 => "fa-sync",
		4 => "fa-lock",
		5 => "fa-book",
		6 => "fa-car",
		7 => "fa-tree",
		8 => "fa-cog", 
	);
 
	ob_start();
	
	?>

<section class="section-60">
  <div class="container">
 
 
        
<div class="row">



<div class="col-md-6 mb-4">

<div class="pr-lg-5">

<div class="text-700 mb-4 " data-ppt-title>Our Featured Services</div>
 
<div data-ppt-subtitle class="mb-4 fs-lg text-700">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>

<div data-ppt-subtitle class="mb-4">Nulla vitae elit libero, a pharetra augue. Donec id elit non mi porta gravida at eget. Nulla vitae elit libero, a pharetra augue. Donec id elit non mi porta gravida at eget. Nulla vitae elit libero, a pharetra augue. Donec id elit non mi porta gravida at eget.</div>


          <?php if(THEME_KEY == "sp"){ ?>
        
          <?php if($df['btn1']){ ?>
          <a href="<?php echo home_url(); ?>/?s=" class="btn-lg btn-primary  mt-2" data-ppt-btn data-ppt-btn-txt><?php echo $CORE->LAYOUT("get_placeholder_text_new", array("button", "start_search" ) ); ?></a>
          <?php } ?>
         
        <?php }else{ ?>
        
        <?php if($df['btn1']){ ?>
        <a href="<?php echo _ppt(array('links','add')); ?>" class="btn-lg btn-primary  mt-2" data-ppt-btn data-ppt-btn-txt><?php echo $CORE->LAYOUT("get_placeholder_text_new", array("button", "addnew" ) ); ?></a>
        <?php } ?>
        <?php if($df['btn2']){ ?>
        <a href="<?php echo home_url(); ?>/?s=" class="btn-lg btn-primary  mt-2" data-ppt-btn data-ppt-btn2-txt><?php echo $CORE->LAYOUT("get_placeholder_text_new", array("button", "start_search" ) ); ?></a>
        <?php } ?>
        
        <?php } ?>

</div>

</div>
 

 <div class="col-md-6">
        <div class="row">
         
         <?php  $i=1; while($i < 5){ ?>
          <div class="col-md-6 mb-4">
          
            <div class="p-4 shadow-sm bg-white rounded-lg">
            	
                
                <div ppt-flex-between>
                
                <div data-ppt-f1image class=" mb-4"><span class="fal <?php echo $icons[$i]; ?> fa-4x text-primary" data-ppt-f1icon>&nbsp;</span></div>
                
                <div class="fs-xl text-700 text-light">0<?php echo $i; ?></div>
                
                </div>
                
                <h5 class="mb-4" data-ppt-f1a><?php echo $text[$i]; ?></h5>
                <p class="mb-0" data-ppt-f1b>Nulla vitae elit libero, a pharetra augue. Donec id elit non mi porta gravida at eget.</p>
             
            </div>
           
          </div>
      <?php $i++; } ?>
           
           
 
        </div>
      
      </div> 

</div>
 
 
 
  </div>
</section>
<?php
 

		$output = ob_get_contents();
		ob_end_clean();
echo ppt_theme_block_output($output, $text_settings, array("text", "icon179"));
	
	}
		public static function css(){
		return "";
		ob_start(); 
		$output = ob_get_contents();
		ob_end_clean();
		echo $output;
		}	
		public static function js(){
		return "";
		ob_start();
		?>
<?php	
		$output = ob_get_contents();
		ob_end_clean();
		echo $output;
		}	
}

?>