From 0db943b01264e308d687edade1585c11032cc063 Mon Sep 17 00:00:00 2001 From: Uncle Cheese Date: Tue, 17 Nov 2015 12:14:11 +1300 Subject: [PATCH] MINOR: Move all GA code into its own include, making it easy to override in a theme --- templates/DocumentationViewer.ss | 13 +------------ templates/DocumentationViewer_all.ss | 13 +------------ templates/DocumentationViewer_results.ss | 13 +------------ templates/Includes/DocumentationGA.ss | 11 +++++++++++ 4 files changed, 14 insertions(+), 36 deletions(-) create mode 100644 templates/Includes/DocumentationGA.ss diff --git a/templates/DocumentationViewer.ss b/templates/DocumentationViewer.ss index 0d74d8b..53eada8 100755 --- a/templates/DocumentationViewer.ss +++ b/templates/DocumentationViewer.ss @@ -34,17 +34,6 @@ - <% if GoogleAnalyticsCode %> - - <% end_if %> - + <% include DocumentationGA %> <% include DocumentationEnd %> diff --git a/templates/DocumentationViewer_all.ss b/templates/DocumentationViewer_all.ss index 6f03188..cdf36c9 100644 --- a/templates/DocumentationViewer_all.ss +++ b/templates/DocumentationViewer_all.ss @@ -31,17 +31,6 @@ - <% if GoogleAnalyticsCode %> - - <% end_if %> - + <% include DocumentationGA %> <% include DocumentationEnd %> diff --git a/templates/DocumentationViewer_results.ss b/templates/DocumentationViewer_results.ss index 79cb385..20b0a6d 100644 --- a/templates/DocumentationViewer_results.ss +++ b/templates/DocumentationViewer_results.ss @@ -31,17 +31,6 @@ - <% if GoogleAnalyticsCode %> - - <% end_if %> - + <% include DocumentationGA %> <% include DocumentationEnd %> diff --git a/templates/Includes/DocumentationGA.ss b/templates/Includes/DocumentationGA.ss new file mode 100644 index 0000000..78d8ecd --- /dev/null +++ b/templates/Includes/DocumentationGA.ss @@ -0,0 +1,11 @@ + <% if $GoogleAnalyticsCode %> + + <% end_if %>