Last active
November 3, 2015 16:12
-
-
Save snarky/96524c6f87d55cf88019 to your computer and use it in GitHub Desktop.
eZ Publish 4 : HTML5 figure with caption
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <figure class="{if $object_parameters.align}object-{$object_parameters.align}{/if}{if ne($classification|trim,'')} {$classification|wash}{/if}"{if is_set($object_parameters.id)} id="{$object_parameters.id}"{/if}> | |
| <img src="{$object.data_map.image.content[$object_parameters.size].url|ezroot(no)}" width="{$object.data_map.image.content.width}" height="{$object.data_map.image.content.height}" alt="{$object.data_map.image.content.alternative_text}" /> | |
| {if and(is_set($object.data_map.caption), $object.data_map.caption.has_content)} | |
| <figcaption>{attribute_view_gui attribute=$object.data_map.caption}</figcaption> | |
| {/if} | |
| </figure> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment