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

global $CORE, $CORE_UI, $userdata;

 



$themes = array("at","ct","cm","dl","dt","da","es","ll","ph","pj","mj","rt","sp","so","vt","jb"); //"cp",
foreach($themes as $t){

	$GLOBALS['TEST_THEME_KEY'] = $t;

	echo "<span class='mr-3'>".$t."</span>";

   // ADMIN PREVIEW
   if(!isset($post->ID)){
	$post = new stdClass();
	$post->ID 			= 1;
	$post->post_title 	= "This is a sample title."; 
	$post->post_author 	= 1; 
	$post->post_excerpt = "";
	$post->post_content = "";
	$post->comment_count = 0;
	$post->thistheme = THEME_KEY;
	$post->carddata = "";
	}

	$fieldsData = ppt_theme_card_data('defaults');

	$fieldsData = $CORE->multisort($fieldsData, array('order'));

 

?>
 
<div class="row">

	<div class="col-6">

	<div class="font-weight-bold">Available</div>

	<?php foreach($fieldsData as $k => $d){ ?>

		{<?php echo $k; ?>}  

	<?php } ?>

	</div>

	<div class="col-6">

	<div class="font-weight-bold">Default</div>


	<?php foreach($fieldsData as $k => $d){ ?>

		<?php if(isset($d['show']) && is_array($d['show']) && in_array("single_short", $d['show'])){   ?>

			{<?php echo $k; ?>} 

		<?php } ?>

	<?php } ?>

	<?php //_ppt_template( 'single/single-subtitle' ); ?>

	</div>

</div>
<hr>
<?php

}








	ob_start();
_ppt_template( 'single/single-content-data-subtitle' );
$author = ob_get_contents();
ob_end_clean();  ;
 
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
 
ob_start();

echo $author;

$output = ob_get_contents();
$output = preg_replace('~>\s+<~', '><',$output);
ob_end_clean(); 
 
$menu[] = array(

	"name" => "Subtitle Unstyled",
	"desc" => "single/single-content-data-subtitle",
	"data" => $output,
);

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
 
ob_start();
?>

<nav ppt-nav class="d-flex border-bottom pb-1 mb-3 fs-6">
<?php echo $author; ?>
</nav>
<?php

$output = ob_get_contents();
$output = preg_replace('~>\s+<~', '><',$output);
ob_end_clean(); 
 
$menu[] = array(

	"name" => "Subtitle Styled",
	"desc" => "single/single-subtitle",
	"data" => $output,
);
 
 
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
_docsSection($menu);
?>