|
|
| 第1行: |
第1行: |
| <includeonly> | | <includeonly> |
| <img | | <img |
| {* Required attribute *}
| |
| {if $src}src="{$src}"{/if} | | {if $src}src="{$src}"{/if} |
|
| |
| {* Core attributes *}
| |
| {if $alt}alt="{$alt}"{/if}
| |
| {if $width}width="{$width}"{/if}
| |
| {if $height}height="{$height}"{/if}
| |
|
| |
| {* Loading behavior *}
| |
| {if $loading}loading="{$loading}"{/if}
| |
| {if $decoding}decoding="{$decoding}"{/if}
| |
| {if $fetchpriority}fetchpriority="{$fetchpriority}"{/if}
| |
|
| |
| {* Responsive image attributes *}
| |
| {if $sizes}sizes="{$sizes}"{/if}
| |
| {if $srcset}srcset="{$srcset}"{/if}
| |
|
| |
| {* Security and privacy *}
| |
| {if $crossorigin}crossorigin="{$crossorigin}"{/if}
| |
| {if $referrerpolicy}referrerpolicy="{$referrerpolicy}"{/if}
| |
|
| |
| {* Image maps *}
| |
| {if $usemap}usemap="#{$usemap}"{/if}
| |
| {if $ismap}ismap{/if}
| |
|
| |
| {* Performance monitoring *}
| |
| {if $elementtiming}elementtiming="{$elementtiming}"{/if}
| |
|
| |
| {* Attribution reporting - Experimental *}
| |
| {if $attributionsrc}attributionsrc="{$attributionsrc}"{/if}
| |
|
| |
| {* Standard HTML attributes *}
| |
| {if $id}id="{$id}"{/if}
| |
| {if $class}class="{$class}"{/if}
| |
| {if $style}style="{$style}"{/if}
| |
| {if $title}title="{$title}"{/if}
| |
|
| |
| {* Accessibility *}
| |
| {if $role}role="{$role}"{/if}
| |
| {if $aria}
| |
| {foreach $aria as $key => $value}
| |
| aria-{$key}="{$value}"
| |
| {/foreach}
| |
| {/if}
| |
|
| |
| {* Data attributes *}
| |
| {if $data_attributes}
| |
| {foreach $data_attributes as $key => $value}
| |
| data-{$key}="{$value}"
| |
| {/foreach}
| |
| {/if}
| |
| /> | | /> |
| </includeonly> | | </includeonly> |