From cf97c1d5bbcea47e5deb5ea721760819e884c0a7 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 21 May 2025 18:08:21 +0200 Subject: [PATCH] Allow the usage of the interaction context menu as a content interaction button --- .../shared_standaloneInteractionButton.tpl | 13 +++- .../lib/acp/form/StyleEditForm.class.php | 4 +- .../lib/acp/form/UserRankEditForm.class.php | 4 +- .../GetBulkContextMenuOptions.class.php | 6 +- .../GetContextMenuOptions.class.php | 6 +- .../gridView/AbstractGridView.class.php | 16 ++-- ...InteractionContextMenuComponent.class.php} | 10 ++- ...eInteractionContextMenuComponent.class.php | 78 +++++++++++++++++++ ...daloneInteractionContextMenuView.class.php | 40 ---------- ...InteractionContextMenuComponent.class.php} | 10 ++- .../listView/AbstractListView.class.php | 16 ++-- 11 files changed, 132 insertions(+), 71 deletions(-) rename wcfsetup/install/files/lib/system/interaction/{InteractionContextMenuView.class.php => InteractionContextMenuComponent.class.php} (91%) create mode 100644 wcfsetup/install/files/lib/system/interaction/StandaloneInteractionContextMenuComponent.class.php delete mode 100644 wcfsetup/install/files/lib/system/interaction/StandaloneInteractionContextMenuView.class.php rename wcfsetup/install/files/lib/system/interaction/bulk/{BulkInteractionContextMenuView.class.php => BulkInteractionContextMenuComponent.class.php} (90%) diff --git a/com.woltlab.wcf/templates/shared_standaloneInteractionButton.tpl b/com.woltlab.wcf/templates/shared_standaloneInteractionButton.tpl index 361a62c4514..1a30aa16253 100644 --- a/com.woltlab.wcf/templates/shared_standaloneInteractionButton.tpl +++ b/com.woltlab.wcf/templates/shared_standaloneInteractionButton.tpl @@ -1,6 +1,13 @@ -