Add colors for components
This commit is contained in:
parent
df7c0a2346
commit
0eebffdf13
|
@ -174,6 +174,9 @@ abstract class EventManager extends ComponentBase
|
||||||
$this->settings = [
|
$this->settings = [
|
||||||
...$this->settings,
|
...$this->settings,
|
||||||
'primary_color' => Settings::get('primary_color'),
|
'primary_color' => Settings::get('primary_color'),
|
||||||
|
'secondary_color' => Settings::get('secondary_color'),
|
||||||
|
'circle_color' => Settings::get('circle_color'),
|
||||||
|
'font_color' => Settings::get('font_color'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
|
|
||||||
<event-description
|
<event-description
|
||||||
description-var-name="adrema_event_description"
|
description-var-name="adrema_event_description"
|
||||||
style="--primary: {{__SELF__.settings.primary_color}}; --primaryfg: #d1f8ff; --secondary: #800a19; --font: hsl(181, 84%, 78%); --circle: hsl(181, 86%, 16%)"
|
style="--primary: {{__SELF__.settings.primary_color}}; --secondary: {{__SELF__.settings.secondary_color}}; --font: {{__SELF__.settings.font_color}}; --circle: {{__SELF__.settings.circle_color}}"
|
||||||
image="{{__SELF__.event.image }}"
|
image="{{__SELF__.event.image }}"
|
||||||
></event-description>
|
></event-description>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% include 'silva.adrema::head' %}
|
{% include 'silva.adrema::head' %}
|
||||||
|
|
||||||
<event-index
|
<event-index
|
||||||
style="--primary: {{__SELF__.settings.primary_color}}; --primaryfg: #d1f8ff; --secondary: #800a19; --font: hsl(181, 84%, 78%); --circle: hsl(181, 86%, 16%)"
|
style="--primary: {{__SELF__.settings.primary_color}}; --secondary: {{__SELF__.settings.secondary_color}}; --font: {{__SELF__.settings.font_color}}; --circle: {{__SELF__.settings.circle_color}}"
|
||||||
index-url="{{__SELF__.settings.indexUrl}}"
|
index-url="{{__SELF__.settings.indexUrl}}"
|
||||||
single-url="{{__SELF__.settings.singleUrl}}"
|
single-url="{{__SELF__.settings.singleUrl}}"
|
||||||
register-url="{{__SELF__.settings.registerUrl}}"
|
register-url="{{__SELF__.settings.registerUrl}}"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% include 'silva.adrema::head' %}
|
{% include 'silva.adrema::head' %}
|
||||||
|
|
||||||
<event-form
|
<event-form
|
||||||
style="--primary: {{__SELF__.settings.primary_color}}; --primaryfg: #d1f8ff; --secondary: #800a19; --font: hsl(181, 84%, 78%); --circle: hsl(181, 86%, 16%)"
|
style="--primary: {{__SELF__.settings.primary_color}}; --secondary: {{__SELF__.settings.secondary_color}}; --font: {{__SELF__.settings.font_color}}; --circle: {{__SELF__.settings.circle_color}}"
|
||||||
index-url="{{__SELF__.settings.indexUrl}}"
|
index-url="{{__SELF__.settings.indexUrl}}"
|
||||||
single-url="{{__SELF__.settings.singleUrl}}"
|
single-url="{{__SELF__.settings.singleUrl}}"
|
||||||
register-url="{{__SELF__.settings.registerUrl}}"
|
register-url="{{__SELF__.settings.registerUrl}}"
|
||||||
|
|
Loading…
Reference in New Issue