issue #2170 update picture tpl to embed pdf reader

Add default config pdf_viewer_filesize_threshold
Add function to get number of PDF pages
Add translations
update picture.php to send pdf filesize threshold and nb page to tpl
update picture.tpl to add number of pages for PDF
picture_content.tpl update for new config name and add translation functions. use embed for pdf if file ext = pdf
This commit is contained in:
HWFord 2024-06-20 11:51:55 +02:00
parent 138f23d32f
commit 983d943548
8 changed files with 63 additions and 1 deletions

View file

@ -296,6 +296,10 @@ $conf['linked_album_search_limit'] = 100;
// 0 to disable.
$conf['fs_quick_check_period'] = 24*60*60;
// This corresponds to the treshold where we no longer display the web browsers
// PDF viewer. In MB (megabytes).
$conf['pdf_viewer_filesize_threshold'] = 5;
// +-----------------------------------------------------------------------+
// | email |
// +-----------------------------------------------------------------------+