FEATURE: adds a setting to choose which connector to use (#5)

FEATURE: adds a setting to choose which connector to use (#5)

above_site_header or below_site_header, default is below_site_header

diff --git a/javascripts/discourse/connectors/above-site-header/category-header-widget.hbs b/javascripts/discourse/connectors/above-site-header/category-header-widget.hbs
new file mode 100644
index 0000000..376add3
--- /dev/null
+++ b/javascripts/discourse/connectors/above-site-header/category-header-widget.hbs
@@ -0,0 +1,3 @@
+{{#if (theme-setting "show_above_site_header")}}
+  {{mount-widget widget="category-header-widget"}}
+{{/if}}
diff --git a/javascripts/discourse/connectors/below-site-header/category-header-widget.hbs b/javascripts/discourse/connectors/below-site-header/category-header-widget.hbs
index 563272f..f76193c 100644
--- a/javascripts/discourse/connectors/below-site-header/category-header-widget.hbs
+++ b/javascripts/discourse/connectors/below-site-header/category-header-widget.hbs
@@ -1 +1,3 @@
-{{mount-widget widget="category-header-widget"}}
+{{#if (theme-setting "show_below_site_header")}}
+  {{mount-widget widget="category-header-widget"}}
+{{/if}}
diff --git a/settings.yml b/settings.yml
index 62463b6..0d6bc77 100644
--- a/settings.yml
+++ b/settings.yml
@@ -19,3 +19,13 @@ exceptions:
   type: list
   list_type: simple
   description: "Banner will not show for these categories NAMES. This is case sensitive."
+
+show_above_site_header:
+  default: false
+  type: bool
+  description: "Display the banner in the above site header connector."
+
+show_below_site_header:
+  default: true
+  type: bool
+  description: "Display the banner in the below site header connector."

GitHub sha: 9be0d889

This commit appears in #5 which was approved by ZogStriP. It was merged by jjaffeux.