From 0e27e31a84421b3e6bd000a77bc89c2dff3c446a Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Fri, 30 Mar 2018 19:10:07 +0200 Subject: [PATCH] Remove Google plugin --- bl-kernel/boot/init.php | 3 - bl-plugins/gdpr-cookie/languages/en.json | 7 -- bl-plugins/gdpr-cookie/metadata.json | 10 -- bl-plugins/gdpr-cookie/plugin.php | 103 ---------------- bl-plugins/google-analytics/languages/en.json | 14 --- bl-plugins/google-analytics/metadata.json | 10 -- bl-plugins/google-analytics/plugin.php | 113 ------------------ bl-plugins/google/languages/de_CH.json | 14 --- bl-plugins/google/languages/de_DE.json | 14 --- bl-plugins/google/languages/en.json | 14 --- bl-plugins/google/languages/es.json | 13 -- bl-plugins/google/languages/fr_FR.json | 14 --- bl-plugins/google/languages/it.json | 14 --- bl-plugins/google/languages/ja_JP.json | 14 --- bl-plugins/google/languages/nl_NL.json | 14 --- bl-plugins/google/languages/pl_PL.json | 13 -- bl-plugins/google/languages/ru_RU.json | 13 -- bl-plugins/google/languages/tr_TR.json | 13 -- bl-plugins/google/languages/uk_UA.json | 14 --- bl-plugins/google/metadata.json | 10 -- bl-plugins/google/plugin.php | 92 -------------- 21 files changed, 526 deletions(-) delete mode 100644 bl-plugins/gdpr-cookie/languages/en.json delete mode 100644 bl-plugins/gdpr-cookie/metadata.json delete mode 100644 bl-plugins/gdpr-cookie/plugin.php delete mode 100644 bl-plugins/google-analytics/languages/en.json delete mode 100644 bl-plugins/google-analytics/metadata.json delete mode 100644 bl-plugins/google-analytics/plugin.php delete mode 100644 bl-plugins/google/languages/de_CH.json delete mode 100644 bl-plugins/google/languages/de_DE.json delete mode 100644 bl-plugins/google/languages/en.json delete mode 100644 bl-plugins/google/languages/es.json delete mode 100644 bl-plugins/google/languages/fr_FR.json delete mode 100644 bl-plugins/google/languages/it.json delete mode 100644 bl-plugins/google/languages/ja_JP.json delete mode 100644 bl-plugins/google/languages/nl_NL.json delete mode 100644 bl-plugins/google/languages/pl_PL.json delete mode 100644 bl-plugins/google/languages/ru_RU.json delete mode 100644 bl-plugins/google/languages/tr_TR.json delete mode 100644 bl-plugins/google/languages/uk_UA.json delete mode 100644 bl-plugins/google/metadata.json delete mode 100644 bl-plugins/google/plugin.php diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index f4f21b8c..4c7b5527 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -240,9 +240,6 @@ $WHERE_AM_I = $Url->whereAmI(); // --- Objects shortcuts --- $L = $language; -// GDPR -Cookie::set('BLUDIT_GDPR_ALLOW_TRACKING', true, 7); - // DEBUG: Print constants // $arr = array_filter(get_defined_constants(), 'is_string'); // echo json_encode($arr); diff --git a/bl-plugins/gdpr-cookie/languages/en.json b/bl-plugins/gdpr-cookie/languages/en.json deleted file mode 100644 index 44284b7c..00000000 --- a/bl-plugins/gdpr-cookie/languages/en.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "plugin-data": - { - "name": "GDPR Cookie", - "description": "General Data Protection Cookie Concent" - } -} \ No newline at end of file diff --git a/bl-plugins/gdpr-cookie/metadata.json b/bl-plugins/gdpr-cookie/metadata.json deleted file mode 100644 index 13635940..00000000 --- a/bl-plugins/gdpr-cookie/metadata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "author": "Bludit", - "email": "", - "website": "https://plugins.bludit.com", - "version": "2.3", - "releaseDate": "2018-01-23", - "license": "MIT", - "compatible": "2.3", - "notes": "" -} \ No newline at end of file diff --git a/bl-plugins/gdpr-cookie/plugin.php b/bl-plugins/gdpr-cookie/plugin.php deleted file mode 100644 index 10b9a1f7..00000000 --- a/bl-plugins/gdpr-cookie/plugin.php +++ /dev/null @@ -1,103 +0,0 @@ -dbFields = array( - 'enabled'=>true, - 'message'=>'Allow to Google Analytics tracking you?' - ); - } - - public function form() - { - global $Language; - - $html = '
'; - $html .= ''; - $html .= ''; - $html .= 'Show the consent to the user before loading the script of Google Analytics. The user can reject be tracked for Google Analytics.'; - $html .= '
'; - - return $html; - } - - public function siteHead() - { - $html = ''; - - return $html; - } - - public function siteBodyBegin() - { -$script = << - function pluginGDPRCookie_allowTracking() { - setCookie("BLUDIT_GDPR_ALLOW_TRACKING", true, 7); - pluginGDPRCookie_hideModal(); - } - - function pluginGDPRCookie_disableTracking() { - setCookie("BLUDIT_GDPR_ALLOW_TRACKING", false, 7); - pluginGDPRCookie_hideModal(); - } - - function pluginGDPRCookie_hideModal() { - document.getElementById("pluginGDPRCookie").style.display = "none"; - } - -EOT; - - if ($this->getValue('enabled')) { - $html = '
'; - $html .= '
Allow to Google Analytics tracking you?
'; - $html .= '
'; - $html .= ''; - $html .= ''; - $html .= '
'; - $html .= '
'; - } else { - $html = ''; - } - - $script .= ' - - '; - - return $script.$html; - } -} diff --git a/bl-plugins/google-analytics/languages/en.json b/bl-plugins/google-analytics/languages/en.json deleted file mode 100644 index 0851e093..00000000 --- a/bl-plugins/google-analytics/languages/en.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google Analytics", - "description": "This plugin generates the necessary code for the following Google tools: Google Analytics, Google Tag Manager and Google Site Verification HTML Tag." - }, - - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Complete this field with the Google Site verification to verify the site owner.", - "complete-this-field-with-the-tracking-id": "Complete this field with the Tracking ID to generate the Javascript tracking code for Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Complete this field with the Tracking ID to generate the Javascript tracking code for Google Tag Manager." -} \ No newline at end of file diff --git a/bl-plugins/google-analytics/metadata.json b/bl-plugins/google-analytics/metadata.json deleted file mode 100644 index 13635940..00000000 --- a/bl-plugins/google-analytics/metadata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "author": "Bludit", - "email": "", - "website": "https://plugins.bludit.com", - "version": "2.3", - "releaseDate": "2018-01-23", - "license": "MIT", - "compatible": "2.3", - "notes": "" -} \ No newline at end of file diff --git a/bl-plugins/google-analytics/plugin.php b/bl-plugins/google-analytics/plugin.php deleted file mode 100644 index 5f51f201..00000000 --- a/bl-plugins/google-analytics/plugin.php +++ /dev/null @@ -1,113 +0,0 @@ -dbFields = array( - 'EUGDPR'=>true, - 'trackingID'=>'' - ); - } - - public function form() - { - global $Language; - - $html = '
'; - $html .= ''; - $html .= ''; - $html .= ''.$Language->get('complete-this-field-with-the-tracking-id').''; - $html .= '
'; - - $html .= '
'; - $html .= ''; - $html .= ''; - $html .= 'Show the consent to the user before loading the script of Google Analytics. The user can reject be tracked for Google Analytics.'; - $html .= '
'; - - return $html; - } - - public function siteHead() - { - $html = ''; - - return $html; - } - - public function siteBodyBegin() - { - $script = ' - - '; - - if ($this->getValue('EUGDPR')) { - $html = '
'; - $html .= '
Allow to Google Analytics tracking you?
'; - $html .= '
'; - $html .= ''; - $html .= ''; - $html .= '
'; - $html .= '
'; - } else { - $html = ''; - } - - $script .= ' - - '; - - return $script.$html; - } -} diff --git a/bl-plugins/google/languages/de_CH.json b/bl-plugins/google/languages/de_CH.json deleted file mode 100644 index 79466644..00000000 --- a/bl-plugins/google/languages/de_CH.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google", - "description": "Einbindung des Codes für die Verwendung der Google Search Console, von Google Analytics und des Google Tag Managers." - }, - - "google-webmasters-tools": "Site Verification Code", - "google-analytics-tracking-id": "Tracking ID", - "google-tag-manager": "Container ID", - "complete-this-field-with-the-google-site-verification": "Site Verification Code zur Bestätigung der Inhaberschaft der Website.", - "complete-this-field-with-the-tracking-id": "Tracking ID, um das JavaScript für die Verwendung von Google Analytics zu erzeugen.", - "complete-this-field-with-the-tracking-id-google-tag": "Container ID, um das JavaScript für die Verwendung des Google Tag Managers zu erzeugen." -} diff --git a/bl-plugins/google/languages/de_DE.json b/bl-plugins/google/languages/de_DE.json deleted file mode 100644 index 79466644..00000000 --- a/bl-plugins/google/languages/de_DE.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google", - "description": "Einbindung des Codes für die Verwendung der Google Search Console, von Google Analytics und des Google Tag Managers." - }, - - "google-webmasters-tools": "Site Verification Code", - "google-analytics-tracking-id": "Tracking ID", - "google-tag-manager": "Container ID", - "complete-this-field-with-the-google-site-verification": "Site Verification Code zur Bestätigung der Inhaberschaft der Website.", - "complete-this-field-with-the-tracking-id": "Tracking ID, um das JavaScript für die Verwendung von Google Analytics zu erzeugen.", - "complete-this-field-with-the-tracking-id-google-tag": "Container ID, um das JavaScript für die Verwendung des Google Tag Managers zu erzeugen." -} diff --git a/bl-plugins/google/languages/en.json b/bl-plugins/google/languages/en.json deleted file mode 100644 index cfc6a1c4..00000000 --- a/bl-plugins/google/languages/en.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google", - "description": "This plugin generates the necessary code for the following Google tools: Google Analytics, Google Tag Manager and Google Site Verification HTML Tag." - }, - - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Complete this field with the Google Site verification to verify the site owner.", - "complete-this-field-with-the-tracking-id": "Complete this field with the Tracking ID to generate the Javascript tracking code for Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Complete this field with the Tracking ID to generate the Javascript tracking code for Google Tag Manager." -} \ No newline at end of file diff --git a/bl-plugins/google/languages/es.json b/bl-plugins/google/languages/es.json deleted file mode 100644 index 52541299..00000000 --- a/bl-plugins/google/languages/es.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "plugin-data": - { - "name": "Herramientas de Google", - "description": "Este plugin genera los meta tags para validar el sitio con Google Webmasters Tools y el código JavaScript para trackear el sitio con Google Analytics." - }, - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Complete este campo con el código de verificación de Google Webmasters Tools para verificar la propiedad del sitio.", - "complete-this-field-with-the-tracking-id": "Complete este campo con el Tracking ID para generar el código Javascript para trackear el sitio.", - "complete-this-field-with-the-tracking-id-google-tag": "Complete este campo con el Tracking ID para generar el código Javascript para Google Tag Manager." -} \ No newline at end of file diff --git a/bl-plugins/google/languages/fr_FR.json b/bl-plugins/google/languages/fr_FR.json deleted file mode 100644 index fcf6bc69..00000000 --- a/bl-plugins/google/languages/fr_FR.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Outils Google", - "description": "Ce plugin génère le code nécessaire pour les outils Google suivants : Google Analytics, Google Tag Manager and Google Site Verification HTML Tag." - }, - - "google-webmasters-tools": "Outils pour les webmasters", - "google-analytics-tracking-id": "ID de suivi Google Analytics", - "google-tag-manager": "Gestionnaire de balises Google", - "complete-this-field-with-the-google-site-verification": "Remplissez ce champ avec la vérification Google pour vérifier le propriétaire du site.", - "complete-this-field-with-the-tracking-id": "Remplissez ce champ avec l’ID de suivi pour générer le code Javascript Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Remplissez ce champ avec l’ID de suivi pour générer le code Javascript Google Tag Manager." -} \ No newline at end of file diff --git a/bl-plugins/google/languages/it.json b/bl-plugins/google/languages/it.json deleted file mode 100644 index 199d6819..00000000 --- a/bl-plugins/google/languages/it.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google", - "description": "Questo plugin genera il codice necessario per i seguenti strumenti di Google: Google Analytics, Google Tag Manager e Google Site Verification HTML Tag." - }, - - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Completa questo campo con il Google Site verification per verificare il proprietario del sito.", - "complete-this-field-with-the-tracking-id": "Completa questo campo con il Tracking ID per generare il codice Javascript di tracciamento per Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Completa questo campo con il Tracking ID per generare il codice Javascript di tracciamento per Google Tag Manager." -} \ No newline at end of file diff --git a/bl-plugins/google/languages/ja_JP.json b/bl-plugins/google/languages/ja_JP.json deleted file mode 100644 index 589d48b3..00000000 --- a/bl-plugins/google/languages/ja_JP.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google Tools", - "description": "Google Search Consoleでサイトを検証するためのメタタグとGoogle AnalyticsでトラッキングするためのJavaScriptコードを生成します。" - }, - - "google-webmasters-tools": "Google Search Console", - "google-analytics-tracking-id": "Google Analytics トラッキングID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Google Seach Consoleがサイト所有権を確認するためのメタタグを入力します。", - "complete-this-field-with-the-tracking-id": "Google Analyticsがトラッキングをするために生成したトラッキングIDを入力します。", - "complete-this-field-with-the-tracking-id-google-tag": "トラッキングをするために生成したトラッキングIDを入力します。" -} \ No newline at end of file diff --git a/bl-plugins/google/languages/nl_NL.json b/bl-plugins/google/languages/nl_NL.json deleted file mode 100644 index 77442c22..00000000 --- a/bl-plugins/google/languages/nl_NL.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Google Tools", - "description": "Deze plugin genereerd een meta tag om je site te verifiëren met Google Webmasters Tools en de JavaScript code om je site te tracken met Google Analytics." - }, - - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Vul dit veld in met de Google Site verificatie om jezelf te verifiëren als site beheerder.", - "complete-this-field-with-the-tracking-id": "Vul dit veld in met de Tracking ID om de Javascript tracking code te genereren voor Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Vul dit veld in met de Tracking ID." -} diff --git a/bl-plugins/google/languages/pl_PL.json b/bl-plugins/google/languages/pl_PL.json deleted file mode 100644 index 6de199f8..00000000 --- a/bl-plugins/google/languages/pl_PL.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "plugin-data": - { - "name": "Narzędzia Google", - "description": "Wtyczka ta generuje kod metatagów pozwalający zweryfikować stronę z serwisem Narzędzia Google Dla Webmasterów oraz wygenerować kod JavaScript monitorujący ruch z usługą Google Analytics." - }, - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Complete this field with the Google Site verification to verify the site owner.", - "complete-this-field-with-the-tracking-id": "Complete this field with the Tracking ID to generate the Javascript tracking code for Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Complete this field with the ID" -} \ No newline at end of file diff --git a/bl-plugins/google/languages/ru_RU.json b/bl-plugins/google/languages/ru_RU.json deleted file mode 100644 index 5e1869f1..00000000 --- a/bl-plugins/google/languages/ru_RU.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "plugin-data": - { - "name": "Google Tools", - "description": "Этот плагин генерирует мета теги для проверки вашего сайта в Google Webmasters Tools и код JavaScript для отслеживания вашего сайта в Google Analytics." - }, - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "Google Analytics Tracking ID", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Заполните это поле для проверки владельца сайта.", - "complete-this-field-with-the-tracking-id": "Заполните это поле с Tracking ID чтобы сгенерировать код Javascript для отслеживания в Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Заполните это поле с Tracking ID чтобы сгенерировать код Javascript для." -} diff --git a/bl-plugins/google/languages/tr_TR.json b/bl-plugins/google/languages/tr_TR.json deleted file mode 100644 index 84047bd4..00000000 --- a/bl-plugins/google/languages/tr_TR.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "plugin-data": - { - "name": "Google Araçları", - "description": "Bu eklenti Google Webmaster Araçlarını kullanabilmeniz ve sitenizin Google Analytics tarafından incelenebilmesi için geçerli bir meta tag ve Javascript kodu oluşturur." - }, - "google-webmasters-tools": "Google Webmaster Araçları", - "google-analytics-tracking-id": "Google Analytics İzleme No", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Google Site Doğrulama ile bu alanı doldurarak sitenizi doğrulayın", - "complete-this-field-with-the-tracking-id": "Bu alanı İzleme No ile doldurarak Google Analytics için Javascript kodu oluşturun.", - "complete-this-field-with-the-tracking-id-google-tag": "Bu alanı İzleme No ile doldurarak için Javascript kodu oluşturun." -} diff --git a/bl-plugins/google/languages/uk_UA.json b/bl-plugins/google/languages/uk_UA.json deleted file mode 100644 index 47a0b9de..00000000 --- a/bl-plugins/google/languages/uk_UA.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugin-data": - { - "name": "Інструменти Google", - "description": "Цей плагін генерує мета-тег для перевірки вашого сайту у Google Webmasters Tools і JavaScript-код для відстеження вашого сайту з Google Analytics." - }, - - "google-webmasters-tools": "Google Webmasters tools", - "google-analytics-tracking-id": "КОД відстеження Google Analytics", - "google-tag-manager": "Google Tag Manager", - "complete-this-field-with-the-google-site-verification": "Заповніть це поле для перевірки власника сайту.", - "complete-this-field-with-the-tracking-id": "Заповніть це поле для генерації Javascript-коду відстеження у Google Analytics.", - "complete-this-field-with-the-tracking-id-google-tag": "Заповніть це поле для генерації Javascript-коду відстеження." -} \ No newline at end of file diff --git a/bl-plugins/google/metadata.json b/bl-plugins/google/metadata.json deleted file mode 100644 index 13635940..00000000 --- a/bl-plugins/google/metadata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "author": "Bludit", - "email": "", - "website": "https://plugins.bludit.com", - "version": "2.3", - "releaseDate": "2018-01-23", - "license": "MIT", - "compatible": "2.3", - "notes": "" -} \ No newline at end of file diff --git a/bl-plugins/google/plugin.php b/bl-plugins/google/plugin.php deleted file mode 100644 index 0819a646..00000000 --- a/bl-plugins/google/plugin.php +++ /dev/null @@ -1,92 +0,0 @@ -dbFields = array( - 'google-site-verification'=>'', - 'google-analytics-tracking-id'=>'', - 'google-tag-manager'=>'' - ); - } - - public function form() - { - global $Language; - - $html = '
'; - $html .= ''; - $html .= ''; - $html .= ''.$Language->get('complete-this-field-with-the-google-site-verification').''; - $html .= '
'; - - $html .= '
'; - $html .= ''; - $html .= ''; - $html .= ''.$Language->get('complete-this-field-with-the-tracking-id').''; - $html .= '
'; - - $html .= '
'; - $html .= ''; - $html .= ''; - $html .= ''.$Language->get('complete-this-field-with-the-tracking-id-google-tag').''; - $html .= '
'; - - return $html; - } - - public function siteHead() - { - global $Url; - - $html = ''; - - // Google HTML tag - if ($this->getValue('google-site-verification') && $Url->whereAmI()=='home') { - $html .= PHP_EOL.''.PHP_EOL; - $html .= ''.PHP_EOL; - } - - // Google Tag Manager - if ($this->getValue('google-tag-manager')) { - $html .= PHP_EOL."".PHP_EOL; - $html .= "".PHP_EOL; - $html .= "".PHP_EOL; - } - - // Google Analytics - if ($this->getValue('google-analytics-tracking-id')) { - $html .= PHP_EOL.''.PHP_EOL; - $html .= ' - - '.PHP_EOL; - } - - return $html; - } - - public function siteBodyBegin() - { - $html = ''; - - // Google Tag Manager - if ($this->getValue('google-tag-manager')) { - $html .= ''.PHP_EOL; - $html .= ''.PHP_EOL; - $html .= ''.PHP_EOL; - } - - return $html; - } -}