camera table mix

<?php
	 
	$camera_table_v2 = CFS()->get('camera_table_qq4');

	$heading = CFS()->get('heading_of_table_qq4');
	$key_words = CFS()->get('table_keywords_qq4');
	$back_img = CFS()->get('background_image_qq4');
	$flipsearch_cat = CFS()->get('flipkart_cat_qq4');
	$flipcat_text = "View on Flipkart";
	$flipkart_buy = "Check Price";
	$offer_buy = "Offer";
	
	if ($camera_table_v2) {
		
		
		foreach ($camera_table_v2 as $product_hai) {
			$td_data = $product_hai['new_product_list_qq4'];
			
			if ( $product_hai['h2_heading_qq4'] ) {
				$h2_heading = get_post_meta($post->ID, 'h2_heading_qq4' ,true);
				echo '<h2>'.do_shortcode($h2_heading).'</h2>';
			}
			
			if ( $product_hai['new_product_list_qq4'] ) {
				
				$table_heading = get_post_meta($post->ID, 'heading_of_table_qq4' ,true);
				$table_keywords = get_post_meta($post->ID, 'table_keywords_qq4' ,true);

			echo '<div class="my-list-table" style="margin: 0 0 25px;">';
			echo '<div class="dragscroll" style="margin: 0px 0px 25px; overflow-x: auto; cursor: grab; cursor : -o-grab; cursor : -moz-grab; cursor : -webkit-grab;" itemscope itemtype="http://schema.org/Table">';
			echo '<meta content="'.do_shortcode($table_heading).'" itemprop="about">';
			echo '<meta content="'.do_shortcode($table_keywords).'" itemprop="keywords">';
					echo '<table>';
						echo '<thead class="">';
							echo '<tr>';
								echo '<th content="Quick Specs" itemprop="name">';
									echo 'Quick Specs<br>';
								echo '</th>';
								foreach ($product_hai['new_product_list_qq4'] as $th) {
									if ($th['hide_outdated_qq4'] == false) {
										echo '<th content="'.$th['camera_name_qq4'].'" itemprop="name">';
											if ( $th['alternative_name_qq4'] ) {
												echo '<meta content="'.$th['alternative_name_qq4'].'" itemprop="alternateName">';
											}
											if ( $th['column_position_qq4'] ) {
												echo '<meta content="'.$th['column_position_qq4'].'" itemprop="position">';
											}
											if ( $th['product_description_qq4'] ) {
												echo '<meta content="'.$th['product_description_qq4'].'" itemprop="description">';
											}
											if ( $th['ribbon_title_qq4'] ) {
												echo '<div class="my-sk-ribbon">';
													echo $th['ribbon_title_qq4'];
												echo '</div><br>';
											}
											
											else if (empty($th['ribbon_title_qq4'])) {
												echo '<div class="my-sk-ribbon blank"></div><br>';
											}
											
											if ( ( empty($back_img) || empty($th['back_position_qq4']) ) && $th['product_image_qq4'] ) {
												echo '<div id="" class="crop" itemprop="image">';
												$img_html = wp_get_attachment_image( $th['product_image_qq4'], "", false, array( "itemprop" => "image", "align" => "bottom", "alt" => $th['camera_name_qq4'] ) );
												$img_html = apply_filters( 'bj_lazy_load_html', $img_html );
												echo $img_html;
												echo '</div><br>';
											}

											else if ( $back_img && $th['back_position_qq4']) {
												echo '<div class="crop" itemprop="image" style="width: 95px; background-position: '.$th['back_position_qq4'].'; 
												background-image: url('.$back_img.');" title="'.$th['camera_name_qq4'].'"></div><br>';
											}
											
											echo '<div class="product-title" style="margin-bottom: 5px;">';
												echo $th['camera_name_qq4'];
											echo '</div>';
										echo '</th>';
									}
								}
							echo '</tr>';
						echo '</thead>';
						 
						echo '<tbody>';
						
							echo '<tr>';
								echo '<td>';
									echo "Offer";
								echo '</td>';
								
								foreach ( $product_hai['new_product_list_qq4'] as $tr ) {
									$hide_out = $tr['hide_outdated_qq4'];
									if ($hide_out == false) {
										echo '<td>';
											$product_detail_url = aawp_get_field_value($tr['enter_asin_qq4'], 'url', array( 'tracking_id' => 'sk-price-tag-21' ));
											$x_percent_saved = aawp_get_field_value($tr['enter_asin_qq4'], "percentage_saved");
											
											echo '<div class="no_shrink" itemprop="offers" itemscope itemtype="http://schema.org/Offer">';
												
												if ( $tr['enter_asin_qq4'] ) {
												 echo '<a itemprop="url" href="'.$product_detail_url.'" title="Offer on Amazon" target="_blank" rel="nofollow noopener">';
													echo '<div class="percent-bubble">'; echo $x_percent_saved; echo '<br>Off</div>';
														echo '<span data-aawp-product-id="'.$tr['enter_asin_qq4'].'" 
														class="aawp-button aawp-button--buy aawp-button aawp-button--amazon aawp-button--icon aawp-button--icon-amazon-black" 
														title="View on Amazon">Check Price</span>';
												echo '</a>';
												}
												
												else if ( $tr['amazon_search_qq4'] ) {
												$ama_search_word = str_replace(' ', '+', $tr['amazon_search_qq4']);
												 echo '<a itemprop="url" href="https://www.amazon.in/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords='.$ama_search_word.'&tag=sk-price-tag-21" 
												 class="aawp-button aawp-button--buy aawp-button aawp-button--amazon aawp-button--icon aawp-button--icon-amazon-black"
												 title="Check Avalability on Amazon" target="_blank" rel="nofollow noopener">Check Stock</a>';
												}
												
											echo '</div>';
										echo '</td>';
									}
								}
							echo '</tr>';
							
							
							echo '<tr><td colspan="6"><a class="instantd" target="_blank" rel="nofollow noopener sponsored" href="https://www.amazon.in/b?node=20593600031&tag=menuutha-21" 
										style="font-size: 20px; line-height: 46px;"><mark> Amazon Great Indian Sale</mark> <mark>* 10% Instant Discount</mark></a></td>
									</tr>';
								
							
							echo '<tr>';
								echo '<td>';
									echo '<a href="'.$flipsearch_cat.'" itemprop="url" class="" title="" rel="nofollow" target="_blank">'.$flipcat_text.'</a>';
								echo '</td>';
								
								foreach ( $product_hai['new_product_list_qq4'] as $fk ) {
									$hide_out = $fk['hide_outdated_qq4'];
									if ($hide_out == false) {
										echo '<td>';
											$y_percent_saved = aawp_get_field_value($fk['enter_asin_qq4'], "percentage_saved");
											
											echo '<div class="no_shrink" itemprop="offers" itemscope itemtype="http://schema.org/Offer">';
												
												if ( $fk['flipkart_affiliate_link_qq4'] ) {
													echo '<a href="'.$fk['flipkart_affiliate_link_qq4'].'" 
													itemprop="url" class="sk-button sk-button--buy sk-button sk-button--flipnew sk-button--icon sk-button--icon-flipkart-new" 
													title="View on Flipkart" rel="nofollow" target="_blank">'.$flipkart_buy.'</a>';
												}
											
											else if ( $fk['flip_search_qq4'] ) {
												$flip_search = str_replace(' ', '%20', $fk['flip_search_qq4']);
												echo '<a href="https://dl.flipkart.com/dl/search?q='.$flip_search.'&affid=ani1306&affExtParam1=compare_table&affExtParam2=search_term" 
													itemprop="url" class="sk-button sk-button--buy sk-button sk-button--flipnew sk-button--icon sk-button--icon-flipkart-new" 
													title="Check Availability" rel="nofollow" target="_blank">Check Stock</a>';
											}
											
											echo '</div>';
										echo '</td>';
									}
								}
							echo '</tr>';
							
							
							echo '<tr>';
								echo '<td>';
									echo "Full Reviews";
								echo '</td>';
								
								foreach ( $product_hai['new_product_list_qq4'] as $rvw ) {
									$hide_out = $rvw['hide_outdated_qq4'];
									if ($hide_out == false) {
										echo '<td>';
											
											foreach ($rvw['camera_review_qq4'] as $post_id) {
												if ( $post_id ) {
													$the_post = get_post( $post_id );
													$rvw_text_end = "Full Review";
													echo '<a href="'.get_permalink($post_id).'" rel="nofollow" target="_blank"> 
														<span class="td_btn td_btn_lg td_shadow_btn td_round_btn">'.$rvw['review_text_qq4'].' '.$rvw_text_end.'</span> 
														</a>';
												}
											}
										echo '</td>';
									}
								}
							echo '</tr>';
							
							
								
							echo '<tr>';
								echo '<td>';
									echo "Announced";
								echo '</td>';
								
								foreach ( $product_hai['new_product_list_qq4'] as $fk ) {
									$hide_out = $fk['hide_outdated_qq4'];
									if ($hide_out == false) {
										echo '<td>';
											echo $fk['announce_date_qq4'];
										echo '</td>';
									}
								}
							echo '</tr>';
							
						echo '</tbody>';
						
						/* Platform and memory */

						
						echo '<tbody>';
							echo '<tr>';
								echo '<td>';
									echo "Predecessor";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['predecessor_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$extra_bo = $td['successor_qq4'];
									$hide_bo = $td['hide_outdated_qq4'];
									if ($extra_bo && ($hide_bo == false)) {
										echo '<tr>';
											echo '<td>';
												echo "Successor";
											echo '</td>';
										
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
												
												$hide_out = $td['hide_outdated_qq4'];
												if ($hide_out == false) {
												echo '<td>';
													echo $td['successor_qq4'];
												echo '</td>';
												}
											}
											
										echo '</tr>';
									} 
									if( $extra_bo ) break; 
									elseif( empty($extra_bo) ) continue;
								}
							
							echo '<tr>';
								echo '<td>';
									echo "Sensor";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['sensor_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Anti Aliasing Filter";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['anti_aliasing_filter_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr valign="top">';
								echo '<td>';
									echo "Autofocus";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['autofocus_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Continuous Shooting";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['fps_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "ISO";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['iso_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
						
						/*Display Screen*/
						
							echo '<tr>';
								echo '<td>';
									echo "Image Processor";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['image_processor_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Display Screen";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['screen_size_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Connectivity";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['connectivity_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Battery Life";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['battery_life_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Max Shutter";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['max_shutter_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['shutter_life_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Shutter Life";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['shutter_life_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['image_stabilization_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Image Stabilization";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['image_stabilization_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							echo '<tr valign="top">';
								echo '<td>';
									echo "Video Resolution";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['video_resolution_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Timelapse Recording";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['timelapse_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['8k_timelapse_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "8k Timelapse Mode";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['8k_timelapse_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['remote_control_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Remote Control";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['remote_control_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
						echo '</tbody>';
						
						/* Connectivity */
						
						echo '<thead class="header expand">';
							echo '<tr>';
							echo '<th id="shide" class="table_header sign" colspan="15">Read More..</th>';
							echo '</tr>';
						echo '</thead>';

						
						echo '<tbody class="initiallyhidden">';
						
							echo '<tr>';
								echo '<td>';
									echo "Dimension";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['dimension_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
						
							echo '<tr>';
								echo '<td>';
									echo "Weight";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['weight_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Lens Mount";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['lens_mount_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "No' of Lens Available";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['no_of_lens_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['illuminated_buttons_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Top LCD Display</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['illuminated_buttons_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['top_lcd_display_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Top LCD Display</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['top_lcd_display_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							echo '<tr>';
								echo '<td>';
									echo "Ports";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['ports_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['view_finder_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "View Finder";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['view_finder_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							echo '<tr>';
								echo '<td>';
									echo "Color Depth";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['color_depth_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "Dynamic Range";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['dynamic_range_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "RAW Support";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['raw_support_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['ae_bracketing_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr valign="top">';
										echo '<td>';
											echo "AE Bracketing: <em>Useful for tough lighting conditions and HDR</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['ae_bracketing_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['focus_bracketing_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Focus Bracketing: <em>Take multiple photos shifting focus point</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['focus_bracketing_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['autofocus_at_f8_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Autofocus at f/8 aperture: <em>Autofocus with teleconverters</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['autofocus_at_f8_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['min_focus_sensitivity_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Min Focus Sensitivity: <em>Autofocus in lower light </em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['min_focus_sensitivity_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['face_detection_focus_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr valign="top">';
										echo '<td>';
											echo "Face Detection Focus: <em>very handy for portraits</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['face_detection_focus_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							echo '<tr>';
								echo '<td>';
									echo "Built-in Flash";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['built_in_flash_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							echo '<tr>';
								echo '<td>';
									echo "External Flash Shoe";
								echo '</td>';
								
								foreach ($product_hai['new_product_list_qq4'] as $td) {
									$hide_out = $td['hide_outdated_qq4'];
									if ($hide_out == false) {
									echo '<td>';
										echo $td['external_flash_shoe_qq4'];
									echo '</td>';
									}
								}
							echo '</tr>';
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['storage_slot_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Storage Slot";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['storage_slot_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['uhs_memory_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr valign="top">';
										echo '<td>';
											echo "Support for UHS Memory Cards: <em>Read/Write in Ultra High Speeds</em>";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['uhs_memory_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}
							
							foreach ($product_hai['new_product_list_qq4'] as $td) {
								$extra_bo = $td['other_features_qq4'];
								$hide_bo = $td['hide_outdated_qq4'];
								if ($extra_bo && ($hide_bo == false)) {
									echo '<tr>';
										echo '<td>';
											echo "Extra";
										echo '</td>';
										
										foreach ($product_hai['new_product_list_qq4'] as $td) {
											
											$hide_out = $td['hide_outdated_qq4'];
											if ($hide_out == false) {
											echo '<td>';
												echo $td['other_features_qq4'];
											echo '</td>';
											}
										}
									echo '</tr>';
								}
								if( $extra_bo ) break; 
								elseif( empty($extra_bo) ) continue;
							}						
							
						echo '</tbody>';
					
					

					echo '</table>';
			echo '</div>';
			echo '</div>';
			}
		}
	}

?>