<?php 
global $opt_themes;  
if($opt_themes['debug_on']){
?>
<div id="debug"> 
<?php

ini_set('display_errors', ERRORS);   
if ($gets_data) { 	
global $opt_themes;  
$urlX							= $url;
$parse							= parse_url($urlX);
$urlX1							= preg_replace("/^([a-zA-Z0-9].*\.)?([a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z.]{2,})$/", '$2', $parse['host']);
$language						= $opt_themes['ex_themes_extractor_apk_language_']; 
$arr['languages']				= $language;	 
?>

<style>
th.has-text-align-left {text-transform: capitalize;padding:10px;}
td.has-text-align-left {padding:10px 0px ;}
table.app-box-info ul, table.app-box-info ol {
  margin: unset; 
}
table.app-box-info ol > li { 
  padding: 0;
  display:list-item; 
  list-style-type: square;
}
</style>
<div style="clear:both"></div>  
 

<?php
if($gets_data['images_GP']){
$images_GP	= $gets_data['images_GP'];                    
$nb			= 0;
?> 
  
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css'>
  
<style>
img.gallery {height: 100%;object-fit: cover;}.owl-nav button {position: absolute;top: 50%;background-color: #000;color: #fff;margin: 0;transition: all 0.3s ease-in-out;}.owl-nav button.owl-prev {left: 0;}.owl-nav button.owl-next {right: 0;}.owl-dots {text-align: center;padding-top: 15px;}.owl-dots button.owl-dot {width: 15px;height: 15px;border-radius: 50%;display: inline-block;background: #ccc;margin: 0 3px;}.owl-dots button.owl-dot.active {background-color: #000;}.owl-dots button.owl-dot:focus {outline: none;}.owl-nav button {position: absolute;top: 50%;transform: translateY(-50%);background: rgba(255, 255, 255, 0.38) !important;}span.gl {font-size: 70px;position: relative;top: -5px;}.owl-nav button:focus {outline: none;}.owl-item {height: 200px !important;display: flex;}.item.gl {width: 100%;}
</style>

<div class="owl-slider">
<div id="carousel" class="owl-carousel">

<?php
foreach ( (array) $images_GP as $key => $img ) {  ?>
<div class="item gl"><img class="gallery" src="<?php echo $img; ?>" alt="Gallery <?php echo $nb; ?>"></div>   
<?php $nb++; } ?>
	
</div>
</div>
 
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js'></script>
<script id="rendered-js" >
jQuery("#carousel").owlCarousel({autoplay:true,rewind:false,margin:20,loop:true,responsiveClass:true,autoHeight:true,autoplayTimeout:7000,smartSpeed:800,nav:true,navText:['<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>','<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>'],responsive:{0:{items:1},600:{items:3},1024:{items:4},1366:{items:4}}});
</script>
<?php } ?>


<div style="clear:both"></div>

 
<div class="play_menu">
	<h3 style="color:black;text-align: center;font-size: x-large!important;">Showing Information "<b style="font-size: <?php echo font_size; ?> !important;color: <?php echo colors_url; ?> !important; font-family: josefin sans,Sans-serif !important;  !important; font-weight: 700 !important; line-height: 1.4em !important; letter-spacing: .2px !important; text-shadow: 1px 1px 1px <?php echo colors2; ?> !important;"><?php print_r( $gets_data['title_GP']) ?></b>" from <b style="font-size: <?php echo font_size; ?> !important;color: <?php echo colors_url; ?> !important; font-family: josefin sans,Sans-serif !important;  !important; font-weight: 700 !important; line-height: 1.4em !important; letter-spacing: .2px !important; text-shadow: 1px 1px 1px <?php echo colors2; ?> !important;"><a href='<?php echo $url; ?>' target="_blank"  style="text-transform:uppercase!important;color: <?php echo colors_url; ?>;"><?php echo $urlX1; ?></a></b>
	</h3>
</div>
 
<figure class="wp-block-table play_menu">
			<table class="has-fixed-layout app-box-info">
			<tbody>	
	
			<?php if ($gets_data['title_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					App Name 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['title_GP']) ?>
				</td>
			</tr>
			<?php } ?>

			<?php if ($gets_data['GP_ID']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Package ID 
				</th>
				<td class="has-text-align-left truncate">
					<a href="https://play.google.com/store/apps/details?id=<?php print_r( $gets_data['GP_ID']) ?>&hl=<?php echo $language; ?>" rel="noopener" target="_blank"><?php print_r( $gets_data['GP_ID']) ?> 
					</a> 
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['youtube_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Youtube id 
				</th>
				<td class="has-text-align-left truncate">
					<a href='https://www.youtube.com/watch?v=<?php print_r( $gets_data['youtube_GP']) ?>' target='_blank'><?php print_r( $gets_data['youtube_GP']) ?></a>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['genres_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Category 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['genres_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['version_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Version 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['version_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			
			<?php if ($gets_data['sizes_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Size 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['sizes_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['developers_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Developers 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['developers_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['installs_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					total Installs 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['installs_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['updates_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Date Updated on
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['updates_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['requires_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Requires Android
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['requires_GP']) ?>
				</td>
			</tr>
			<?php } ?>			 
			<?php if ($gets_data['rated_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Vote Rate 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['rated_GP']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['ratings_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Total Rating 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['ratings_GP']) ?>
				</td>
			</tr>
			<?php } ?> 
			
			<?php if ($gets_data['paid_GP1']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Paid 1
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['paid_GP1']) ?>
				</td>
			</tr>
			<?php } ?>
			<?php if ($gets_data['paid_GP2']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Paid 2
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['paid_GP2']) ?>
				</td>
			</tr>
			<?php } ?>	
			 
			<?php if ($gets_data['whatnews_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					What News  
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['whatnews_GP']) ?>
				</td>
			</tr>
			<?php } ?>			
			<?php if ($gets_data['desck_GP']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					short Desc 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['desck_GP']) ?>
				</td>
			</tr>
			<?php } ?>	
				
			<?php if ($gets_data['mods']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					short mods 
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['mods']) ?>
				</td>
			</tr>
			<?php } ?>	
			
			<?php if ($gets_data['full_mod']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					full mod
				</th>
				<td class="has-text-align-left truncate">
					<?php print_r( $gets_data['full_mod']) ?>
				</td>
			</tr>
			<?php } ?>	
			
			
			</tbody>
			</table>
			</figure>
 
 
<div style="clear:both"></div>
<div class="play_menu" >
	<h3 style="color:black;text-align: center;font-size: x-large!important;">List of Download Link  </h3>
</div>

<figure class="wp-block-table play_menu">
			<table class="has-fixed-layout app-box-info">
			<tbody>		
			<?php if ($gets_data['download_links_page']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					download html page 
				</th>
				
				<td class="has-text-align-left truncates">
				<ol>
				<li class="has-text-align-left truncates"><a href="<?php print_r( $gets_data['download_links_page']) ?>" rel="noopener" target="_blank"><?php print_r( $gets_data['download_links_page']) ?></a></li>
				</ol>	
				</td>
			</tr>
			<?php } ?>		 
			<?php if ($gets_data['downloadlink']) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					link download 
				</th>
				<td class="has-text-align-left truncates">
				<ol>
				<li class="has-text-align-left truncates"><?php print_r( $gets_data['downloadlink']) ?></li>
				</ol>	
				</td>
			</tr>
			<?php } ?>	 	
	
			<?php
			$downloadlinks_gma	= $gets_data['downloadlinks_gma'];   
			if ($downloadlinks_gma) { ?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					download links html page  
				</th>
				
				<td class="has-text-align-left truncates">
				<ol>
				<?php
				foreach ( (array) $downloadlinks_gma as $key => $download_link_gma ) {
				?>
				<li class="has-text-align-left truncates"><?php echo $download_link_gma; ?></li>
				<?php } ?>
				</ol>
				</td>
			 
			</tr>
			<?php } ?>  	
 

			<?php
			$count		= count($gets_data['downloadlinks_gma']);
			for ($i = 0; $i < $count; $i++) { 
			if ( !empty($gets_data['downloadlink_gma_'[$i]]) ) {
			$get_link_[$i]			= $gets_data['downloadlink_gma_'[$i]];  
			} else {
			$get_link_[$i]			= $gets_data['downloadlinks_gma'][$i];  
			}
			$get_name_[$i]			= $gets_data['name_downloadlinks_gma'][$i];  
			$get_size_[$i]			= $gets_data['size_downloadlinks_gma'][$i];  
			$get_type_[$i]			= $gets_data['types_downloadlinks_gma'][$i];  
			$get_note_[$i]			= $gets_data['notes_downloadlinks_gma'][$i];  
			?>
			<tr class="apkextractor" >
				<th class="has-text-align-left has-small-font-size has-cyan-bluish-gray-color">
					Link <b style="color:dodgerblue;">#<?php echo $i; ?></b>
				</th>
				<td class="has-text-align-left truncates">
				<ol>
				<li class="has-text-align-left truncates">
				<b style="color:dodgerblue;">name link</b> : <a href="<?php print_r( $get_link_[$i]) ?>" rel="noopener" target="_blank"><?php echo $get_name_[$i]; ?></a>
				<br> 
				<?php if ( !empty($get_size_[$i]) ) { ?>
				<b style="color:dodgerblue;">size</b> : <?php echo $get_size_[$i]; ?> <br> 
				<?php } if ( !empty($get_type_[$i]) ) { ?>
				<b style="color:dodgerblue;">type</b> : <?php echo $get_type_[$i]; ?> <br> 
				<?php } if ( !empty($get_note_[$i]) ) { ?>
				<b style="color:dodgerblue;">note</b> : <?php echo $get_note_[$i]; ?>  
				<?php } ?> 
				</li>
				</ol>	
				</td>
			</tr>
			<?php } ?> 

			 
			
		</tbody>
	</table>

</figure>

<div style="clear:both"></div>
<div class="play_menu" >
	<h3 style="color:black;text-align: center;font-size: x-large!important;">Full Description " <?php print_r( $gets_data['title_GP']) ?> " from <b><a href='<?php echo $url; ?>' target="_blank"  style="text-transform:uppercase!important;color: <?php echo colors_url; ?>;"><?php echo $urlX1; ?></a></b>	</h3>
</div>
 

<div class="play_menu" >
<?php wp_editor(($gets_data['article_content']), 'article_content', 
	array(
		'textarea_name' => 'article_content',
		'wpautop' => true,
		'media_buttons' => false, 
		'tabindex' => 1, 
		'textarea_rows' => 15, 
		'tinymce'       => array(
			'toolbar1'      => 'bold, italic, underline, link, bullist, numlist,strikethrough,blockquote,forecolor,undo,redo,',
			'toolbar2'      => '',
			'toolbar3'      => '',  
		), 				
	)); 
?>
</div>
<br> 
<?php }  ?>
<script> 
$(function(){
   $("a.toggle.dt-app-tag").click(function () {
      $(this).text(function(i, text){
          return text === "Show Debug" ? "Hide Debug" : "Show Debug";
      })
   });
})
$(function(){
   $("li a.toggle").click(function () {
      $(this).text(function(i, text){
          return text === "Show Debug" ? "Hide Debug" : "Show Debug";
      })
   });
})
</script>
</div>
<?php } ?>