|
@@ 359-364 (lines=6) @@
|
| 356 |
|
print '<td class="aircraft_thumbnail">'."\n"; |
| 357 |
|
|
| 358 |
|
if ($spotter_item['image_source'] == 'planespotters') { |
| 359 |
|
if ($spotter_item['image_source_website'] != '') $image_src = $spotter_item['image_source_website']; |
| 360 |
|
else { |
| 361 |
|
$planespotter_url_array = explode("_", $spotter_item['image']); |
| 362 |
|
$planespotter_id = str_replace(".jpg", "", $planespotter_url_array[1]); |
| 363 |
|
$image_src = 'https://www.planespotters.net/Aviation_Photos/photo.show?id='.$planespotter_id; |
| 364 |
|
} |
| 365 |
|
if (isset($spotter_item['airline_name'])) { |
| 366 |
|
print '<a href="'.$image_src.'"><img src="'.preg_replace("/^http:/i","https:",$spotter_item['image_thumbnail']).'" class="img-rounded" data-toggle="popover" title="'.$spotter_item['registration'].' - '.$spotter_item['airline_name'].'" alt="'.$spotter_item['registration'].' - '.$spotter_item['airline_name'].'" data-content="'._("Registration:").' '.$spotter_item['registration'].'<br />'._("Airline:").' '.$spotter_item['airline_name'].'" data-html="true" width="100px" /></a>'."\n".'<div class="thumbnail-copyright">© '.$spotter_item['image_copyright'].'</div>'; |
| 367 |
|
} else { |
|
@@ 396-401 (lines=6) @@
|
| 393 |
|
print '<td class="aircraft_thumbnail">'."\n"; |
| 394 |
|
//print '<a href="'.$globalURL.'/flightid/'.$spotter_item['spotter_id'].'"><img src="'.$spotter_item['image_thumbnail'].'" alt="Click to see more information about this flight" title="Click to see more information about this flight" width="100px" /></a>'; |
| 395 |
|
if ($spotter_item['image_source'] == 'planespotters') { |
| 396 |
|
if ($spotter_item['image_source_website'] != '') $image_src = $spotter_item['image_source_website']; |
| 397 |
|
else { |
| 398 |
|
$planespotter_url_array = explode("_", $spotter_array[0]['image']); |
| 399 |
|
$planespotter_id = str_replace(".jpg", "", $planespotter_url_array[1]); |
| 400 |
|
$image_src = 'https://www.planespotters.net/Aviation_Photos/photo.show?id='.$planespotter_id; |
| 401 |
|
} |
| 402 |
|
if (!isset($spotter_item['airline_name']) && isset($spotter_item['aircraft_name'])) { |
| 403 |
|
print '<a href="'.$image_src.'"><img src="'.preg_replace("/^http:/i","https:",$spotter_item['image_thumbnail']).'" class="img-rounded" data-toggle="popover" title="'.$spotter_item['registration'].' - '.$spotter_item['aircraft_type'].' - '._("Not available").'" alt="'.$spotter_item['registration'].' - '.$spotter_item['aircraft_type'].' - '._("Not available").'" data-content="'._("Registration:").' '.$spotter_item['registration'].'<br />'._("Aircraft:").' '.$spotter_item['aircraft_name'].' ('.$spotter_item['aircraft_type'].')<br />'._("Airline:").' '._("Not available").'<br />'._("Squawk:").' '.$spotter_item['squawk'].'" data-html="true" width="100px" /></a>'."\n".'<div class="thumbnail-copyright">© '.$spotter_item['image_copyright'].'</div>'; |
| 404 |
|
} elseif (!isset($spotter_item['aircraft_name']) && isset($spotter_item['airline_name'])) { |