0) { $tpl_meta = array( 'TITLE' => 'EXIF Metadata', 'lines' => array(), ); foreach ($conf['show_exif_fields'] as $field) { if (strpos($field, ';') === false) { if (isset($exif[$field])) { $key = $field; if (isset($lang['exif_field_'.$field])) { $key = $lang['exif_field_'.$field]; } $tpl_meta['lines'][$key] = $exif[$field]; } } else { $tokens = explode(';', $field); if (isset($exif[$field])) { $key = $tokens[1]; if (isset($lang['exif_field_'.$key])) { $key = $lang['exif_field_'.$key]; } $tpl_meta['lines'][$key] = $exif[$field]; } } } $template->append('metadata', $tpl_meta); } } if ($conf['show_iptc']) { $iptc = get_iptc_data($picture['current']['image_path'], $conf['show_iptc_mapping']); if (count($iptc) == 0 and $picture['current']['has_high']) { $iptc = get_iptc_data($picture['current']['high_url'], $conf['show_iptc_mapping']); } if (count($iptc) > 0) { $tpl_meta = array( 'TITLE' => 'IPTC Metadata', 'lines' => array(), ); foreach ($iptc as $field => $value) { $key = $field; if (isset($lang[$field])) { $key = $lang[$field]; } $tpl_meta['lines'][$key] = $value; } $template->append('metadata', $tpl_meta); } } ?>