<?php 
if ( $data['title_GP'] && ! is_wp_error( $data['title_GP'] ) ) 
{
?>
<link rel="stylesheet" href="<?php echo EX_THEMES_URI; ?>/libs/addons/assets/css/result.css">  
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css">

<?php
$version	= $data['version_gps'] ? 'v.'.$data['version_gps'] : 'v.'.$data['version_sc'];
$genre		= $data['genres_GP'] ? $data['genres_GP'] : $data['genre_sc'];
$developer	= $data['developers_GP'] ? $data['developers_GP'] : $data['developers_GP'];
$desck		= $data['desck_GP'] ? $data['desck_GP'] : $data['summary_sc'];
$update		= $data['updates_GP'] ? $data['updates_GP'] : $data['updated_sc'];
$title		= $data['title_GP'] ? $data['title_GP'] : $data['app_name'];
?> 

<div class="-app-card-container">
	<div class="app-card">

	<div class="card-header">
		<a class="app-icon" href="<?php echo $urlX; ?>" target="_blank" >
		<img src="<?php echo $image_url; ?>" class="lazy loaded" width="70" height="70">
		</a>

		<div class="app-info">

		<div class="app-name">
			<a class="app-name-link" href="post.php?post=<?php echo $post_id; ?>&action=edit" target="_blank" ><?php echo $title; ?> - <b><?php echo $version; ?></b></a>
		</div>

		<div class="app-details">
			<div class="app-stars"><span class="stars-score" style="width: <?php echo mt_rand(50,90); ?>%"></span></div>
			<span class="delimiter"></span>
			<a class="app-author" style="cursor: pointer;"><?php echo $developer; ?></a>
		</div>
		<p class="app-desc">
		<?php echo trim(strip_tags($desck)); ?> - <b>Updates on <?php echo trim(strip_tags($update)); ?></b>
		</p>

		<p class="app-tags">
			<a class="dt-app-tag" style="cursor: pointer;"><?php echo $data['p_category']; ?></a>
			<a class="dt-app-tag" style="cursor: pointer;"><?php echo $genre; ?></a>
		</p>

		</div>
	</div>
	 
	</div>
</div>
  
<div class="alert alert-success">
    <button type="button" data-dismiss="alert" aria-hidden="true" class="close">×</button>
    <div class="icon hidden-xs">
		<img src="<?php echo $image_url; ?>" width="75" height="75">
    </div>
    <h3><?php echo $title; ?></h3>  
	<a href="<?php echo $urlX; ?>" target="_blank">view</a> - 
	<a href="post.php?post=<?php echo $post_id; ?>&action=edit" target="_blank">edit</a>
</div>  
  

<?php } ?>