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/author-comments.php
<?php
/* 
* Theme: PREMIUMPRESS CORE FRAMEWORK FILE
* Url: www.premiumpress.com
* Author: Mark Fail
*
* THIS FILE WILL BE UPDATED WITH EVERY UPDATE
* IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
*
* http://codex.wordpress.org/Child_Themes
*/
if (!defined('THEME_VERSION')) {	header('HTTP/1.0 403 Forbidden'); exit; }

global $CORE, $userdata, $authorID;
$args = array(
	 
	'number' => 10,
	'post_author__in' => array($authorID),
	'meta_query' => array(			 
		array(
			'key'		=> 'feedback',	
			'compare'	=>'NOT EXISTS'	
			 
		),			 
	),
		
);
// GET USER FEEDBACK
$c = new WP_Comment_Query($args); 
$comments = $c->comments;
 

if(!empty($comments)){ 
?>
 
 
<div class="ppt-comments">
   <?php foreach($comments as $comment){ 
   
   
		global $settings;
		
		$settings = array(
		
			"ID" => $comment->comment_ID,
			"desc" => strip_tags($comment->comment_content), 
			"date" => $comment->comment_date, 			
			"author" => $comment->user_id, 
			"author_name" => $CORE->USER("get_display_name",$comment->user_id), 			
			"pid" => $comment->comment_post_ID,			
			
		);		 
		
		// DISPLAY FEEDBACK 
 		_ppt_template( 'content', 'feedback' );
   
   } ?>
</div>
<?php }else{ ?>
<div class="bg-light p-4 font-weight-bold text-center">
            <div><?php echo __("No comments left.","premiumpress") ?></div>
            </div>
<?php } ?>