From 50694f278b4c756d496455e3662ff6681b266d58 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Sat, 15 Aug 2026 15:36:04 +0200 Subject: [PATCH] Add linked watermark size controls and live preview --- template/admin.tpl | 535 ++++++++++++++++++++------------------------- 1 file changed, 241 insertions(+), 294 deletions(-) diff --git a/template/admin.tpl b/template/admin.tpl index 69eff26..159a1bb 100644 --- a/template/admin.tpl +++ b/template/admin.tpl @@ -4,192 +4,56 @@ {foreach from=$BRATONIEN_ERRORS item=error}

{$error|escape:html}

{/foreach} @@ -207,28 +71,19 @@

Engine

-
- - {if $WATERMARK_ENGINE.enabled}Aktiv{else}Inaktiv{/if} -
+
{if $WATERMARK_ENGINE.enabled}Aktiv{else}Inaktiv{/if}
-
- -
+
-

Standardregeln

- Öffentliche Alben - {if $WATERMARK_DEFAULTS.public_profile}{foreach from=$WATERMARK_PROFILES item=profile}{if $profile.id == $WATERMARK_DEFAULTS.public_profile}{$profile.name|escape:html}{/if}{/foreach}{else}Kein Wasserzeichen{/if} - Private Alben - {if $WATERMARK_DEFAULTS.private_profile}{foreach from=$WATERMARK_PROFILES item=profile}{if $profile.id == $WATERMARK_DEFAULTS.private_profile}{$profile.name|escape:html}{/if}{/foreach}{else}Kein Wasserzeichen{/if} - Profile - {$WATERMARK_PROFILES|@count} vorhanden + Öffentliche Alben{if $WATERMARK_DEFAULTS.public_profile}{foreach from=$WATERMARK_PROFILES item=profile}{if $profile.id == $WATERMARK_DEFAULTS.public_profile}{$profile.name|escape:html}{/if}{/foreach}{else}Kein Wasserzeichen{/if} + Private Alben{if $WATERMARK_DEFAULTS.private_profile}{foreach from=$WATERMARK_PROFILES item=profile}{if $profile.id == $WATERMARK_DEFAULTS.private_profile}{$profile.name|escape:html}{/if}{/foreach}{else}Kein Wasserzeichen{/if} + Profile{$WATERMARK_PROFILES|@count} vorhanden
@@ -236,84 +91,70 @@

Wasserzeichen

-

Dateien und Profile an einer Stelle verwalten.

- +

Dateien, Profile und deren Größe an einer Stelle verwalten.

Aktuelles Wasserzeichen

-
- {if $WATERMARK.preview_url} - Aktuelles Wasserzeichen - {else} -
Noch kein Wasserzeichen ausgewählt
- {/if} -
-
- {if $WATERMARK.file} - {$WATERMARK.file|escape:html}
- Position: {$WATERMARK.xpos} / {$WATERMARK.ypos}
- Deckkraft: {$WATERMARK.opacity}%
- Mindestgröße: {$WATERMARK.minw} × {$WATERMARK.minh} - {else} - Keine Datei ausgewählt - {/if} -
+
{if $WATERMARK.preview_url}Aktuelles Wasserzeichen{else}
Noch kein Wasserzeichen ausgewählt
{/if}
+
{if $WATERMARK.file}{$WATERMARK.file|escape:html}
Position: {$WATERMARK.xpos} / {$WATERMARK.ypos}
Deckkraft: {$WATERMARK.opacity}%
Mindestgröße: {$WATERMARK.minw} × {$WATERMARK.minh}{else}Keine Datei ausgewählt{/if}
-

Datei auswählen oder hochladen

- - - - - - Position - X Y - - - % - - Mindestgröße - × -
-
- - + + + PositionX Y + % + Mindestgröße ×
+

Profile

-

Profile bleiben kompakt. Zum Bearbeiten das gewünschte Profil öffnen.

+

Die Wasserzeichengröße wird pro Profil festgelegt. Prozent, Breite und Höhe sind miteinander gekoppelt; das Seitenverhältnis bleibt immer erhalten.

{foreach from=$WATERMARK_PROFILES item=profile}
- {$profile.name|escape:html}{if $profile.active}aktiv{else}inaktiv{/if} · {$profile.opacity}% + {$profile.name|escape:html}{if $profile.active}aktiv{else}inaktiv{/if} · {$profile.opacity}% · {$profile.scale_percent}% Größe
-
+
- - + - - Position - X Y - Wiederholen - X Y - - % - Mindestgröße - × + + PositionX Y + WiederholenX Y + % + Mindestgröße × +
+
+
Größe & Vorschau
+
+
+ Originalgröße{if $profile.original_width}{$profile.original_width} × {$profile.original_height} px{else}Keine Datei gewählt{/if} + % + px + px + Seitenverhältnis🔒 gesperrt +
+
+
{if $profile.preview_url}Vorschau{else}Keine Wasserzeichendatei gewähltVorschau{/if}
+
+
+
@@ -328,21 +169,35 @@
+ Neues Profil
- +
- - + - - Position - X Y - Wiederholen - X Y - - % - Mindestgröße - × + + PositionX Y + WiederholenX Y + % + Mindestgröße × +
+
+
Größe & Vorschau
+
+
+ OriginalgrößeKeine Datei gewählt + % + px + px + Seitenverhältnis🔒 gesperrt +
+
+
Keine Wasserzeichendatei gewähltVorschau
+
+
+
@@ -355,42 +210,23 @@

Regeln

Standardregeln und Album-Ausnahmen gemeinsam verwalten.

-

Globale Standardregeln

- - - - + +
-

Album-Ausnahmen

Erben verwendet die nächste explizite Regel eines Elternalbums und danach den globalen Standard.

- - {foreach from=$WATERMARK_CATEGORIES item=category} - - - - - - - - - - - - - {/foreach} - + {foreach from=$WATERMARK_CATEGORIES item=category}{/foreach}
AlbumSichtbarkeitRegelProfilWirksam
{$category.display_name|escape:html}{$category.status|escape:html}{$category.effective_label|escape:html} ({$category.effective.source|escape:html})
{$category.display_name|escape:html}{$category.status|escape:html}{$category.effective_label|escape:html} ({$category.effective.source|escape:html})
@@ -398,13 +234,124 @@

Wartung

Werkzeuge, die nicht zur täglichen Konfiguration gehören.

-
-

Bildcache

-

Löscht alle erzeugten Piwigo- und Bratonien-Bildderivate. Originalbilder bleiben erhalten.

-
- - -
-
+

Bildcache

Löscht alle erzeugten Piwigo- und Bratonien-Bildderivate. Originalbilder bleiben erhalten.

-
\ No newline at end of file +
+ +