From 685bcd7c28e034ca7b95b7b1df9984f7c55329f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Sat, 5 Mar 2022 22:31:52 +0100 Subject: [PATCH] odstraneni GA (#845) --- .../ConfigurationModule/Forms/WebFormFactory.php | 6 +++--- app/WebModule/Presenters/WebBasePresenter.php | 1 - app/WebModule/Presenters/templates/@layout.latte | 11 ----------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php index 41b1034b5..be8fd42f0 100644 --- a/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php @@ -88,14 +88,14 @@ public function create(): Form $form->addSelect('redirectAfterLogin', 'admin.configuration.web_redirect_after_login', $redirectAfterLoginOptions) ->addRule(Form::FILLED, 'admin.configuration.web_redirect_after_login_empty'); - $form->addText('ga_id', 'admin.configuration.web_ga_id'); +// $form->addText('ga_id', 'admin.configuration.web_ga_id'); $form->addSubmit('submit', 'admin.common.save'); $form->setDefaults([ 'footer' => $this->queryBus->handle(new SettingStringValueQuery(Settings::FOOTER)), 'redirectAfterLogin' => array_key_exists($redirectAfterLoginValue, $redirectAfterLoginOptions) ? $redirectAfterLoginValue : null, - 'ga_id' => $this->queryBus->handle(new SettingStringValueQuery(Settings::GA_ID)), +// 'ga_id' => $this->queryBus->handle(new SettingStringValueQuery(Settings::GA_ID)), ]); $form->onSuccess[] = [$this, 'processForm']; @@ -122,6 +122,6 @@ public function processForm(Form $form, stdClass $values): void $this->commandBus->handle(new SetSettingStringValue(Settings::FOOTER, $values->footer)); $this->commandBus->handle(new SetSettingStringValue(Settings::REDIRECT_AFTER_LOGIN, $values->redirectAfterLogin)); - $this->commandBus->handle(new SetSettingStringValue(Settings::GA_ID, $values->ga_id)); +// $this->commandBus->handle(new SetSettingStringValue(Settings::GA_ID, $values->ga_id)); } } diff --git a/app/WebModule/Presenters/WebBasePresenter.php b/app/WebModule/Presenters/WebBasePresenter.php index af022be5a..aaac49ac0 100644 --- a/app/WebModule/Presenters/WebBasePresenter.php +++ b/app/WebModule/Presenters/WebBasePresenter.php @@ -86,7 +86,6 @@ public function beforeRender(): void $this->template->logo = $this->queryBus->handle(new SettingStringValueQuery(Settings::LOGO)); $this->template->footer = $this->queryBus->handle(new SettingStringValueQuery(Settings::FOOTER)); $this->template->seminarName = $this->queryBus->handle(new SettingStringValueQuery(Settings::SEMINAR_NAME)); - $this->template->gaId = $this->queryBus->handle(new SettingStringValueQuery(Settings::GA_ID)); $this->template->nonregisteredRole = $this->roleRepository->findBySystemName(Role::NONREGISTERED); $this->template->unapprovedRole = $this->roleRepository->findBySystemName(Role::UNAPPROVED); diff --git a/app/WebModule/Presenters/templates/@layout.latte b/app/WebModule/Presenters/templates/@layout.latte index 7470c0b12..2aadb7169 100644 --- a/app/WebModule/Presenters/templates/@layout.latte +++ b/app/WebModule/Presenters/templates/@layout.latte @@ -68,17 +68,6 @@ {block scripts} {/block} - - {if $gaId} - - - - {/if}