<?php

	global $wpdb, $post, $opt_themes; 
	?>
	
	<div id="listpost" class="col-12 col-md-6 mb-4  post-id-<?php echo get_the_ID();?> post-view-count-<?= ex_themes_get_post_view_alts(); ?>">
	<a class="d-flex position-relative archive-post" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
	<div class="flex-shrink-0 mr-2" style="width: 4rem;">
	 
	<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="rounded " alt="<?php the_title(); ?>" >
	 
	</div>
	<div style="min-width: 0;">
	<h3 class="h5 font-weight-semibold text-truncate text-primary w-100"><?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">
	<svg class="svg-4 align-middle mr-1" fill="var(--color_svg)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"></path></svg>
	<span class="align-middle"><?php if (get_post_meta( $post->ID, 'wp_version_GP', true )) { echo trim(get_post_meta( $post->ID, 'wp_version_GP', true )); } ?></span>
	<span class="align-middle"> + </span>
	<span class="align-middle mt-1"><?php if (get_post_meta( $post->ID, 'wp_mods', true )) { ?><span class="text-truncate"><?php _e($opt_themes['exthemes_MODAPK'], TEXT_DOMAIN); ?>&nbsp;<?php echo trim(strip_tags(get_post_meta( $post->ID, 'wp_mods', true ))) ?></span><?php } else { ?><span class="text-truncate">&nbsp;<?php _e('Original APK', TEXT_DOMAIN); ?></span><?php } ?></span>
	</div>
	<?php if (shortcode_exists( 'ratemypost-result' )) { ?>
	<div class="update-today__rate">
	<?php echo do_shortcode( '[ratemypost-result]' ); ?>
	</div>
	<?php } ?>
	</div>
	</a>
	</div>
	 
	 