larva components: c-figcaption
Available Variants
prototypec-figcaption
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
c-figcaption
Twig The markup file.
<figcaption class="c-figcaption {{ modifier_class }} {{ c_figcaption_classes }}">
{% if c_figcaption_inner %}
<div class="c-figcaption__inner {{ c_figcaption_inner_classes }}">
{% endif %}
{% if c_figcaption_caption_markup %}
<span class="{{ c_figcaption_caption_classes }}">{{ c_figcaption_caption_markup|raw }}</span>
{% endif %}
{% if c_figcaption_credit_text_markup %}
<cite class="{{ c_figcaption_credit_classes }}">{{ c_figcaption_credit_text_markup }}</cite>
{% else %}
{% if c_figcaption_credit_text %}
<cite class="{{ c_figcaption_credit_classes }}">{{ c_figcaption_credit_text }}</cite>
{% endif %}
{% endif %}
{% if c_figcaption_inner %}
</div>
{% endif %}
</figcaption>
c-figcaption
JSON The data object for this pattern.
{
"c_figcaption_classes": "",
"c_figcaption_caption_markup": "Protest art hangs at Hong Kong International Airport.",
"c_figcaption_caption_classes": "",
"c_figcaption_credit_text": "Courtesty Wong Ka Ying",
"c_figcaption_credit_text_markup": "",
"c_figcaption_credit_classes": "",
"c_figcaption_inner": false,
"c_figcaption_inner_classes": ""
}