Module: website Branch: master Commit: da6f641ceca7502e6a7f667feb108072e67515ac URL: https://source.winehq.org/git/website.git/?a=commit;h=da6f641ceca7502e6a7f66...
Author: Jeremy Newman jnewman@codeweavers.com Date: Wed Mar 24 13:13:25 2021 -0500
remove google analytics
---
include/plugins/google_analytics.php | 19 ------------------- templates/en/global/google_analytics.template | 8 -------- templates/en/global/layout/content.template | 6 ++---- templates/zh-cn/global/layout/content.template | 6 ++---- 4 files changed, 4 insertions(+), 35 deletions(-)
diff --git a/include/plugins/google_analytics.php b/include/plugins/google_analytics.php deleted file mode 100644 index 2850afb7..00000000 --- a/include/plugins/google_analytics.php +++ /dev/null @@ -1,19 +0,0 @@ -<?php - -/* - * WineHQ.org - * by Jeremy Newman <jnewman@codeweavers.com> - */ - -/* - Loads Google Analytics Statistics -*/ - -if (!empty($config->google_analytics)) -{ - // display the google analytics code - echo $html->template("local", "global/google_analytics", array('gcode' => $config->google_analytics)); -} - -// done -?> diff --git a/templates/en/global/google_analytics.template b/templates/en/global/google_analytics.template deleted file mode 100644 index 9b55ba3f..00000000 --- a/templates/en/global/google_analytics.template +++ /dev/null @@ -1,8 +0,0 @@ - <script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - ga('create', '{$gcode}', 'auto'); - ga('send', 'pageview'); - </script> diff --git a/templates/en/global/layout/content.template b/templates/en/global/layout/content.template index 03961319..9641b1ec 100644 --- a/templates/en/global/layout/content.template +++ b/templates/en/global/layout/content.template @@ -1,8 +1,8 @@ <!doctype html> <html lang="{$html_lang}"> <!-- - __ ___ _ _ ____ - \ \ / (_) | | | |/ __ \ + __ ___ _ _ ____ + \ \ / (_) | | | |/ __ \ \ \ /\ / / _ _ __ ___| |__| | | | | \ / / / | | '_ \ / _ \ __ | | | | \ /\ / | | | | | __/ | | | |__| | @@ -29,8 +29,6 @@ <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script> {$js_links}
-<!--EXEC:[google_analytics]--> - <link rel="shortcut icon" type="image/png" href="https://dl.winehq.org/share/images/winehq_logo_16.png"> {$rss_link} </head> diff --git a/templates/zh-cn/global/layout/content.template b/templates/zh-cn/global/layout/content.template index 715f36e4..a7705992 100644 --- a/templates/zh-cn/global/layout/content.template +++ b/templates/zh-cn/global/layout/content.template @@ -1,8 +1,8 @@ <!doctype html> <html lang="{$html_lang}"> <!-- - __ ___ _ _ ____ - \ \ / (_) | | | |/ __ \ + __ ___ _ _ ____ + \ \ / (_) | | | |/ __ \ \ \ /\ / / _ _ __ ___| |__| | | | | \ / / / | | '_ \ / _ \ __ | | | | \ /\ / | | | | | __/ | | | |__| | @@ -29,8 +29,6 @@ <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script> {$js_links}
-<!--EXEC:[google_analytics]--> - <link rel="shortcut icon" type="image/png" href="https://dl.winehq.org/share/images/winehq_logo_16.png"> {$rss_link} </head>