From ff6867728f3e66b28173bf18061e4a92ea8a2110 Mon Sep 17 00:00:00 2001 From: diogo Date: Thu, 16 Dec 2021 15:43:02 -0300 Subject: [PATCH 1/5] =?UTF-8?q?altera=C3=A7=C3=A3o=20de=20posicao=20do=20h?= =?UTF-8?q?ook=20do=20switch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 2e4fa9c..db13fad 100644 --- a/Plugin.php +++ b/Plugin.php @@ -128,7 +128,7 @@ function _init() ]; return; }); - $app->hook("template(<>.<<*>>.name):after", function () use ($app) { + $app->hook("template(<>.<<*>>.name):before", function () use ($app) { /** @var MapasCulturais\Theme $this */ $entity = $this->controller->requestedEntity; if (($app->user->id == $entity->ownerUser->id) && From f80e551386e08b6a20d5188417e874a0b48b674e Mon Sep 17 00:00:00 2001 From: diogo Date: Thu, 16 Dec 2021 15:45:05 -0300 Subject: [PATCH 2/5] Criado container para manipulacao do switch --- .../parts/network-node/entity-sync-switch.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/layouts/parts/network-node/entity-sync-switch.php b/layouts/parts/network-node/entity-sync-switch.php index a625dbc..5dd81f0 100644 --- a/layouts/parts/network-node/entity-sync-switch.php +++ b/layouts/parts/network-node/entity-sync-switch.php @@ -1,7 +1,9 @@ -