From b5014cae5b2f8333058a092e86328cb9ff8f0279 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Sun, 25 Oct 2020 12:40:21 -0600 Subject: [PATCH] Final updates and tweaks in preparation for MVP launch - Removed unused items from the footer - Fixed language files to cover all variants of English - Added Google Analytics tracking code --- .../calgaryconditions/lang/{en-ca => en}/lang.php | 0 .../jasonwilliams/feed/lang/{en-ca => en}/lang.php | 0 .../jason-williamsca/assets/javascript/common.js | 9 +++++++++ www/themes/jason-williamsca/layouts/default.htm | 5 +++-- www/themes/jason-williamsca/pages/maintenance.htm | 11 +++++------ 5 files changed, 17 insertions(+), 8 deletions(-) rename www/plugins/jasonwilliams/calgaryconditions/lang/{en-ca => en}/lang.php (100%) rename www/plugins/jasonwilliams/feed/lang/{en-ca => en}/lang.php (100%) diff --git a/www/plugins/jasonwilliams/calgaryconditions/lang/en-ca/lang.php b/www/plugins/jasonwilliams/calgaryconditions/lang/en/lang.php similarity index 100% rename from www/plugins/jasonwilliams/calgaryconditions/lang/en-ca/lang.php rename to www/plugins/jasonwilliams/calgaryconditions/lang/en/lang.php diff --git a/www/plugins/jasonwilliams/feed/lang/en-ca/lang.php b/www/plugins/jasonwilliams/feed/lang/en/lang.php similarity index 100% rename from www/plugins/jasonwilliams/feed/lang/en-ca/lang.php rename to www/plugins/jasonwilliams/feed/lang/en/lang.php diff --git a/www/themes/jason-williamsca/assets/javascript/common.js b/www/themes/jason-williamsca/assets/javascript/common.js index c3f46ea..1dd4d4c 100644 --- a/www/themes/jason-williamsca/assets/javascript/common.js +++ b/www/themes/jason-williamsca/assets/javascript/common.js @@ -14,4 +14,13 @@ $(() => { $('textarea').each(function() { $(this).height($(this)[0].scrollHeight) }) + + // Use google analytics in production + if (!window.location.hostname.includes('dev')) { + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'UA-167178542-1'); + } }); \ No newline at end of file diff --git a/www/themes/jason-williamsca/layouts/default.htm b/www/themes/jason-williamsca/layouts/default.htm index ecc9cf6..97da93a 100644 --- a/www/themes/jason-williamsca/layouts/default.htm +++ b/www/themes/jason-williamsca/layouts/default.htm @@ -51,14 +51,15 @@ description = "Default Layout"

Made with in #YYC

-

Recent Projects

+
-

Recent Blog Posts

+
+ {% if 'dev' not in url('/') %}{% endif %} diff --git a/www/themes/jason-williamsca/pages/maintenance.htm b/www/themes/jason-williamsca/pages/maintenance.htm index 6b4d0f3..2f5fc62 100644 --- a/www/themes/jason-williamsca/pages/maintenance.htm +++ b/www/themes/jason-williamsca/pages/maintenance.htm @@ -6,24 +6,23 @@ is_hidden = 0 -son-williams.ca +ja.son-williams.ca
-

ja.son-williams.ca

+

ja.son-williams.ca

+

Under maintenance. Please check back later.

-
\ No newline at end of file