Changeset 32709
- Timestamp:
- Jan 8, 2022, 9:01:07 PM (2 years ago)
- Location:
- extensions/reset_level
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/reset_level/initadmin.php
r32410 r32709 3 3 // | reset level plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011-2022 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 39 39 } 40 40 41 function plugrlPT($content, &$smarty){ 42 $search = '# </li> 43 </ul>#'; 44 $replacement = ' 45 </li> 46 </ul> 47 <ul> 48 <li><a href="{$U_RESETLEVEL}" title="{\'Discount level of confidentiality for all photos in the gallery: for all\'|@translate}" onclick="return confirm(\'{\'Are you sure?\'|@translate|@escape:javascript}\');"><span class="icon-arrows-cw"></span>{\'Reset levels of privacy\'|@translate}</a></li> 49 </ul>'; 50 return preg_replace($search, $replacement, $content); 41 function plugrlPT($content){ 42 // add js link 43 $search = '{/footer_script}'; 44 $replace = ' 45 $(".reset-level-button").each(function() { 46 const title = \'{"Discount level of confidentiality for all photos in the gallery: for all"|@translate|@escape:\'javascript\'}\'; 47 $(this).pwg_jconfirm_follow_href({ 48 alert_title: title, 49 alert_confirm: confirm_msg, 50 alert_cancel: cancel_msg 51 }); 52 }); 53 '; 54 $content = str_replace($search, $replace.$search, $content); 55 56 //add action 57 $search = '<a href="{$U_MAINT_C13Y}" class="icon-ok maintenance-action">{\'Reinitialize check integrity\'|@translate}</a>'; 58 $replacement = '<a href="{$U_RESETLEVEL}" class="maintenance-action reset-level-button" title="{\'Discount level of confidentiality for all photos in the gallery: for all\'|@translate}"><span class="icon-arrows-cw"></span>{\'Reset levels of privacy\'|@translate}</a>'; 59 return str_replace($search, $search.$replacement, $content); 51 60 } 52 61 -
extensions/reset_level/language/en_UK/plugin.lang.php
r32410 r32709 3 3 // | reset level plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011-2022 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/reset_level/language/fr_FR/plugin.lang.php
r32410 r32709 3 3 // | reset level plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011-202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2011-2022 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.