Files
flipbook-bundle/contao/languages/en/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'] = ['Flippable PDF', 'Displays a PDF as a page-turning flipbook with lazy rendering.'];
$GLOBALS['TL_LANG']['MSC']['flipbookRegionLabel'] = 'Flippable PDF';
$GLOBALS['TL_LANG']['MSC']['flipbookLoading'] = 'Loading PDF ...';
$GLOBALS['TL_LANG']['MSC']['flipbookError'] = 'The PDF could not be loaded.';
$GLOBALS['TL_LANG']['MSC']['flipbookMissing'] = 'No PDF file found.';
$GLOBALS['TL_LANG']['MSC']['flipbookNotConfigured'] = 'No PDF file configured.';
$GLOBALS['TL_LANG']['MSC']['flipbookNotPublic'] = 'The selected PDF file is stored in a protected folder and cannot be served in the front end.';
$GLOBALS['TL_LANG']['MSC']['flipbookRendering'] = 'Rendering page {page} ...';
$GLOBALS['TL_LANG']['MSC']['flipbookBlank'] = 'Blank page';
$GLOBALS['TL_LANG']['MSC']['flipbookPageLabel'] = 'Page {page} of {total}';
$GLOBALS['TL_LANG']['MSC']['flipbookNavLabel'] = 'Flipbook navigation';
$GLOBALS['TL_LANG']['MSC']['flipbookPrev'] = 'Previous';
$GLOBALS['TL_LANG']['MSC']['flipbookNext'] = 'Next';
$GLOBALS['TL_LANG']['MSC']['flipbookDownload'] = 'Download PDF';
$GLOBALS['TL_LANG']['MSC']['flipbookFullscreenEnter'] = 'Fullscreen';
$GLOBALS['TL_LANG']['MSC']['flipbookFullscreenExit'] = 'Exit fullscreen';