Files
flipbook-bundle/contao/languages/de/default.php
T
Jürgen MummertandClaude Opus 5 204fee73f5 feat: optional fullscreen mode
New content element option "Vollbild-Schaltfläche anzeigen" (on by default).
The button only appears once the browser confirms it exposes the Fullscreen API
for ordinary elements -- iOS Safari offers it for video only, so there it stays
hidden rather than presenting a control that cannot work.

Fitting the book to the screen needed the layout to become height-aware. Page
size was derived from width alone, which at screen width puts an A4-proportioned
page well below the bottom of the viewport. In fullscreen the page now fits to
the available height and the narrower book is centred; pages re-render at the
new size through the existing generation-stamped path.

The height fit writes a max-width onto the stage, so in fullscreen the available
width is measured on the parent instead -- measuring the element we just
constrained would oscillate. Verified stable across repeated samples.

The resize handler body moved into relayout(), shared with the fullscreen
toggle. destroy() leaves fullscreen first so the browser is not left holding a
node that is about to go away.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-05 15:12:10 +02:00

22 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
$GLOBALS['TL_LANG']['CTE']['blatterbares_pdf'] = ['Blätterbares PDF', 'Zeigt ein PDF als blätterbares Flipbook mit Lazy-Rendering an.'];
$GLOBALS['TL_LANG']['MSC']['flipbookRegionLabel'] = 'Blätterbares PDF';
$GLOBALS['TL_LANG']['MSC']['flipbookLoading'] = 'PDF wird geladen ...';
$GLOBALS['TL_LANG']['MSC']['flipbookError'] = 'PDF konnte nicht geladen werden.';
$GLOBALS['TL_LANG']['MSC']['flipbookMissing'] = 'Keine PDF-Datei gefunden.';
$GLOBALS['TL_LANG']['MSC']['flipbookNotConfigured'] = 'Keine PDF-Datei konfiguriert.';
$GLOBALS['TL_LANG']['MSC']['flipbookNotPublic'] = 'Die gewählte PDF-Datei liegt in einem geschützten Ordner und ist im Frontend nicht abrufbar.';
$GLOBALS['TL_LANG']['MSC']['flipbookRendering'] = 'Seite {page} wird gerendert ...';
$GLOBALS['TL_LANG']['MSC']['flipbookBlank'] = 'Leere Seite';
$GLOBALS['TL_LANG']['MSC']['flipbookPageLabel'] = 'Seite {page} von {total}';
$GLOBALS['TL_LANG']['MSC']['flipbookNavLabel'] = 'Flipbook-Navigation';
$GLOBALS['TL_LANG']['MSC']['flipbookPrev'] = 'Zurück';
$GLOBALS['TL_LANG']['MSC']['flipbookNext'] = 'Weiter';
$GLOBALS['TL_LANG']['MSC']['flipbookDownload'] = 'PDF herunterladen';
$GLOBALS['TL_LANG']['MSC']['flipbookFullscreenEnter'] = 'Vollbild';
$GLOBALS['TL_LANG']['MSC']['flipbookFullscreenExit'] = 'Vollbild beenden';