Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXIF Data in one row / hide "show exif data" button? #361

Open
reox opened this issue Sep 3, 2023 · 0 comments
Open

EXIF Data in one row / hide "show exif data" button? #361

reox opened this issue Sep 3, 2023 · 0 comments

Comments

@reox
Copy link

reox commented Sep 3, 2023

I want to display the (to me) four most important specs of a photo: Aperture, Focal Length, Shutter Speed and ISO. However, the theme is designed to only have three values next to each other using the col-sm-4 class:

<div class="row">
<div class="col-12{if $theme_config->fluid_width} col-xl-10{/if}">
<div class="row">
{if is_array($metadata.0.lines) && (array_key_exists("{$exif_fnumber}", $metadata.0.lines))}
<div class="col-6 col-sm-4">
<span class="camera-aperture fa-2x pr-2" title="{$exif_fnumber}"></span> f/{$metadata.0.lines[{$exif_fnumber}]}
</div>
{/if}
{if is_array($metadata.0.lines) && (array_key_exists("{$exif_focal_length}", $metadata.0.lines))}
<div class="col-6 col-sm-4">
<span class="camera-focal-length fa-2x pr-2" title="{$exif_focal_length}"></span> {$metadata.0.lines[{$exif_focal_length}]}
</div>
{/if}
{if is_array($metadata.0.lines) && (array_key_exists("{$exif_exposure_time}", $metadata.0.lines))}
<div class="col-6 col-sm-4">
<span class="camera-shutter-speed fa-2x pr-2" title="{$exif_exposure_time}"></span> {$metadata.0.lines[{$exif_exposure_time}]}
</div>
{/if}
{if is_array($metadata.0.lines) && (array_key_exists("{$exif_iso}", $metadata.0.lines))}
<div class="col-6 col-sm-4">
<span class="camera-iso fa-2x pr-2" title="{$exif_iso}"></span> {$metadata.0.lines[{$exif_iso}]}
</div>
{/if}
{if is_array($metadata.0.lines) && (array_key_exists("{$exif_exposure_bias}", $metadata.0.lines))}
<div class="col-6 col-sm-4">
<span class="camera-exposure fa-2x pr-2" title="{$exif_exposure_bias}"></span> {$metadata.0.lines[{$exif_exposure_bias}]}
</div>
{/if}
{if is_array($metadata.0.lines) && (array_key_exists("{$exif_flash}", $metadata.0.lines))}
<div class="col-6 col-sm-4">
<span class="camera-flash fa-2x pr-2 float-left h-100" title="{$exif_flash}"></span><div> {$metadata.0.lines[{$exif_flash}]}</div>
</div>
{/if}
</div>
</div>

But if you change it to col-sm-3, you get all the quantities next to each other:
image

Would it be an option to change this in the template? Of course, if you add exposure bias and flash, it will look odd and the 2x3 is then the better option. Of course, an awesome solution would be to check whenever 4 or 6 items are to be displayed and then use either a 3 or 4 column width.

Another thing is the button: If you restrict piwigo to the basic EXIF data, there is not much more to see in this button, just duplicated information.
Thus an option to hide the button would be awesome as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant