diff --git a/template/picture.tpl b/template/picture.tpl index f994f3be..d5768848 100644 --- a/template/picture.tpl +++ b/template/picture.tpl @@ -364,6 +364,11 @@ $('#theImage img').bind('swipeleft swiperight', function (event) { {$metadata.0.lines[{'exif_field_FocalLength'|@translate}]} {/if} + {if array_key_exists("{'exif_field_Flash'|@translate}", $metadata.0.lines)} +
+ {$metadata.0.lines[{'exif_field_Flash'|@translate}]} +
+ {/if} {/if}
@@ -377,9 +382,26 @@ $('#theImage img').bind('swipeleft swiperight', function (event) { {$metadata.0.lines[{'exif_field_ISOSpeedRatings'|@translate}]}
{/if} + {if array_key_exists("{'exif_field_ExposureBiasValue'|@translate}", $metadata.0.lines)} +
+ {$metadata.0.lines[{'exif_field_ExposureBiasValue'|@translate}]} +
+ {/if} -
+ +{footer_script require='jquery'} +$('#show_exif_data').on('click', function() { + if ($('#full_exif_data').hasClass('d-none')) { + $('#full_exif_data').addClass('d-flex').removeClass('d-none'); + $('#show_exif_data').html(' {"Hide EXIF data"|@translate}'); + } else { + $('#full_exif_data').addClass('d-none').removeClass('d-flex'); + $('#show_exif_data').html(' {"Show EXIF data"|@translate}'); + } +}); +{/footer_script} +
{foreach from=$metadata item=meta} {foreach from=$meta.lines item=value key=label}
diff --git a/template/picture_nav.tpl b/template/picture_nav.tpl index a34e32a5..88cb3875 100644 --- a/template/picture_nav.tpl +++ b/template/picture_nav.tpl @@ -49,13 +49,13 @@ {/if} -{if isset($U_METADATA)} +{*{if isset($U_METADATA)} -{/if} +{/if}*} {if isset($current.U_DOWNLOAD)} {if empty($current.formats)}