mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
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:
parent
138f23d32f
commit
983d943548
8 changed files with 63 additions and 1 deletions
|
@ -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 |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue