mirror of
https://github.com/discourse/discourse-category-banners
synced 2025-02-05 19:18:10 +00:00
UX: add more plugin outlet options (#33)
This commit is contained in:
parent
813151307f
commit
21284e2419
@ -50,3 +50,10 @@ div[class^="category-title-header"] {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@if $plugin_outlet == "header-list-container-bottom" {
|
||||
#header-list-area {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
{{#if (eq (theme-setting "plugin_outlet") "above-main-container")}}
|
||||
<DiscourseCategoryBanners />
|
||||
{{/if}}
|
@ -1,3 +1,3 @@
|
||||
{{#if (theme-setting "show_above_site_header")}}
|
||||
{{#if (eq (theme-setting "plugin_outlet") "above-site-header")}}
|
||||
<DiscourseCategoryBanners />
|
||||
{{/if}}
|
@ -1,3 +1,3 @@
|
||||
{{#if (theme-setting "show_below_site_header")}}
|
||||
{{#if (eq (theme-setting "plugin_outlet") "below-site-header")}}
|
||||
<DiscourseCategoryBanners />
|
||||
{{/if}}
|
@ -0,0 +1,3 @@
|
||||
{{#if (eq (theme-setting "plugin_outlet") "header-list-container-bottom")}}
|
||||
<DiscourseCategoryBanners />
|
||||
{{/if}}
|
18
settings.yml
18
settings.yml
@ -32,15 +32,15 @@ categories:
|
||||
<li> only_sub - only subcategories of the named category.
|
||||
</ul>
|
||||
|
||||
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."
|
||||
plugin_outlet:
|
||||
default: "below-site-header"
|
||||
type: "enum"
|
||||
choices:
|
||||
- "below-site-header"
|
||||
- "above-site-header"
|
||||
- "above-main-container"
|
||||
- "header-list-container-bottom"
|
||||
description: "Changes the position of the banner on the page."
|
||||
|
||||
show_category_icon:
|
||||
default: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user