<?php
global $wpdb, $post, $opt_themes; 
?>

<div class="col-12 col-md-6 mb-4">
<a class="position-relative archive-post--remove app-container" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<div class="flex-shrink-0">
<img width="65" height="65" src="<?php if (get_the_post_thumbnail( get_the_ID() )) { echo wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' )[0]; } elseif(get_post_meta( get_the_ID(), 'wp_poster_GP', true )) { echo get_post_meta( get_the_ID(), 'wp_poster_GP', true ); } else { echo $opt_themes['no_img']['url']; } ?>" class="app-logo " alt="<?php the_title(); ?>" >  
</div>
<div class="app-info">
<h3 class="h5 font-weight-semibold w-100 app-title"><?php if($opt_themes['app_name']){ if(get_post_meta( get_the_ID(), 'wp_title_GP', true)){ echo get_post_meta( get_the_ID(), 'wp_title_GP', true); } else { the_title(); }} else { the_title(); } ?></h3>
<div class="text-truncate text-muted app-desc">
<?php if(get_post_meta( $post->ID, 'wp_mods', true )) { ?>
<span class="clamp-1 w-100"><?php echo trim(strip_tags(limit_words(get_post_meta( $post->ID, 'wp_mods', true ), '3'))) ?></span>
<?php } ?>
<div class="Stars" style="--rating:<?php if(get_post_meta( $post->ID, 'wp_rated_GP', true )){ echo get_post_meta( $post->ID, 'wp_rated_GP', true ); } else { ?>0<?php } ?>;" aria-label="Rating of this product is <?php if(get_post_meta( $post->ID, 'wp_rated_GP', true )){ echo get_post_meta( $post->ID, 'wp_rated_GP', true ); } else { ?>0<?php } ?> out of 5">
<div class="rmp-results-widget__avg-rating"><span class="js-rmp-avg-rating"><?php echo get_post_meta( $post->ID, 'wp_rated_GP', true ); ?></span>  </div>
<div class="rmp-results-widget__vote-count">(<span class="js-rmp-vote-count"><?php echo get_post_meta( $post->ID, 'wp_ratings_GP', true ); ?></span>)</div>
</div>
 
</div>
</div>
<div class="app-get">
<span class="get-button"><?php _e($opt_themes['mdr_text_get'], TEXT_DOMAIN); ?></span>
<span class="app-version text-truncate"> <svg class="mr-1" xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-7.5 3.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11.5z"></path>
</svg> <?php if (get_post_meta( $post->ID, 'wp_version_GP', true )) { echo trim(get_post_meta( $post->ID, 'wp_version_GP', true )); } ?> </span>
</div>
</a>
</div>