]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6496 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Dec 2023 10:03:16 +0000 (11:03 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Dec 2023 10:03:16 +0000 (11:03 +0100)
app/Models/Traits/PublicationSettings.php

index 74021424c7a566e6eea624694a499dab2418352a..7105425f337cc58d66521d1ce66c59944f19afb4 100644 (file)
@@ -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'));