mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
9380209670
refs TryGhost/Team#3008 --- <!-- Leave the line below if you'd like GitHub Copilot to generate a summary from your commit --> <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 2a60623</samp> This pull request adds a new experimental feature for displaying an announcement bar at the top of the site. It introduces a new component template and class for the announcement bar, a new feature flag and its UI controls, and some CSS adjustments for the editor input and the announcement bar.
24 lines
1.1 KiB
Handlebars
24 lines
1.1 KiB
Handlebars
<div class="gh-stack">
|
|
<form>
|
|
{{#each @themeSettings as |setting index|}}
|
|
{{#if (eq setting.type "select")}}
|
|
<CustomThemeSettings::Select @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "boolean")}}
|
|
<CustomThemeSettings::Boolean @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "color")}}
|
|
<CustomThemeSettings::Color @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "text")}}
|
|
<CustomThemeSettings::Text @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{#if (eq setting.type "image")}}
|
|
<CustomThemeSettings::Image @setting={{setting}} @index={{index}} @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
{{/each}}
|
|
{{#if (feature 'announcementBar')}}
|
|
<CustomThemeSettings::Announcement @onChange={{@updatePreview}} />
|
|
{{/if}}
|
|
</form>
|
|
</div> |