<?php
global $wpdb, $post, $opt_themes; 
?>
<div class="slide-item">
	<div class="vid poster">
	<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
	<img class="rounded" src="<?php if(get_post_meta( get_the_ID(), 'background_images', true)){ echo wp_get_attachment_image_src(get_post_meta( get_the_ID(), 'background_images', true),'full')[0]; } elseif(get_post_meta( get_the_ID(), 'wp_backgrounds_GP', true )){ echo get_post_meta( get_the_ID(), 'wp_backgrounds_GP', true ); } elseif(get_post_meta( get_the_ID(), 'wp_images_GP', true )){ echo get_post_meta( get_the_ID(), 'wp_images_GP', true )[mt_rand(0, 3)]; } else { echo $opt_themes['no_img']['url']; } ?>" alt="<?php the_title(); ?>" style="width:100%;  min-height: 100%; min-width: 100%; height: 200px;">
	</a>
	</div>
	<div class="box-app">
	<a href="<?php the_permalink() ?>">
	<dl class="item">
	<dt class="ic-app">
	<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(); ?>" >
	</dt>
	<dd class="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(); } ?> <?php if( get_post_meta( get_the_ID(), 'wp_version_GP', true ) ) { echo 'v'.get_post_meta( get_the_ID(), 'wp_version_GP', true ); }  ?></dd>
	<dd class="cat"></dd>
	<dd class="info-app" style='white-space: nowrap;'>
	<span class="size" style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden;width: 260px;"> 
	<?php if (get_post_meta( get_the_ID(), 'wp_mods', true )) { ?>
	<?php _e($opt_themes['exthemes_MODAPK'], TEXT_DOMAIN); ?> <?php echo trim(strip_tags(get_post_meta( get_the_ID(), 'wp_mods', true ))) ?> 
	<?php } else { ?>	
	<?php
	$i = 0;
	foreach((get_the_category()) as $cat) {
	echo ''.$cat->cat_name.'';
	if (++$i == 1) break;
	}
	?>
	<?php } ?>	
	</span>
	</dd>
	</dl>
	</a>
	</div>
</div>