';
$output .= '!['.$photo['title'].' '.$photo['title'].']('.$file.')
';
if (isset($photo['license'])) {
if ($photo['license'] == '1') {
$license = '
Attribution-NonCommercial-ShareAlike License';
}elseif ($photo['license'] == '2') {
$license = '
Attribution-NonCommercial License';
}elseif ($photo['license'] == '3') {
$license = '
Attribution-NonCommercial-NoDerivs License';
}elseif ($photo['license'] == '4') {
$license = '
Attribution License';
}elseif ($photo['license'] == '5') {
$license = '
Attribution-ShareAlike License';
}elseif ($photo['license'] == '6') {
$license = '
Attribution-NoDerivs License';
}else{
$license = 'All rights reserved.';
}
$output .= 'License: '.$license.'
';
}
if (isset($photo['dateupload'])) { $photo['dateupload'] = strftime($dateformat,$photo['dateupload']); $output .= 'Date uploaded: '.$photo['dateupload'].'
';}
if (isset($photo['datetaken'])) { $output .= 'Date taken: '.$photo['datetaken'].'
';}
if (isset($photo['ownername'])) { $output .= 'Owner: '.$photo['ownername'].'
';}
if (isset($photo['iconserver'])) {
if ($photo['iconserver'] > "0") {
$output .= '

';
}else{
$output .= '

';
}
}
if (isset($photo['lastupdate'])) { $photo['lastupdate'] = strftime($dateformat,$photo['lastupdate']); $output .= 'Last updated: '.$photo['lastupdate'].'
';}
if (isset($photo['latitude'])) { $output .= 'Lat: '.$photo['latitude'].', Long: '.$photo['longitude'].', Acc: '.$photo['accuracy'].'
';}
if (isset($photo['tags'])) { $output .= 'Tags: '.$photo['tags'].'
';}
if (isset($photo['machine_tags'])) { $output .= 'Machine tags: '.$photo['machine_tags'].'
';}
$output .= '
';
}
}else{
$output = '