[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][ENH] File Galleries: Add preference to show file modification date and time in long format

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68e7f68eda0f7_2c3d1182c86f@gitlab-sidekiq-low-urgency-cpu-bound-v2-7588bc7b87-44d5t.mail>

Bruno Kambere pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
e89e4cb2 by Bruno Kambere at 2025-10-09T20:46:37+03:00
[BP][ENH] File Galleries: Add preference to show file modification date and time in long format
---
* [BP][ENH] File Galleries: Add preference to show file modification date and time in long format
---
* [ENH] File Galleries: Add preference to show file modification date and time in long format
---
* [ENH] File Galleries: Add preference to show modification date and time for file galleries

See merge request tikiwiki/tiki!8330

See merge request tikiwiki/tiki!8749

See merge request tikiwiki/tiki!8750

- - - - -


3 changed files:

- lib/prefs/fgal.php
- templates/admin/include_fgal.tpl
- tiki-list_file_gallery.php


Changes:

=====================================
lib/prefs/fgal.php
=====================================
@@ -420,6 +420,13 @@ When the limit is reached, no more files can be uploaded. The user will see an e
             'type' => 'flag',
             'default' => 'y',
         ],
+        'fgal_show_modtimedate' => [
+            'name' => tra('Show modification date and time'),
+            'shorthint' => tra('Displays both date and time for file modifications'),
+            'description' => tra('If checked, the modification date will be shown as date and time instead of just the date.'),
+            'type' => 'flag',
+            'default' => 'y',
+        ],
         'fgal_show_path' => [
             'name' => tra('Show path'),
             'type' => 'flag',


=====================================
templates/admin/include_fgal.tpl
=====================================
@@ -75,6 +75,7 @@
                     {preference name='fgal_delete_after_email'}
                 </div>
                 {preference name='fgal_keep_fileId'}
+                {preference name='fgal_show_modtimedate'}
                 {preference name='feature_use_fgal_for_user_files'}
                 {preference name='feature_use_fgal_for_wiki_attachments'}
                 {preference name='feature_file_galleries_save_draft'}


=====================================
tiki-list_file_gallery.php
=====================================
@@ -233,6 +233,10 @@ if (
     Feedback::errorPage(['mes' => tr('You do not have permission to view this gallery'), 'errortype' => 401]);
 }
 
+if ($prefs['fgal_show_modtimedate']) {
+    $gal_info['show_modtimedate'] = $prefs['fgal_show_modtimedate'];
+}
+
 // Init smarty variables to blank values
 $smarty->assign('fname', '');
 $smarty->assign('fdescription', '');
@@ -473,7 +477,6 @@ if (isset($_REQUEST['fgal_actions'])) {
     }
 }
 
-
 if (isset($_REQUEST['permsel']) && isset($_REQUEST['subgal']) && $access->checkCsrf()) {
     $access->check_permission('assign_perm_file_gallery');
     $fails = [];



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e89e4cb261c74e72fe02c124367545bffec7cabc

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e89e4cb261c74e72fe02c124367545bffec7cabc
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.