From: Vincent Vanwaelscappel Date: Thu, 14 Dec 2023 10:03:16 +0000 (+0100) Subject: wait #6496 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=41171ff4d450e5e2d75547bb6c21b577601ad277;p=fluidbook-toolbox.git wait #6496 @0.25 --- diff --git a/app/Models/Traits/PublicationSettings.php b/app/Models/Traits/PublicationSettings.php index 74021424c..7105425f3 100644 --- a/app/Models/Traits/PublicationSettings.php +++ b/app/Models/Traits/PublicationSettings.php @@ -68,7 +68,8 @@ trait PublicationSettings stop_measure('set settings fields'); } - protected function _disabled(){ + protected function _disabled() + { $this->addSettingField('ambientSound', Hidden::class, $this->__('Ambiance sonore')); $this->addSettingField('ambientSoundVolume', Hidden::class, $this->__('Volume de l\'ambiance sonore')); } @@ -157,6 +158,7 @@ trait PublicationSettings $this->_statsFluidbook(); $this->_statsGoogleAnalytics(); $this->_statsGoogleTagManager(); + $this->_statsMatomo(); $this->_statsTagCommander(); $this->_statsPiano(); $this->_statsCustom(); @@ -2145,6 +2147,15 @@ trait PublicationSettings ]); } + protected function _statsMatomo() + { + $this->addSettingField('section_matomoStats', FormSection::class, $this->__('Matomo')); + $this->addSettingField('matomoServer', Text::class, $this->__('URL du serveur Matomo'), [ + 'prefix' => 'https://' + ]); + $this->addSettingField('matomoSiteId', Integer::class, $this->__('Site ID'), ['when' => ['matomoServer' => '_not_empty_']]); + } + protected function _statsGoogleAnalytics() { $this->addSettingField('section_gaStats', FormSection::class, $this->__('Google Analytics'));