You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{{!
|
|
|
|
@template theme_boost/block
|
|
|
|
|
|
|
|
Example context (json):
|
|
|
|
{
|
|
|
|
"id": "block0",
|
|
|
|
"showskiplink": true,
|
|
|
|
"type": "html",
|
|
|
|
"ariarole": "complementary",
|
|
|
|
"title": "Test block",
|
|
|
|
"blockinstanceid": 1,
|
|
|
|
"content": "<p>Hello block world!</p>"
|
|
|
|
}
|
|
|
|
|
|
|
|
}}
|
|
|
|
{{! Block Skip Link }}
|
|
|
|
{{#showskiplink}}
|
|
|
|
<a href="#sb-{{skipid}}" class="sr-only sr-only-focusable">{{#str}}skipa, access, {{title}}{{/str}}</a>
|
|
|
|
{{/showskiplink}}
|
|
|
|
|
|
|
|
{{! Start Block Container }}
|
|
|
|
<aside id="{{id}}"
|
|
|
|
class="{{#hidden}}hidden{{/hidden}} block block_{{type}} {{#hascontrols}}block_with_controls{{/hascontrols}} card m-b-1"
|
|
|
|
role="{{ariarole}}"
|
|
|
|
data-block="{{type}}"
|
|
|
|
{{#arialabel}}
|
|
|
|
aria-label={{#quote}}{{{arialabel}}}{{/quote}}
|
|
|
|
{{/arialabel}}
|
|
|
|
{{^arialabel}}
|
|
|
|
{{#title}}
|
|
|
|
aria-labelledby="instance-{{blockinstanceid}}-header"
|
|
|
|
{{/title}}
|
|
|
|
{{/arialabel}}>
|
|
|
|
|
|
|
|
{{! Block contents }}
|
|
|
|
<div class="card-block">
|
|
|
|
|
|
|
|
{{#hascontrols}}
|
|
|
|
<div class="block-controls pull-xs-right header">
|
|
|
|
{{{controls}}}
|
|
|
|
</div>
|
|
|
|
{{/hascontrols}}
|
|
|
|
|
|
|
|
{{! Block header }}
|
|
|
|
{{#title}}
|
|
|
|
<h3 id="instance-{{blockinstanceid}}-header" class="card-title">{{{title}}}</h3>
|
|
|
|
{{/title}}
|
|
|
|
|
|
|
|
<div class="card-text content">
|
|
|
|
{{{content}}}
|
|
|
|
<div class="footer">{{{footer}}}</div>
|
|
|
|
{{{annotation}}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{! End Block Container }}
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
{{! Block Skip Link Target }}
|
|
|
|
{{#showskiplink}}
|
|
|
|
<span id="sb-{{skipid}}"></span>
|
|
|
|
{{/showskiplink}}
|