[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 | <68e7fbdb24120_2c354790c9582b@gitlab-sidekiq-low-urgency-cpu-bound-v2-7588bc7b87-4q4wf.mail> |
Bruno Kambere pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
3908a20a by Bruno Kambere at 2025-10-09T21:09:38+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
---
* [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
See merge request tikiwiki/tiki!8751
- - - - -
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
=====================================
@@ -139,6 +139,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', '');
@@ -379,7 +383,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/3908a20ae0f721d0028aa0c44e917c3f54114bf9
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3908a20ae0f721d0028aa0c44e917c3f54114bf9
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