mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
44deb1c0df
This also adds functionality to Modals, so they can have multiple styles, e.g 'wide' and 'centered'.
12 lines
937 B
Handlebars
12 lines
937 B
Handlebars
<aside class="modal-background"></aside>
|
|
<article class="modal{{#if options.type}}-{{options.type}}{{/if}} {{#if options.style}}{{#each options.style}}modal-style-{{this}} {{/each}}{{/if}}{{options.animation}} js-modal">
|
|
{{#if content.title}}<header class="modal-header"><h1>{{content.title}}</h1>{{#if options.close}}<a class="close" href="#"><span class="hidden">Close</span></a>{{/if}}</header>{{/if}}
|
|
<section class="modal-content">
|
|
</section>
|
|
{{#if options.confirm}}
|
|
<footer class="modal-footer">
|
|
<button class="js-button-accept {{#if options.confirm.accept.buttonClass}}{{options.confirm.accept.buttonClass}}{{else}}button-add{{/if}}">{{options.confirm.accept.text}}</button>
|
|
<button class="js-button-reject {{#if options.confirm.reject.buttonClass}}{{options.confirm.reject.buttonClass}}{{else}}button-delete{{/if}}">{{options.confirm.reject.text}}</button>
|
|
</footer>
|
|
{{/if}}
|
|
</article> |