From 51298cd6bc100b1cc6508abb602a59c01a9e2c04 Mon Sep 17 00:00:00 2001 From: Stefan <11146296+tryallthethings@users.noreply.github.com> Date: Sun, 22 Jun 2025 00:36:32 +0200 Subject: Exposed the reading modes for extensions through Minz (#7668) * + Exposed the reading modes for extensions through Minz. Now extensions can add a custom view mode. Graceful fallback to normal view in case the extension was disabled without resetting the view_mode through the uninstall method. In that case the user will be informed via Minz_Request::setBadNotification that the view has been reset to normal. + Added translation strings for de, en and en-us for the notification * + Added missing, generated translations * Simplify indexAction, performance * Minor settings htmlspecialchars * i18n: fr * Minor wording * Doc * Fix i18n --------- Co-authored-by: Alexandre Alapetite --- lib/Minz/ExtensionManager.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Minz') diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php index b1d499392..c40a53253 100644 --- a/lib/Minz/ExtensionManager.php +++ b/lib/Minz/ExtensionManager.php @@ -102,6 +102,10 @@ final class Minz_ExtensionManager { 'list' => [], 'signature' => 'PassArguments', ], + 'view_modes' => [ // function($viewModes = array) -> array | null + 'list' => [], + 'signature' => 'OneToOne', + ], ]; /** Remove extensions and hooks from a previous initialisation */ -- cgit v1.2.3