forked from ZwiiCMS-Team/ZwiiCMS
Accessibilité = attribut alt dans les icônes
This commit is contained in:
parent
0025dba2aa
commit
ec8f179279
@ -467,12 +467,13 @@ class template
|
||||
'href' => '',
|
||||
'attr' => '',
|
||||
'help' => '',
|
||||
'id' => ''
|
||||
'id' => '',
|
||||
'alt' => '',
|
||||
], $attributes);
|
||||
// Traduction de l'aide
|
||||
$attributes['help'] = helper::translate($attributes['help']);
|
||||
// Contenu de l'icône
|
||||
$item = $attributes['href'] ? '<a id="' . $attributes['id'] . '" data-tippy-content="' . $attributes['help'] . '" href="' . $attributes['href'] . '" ' . $attributes['attr'] . ' >' : '';
|
||||
$item = $attributes['href'] ? '<a id="' . $attributes['id'] . '" data-tippy-content="' . $attributes['help'] . '" alt="' . $attributes['help'] . '" href="' . $attributes['href'] . '" ' . $attributes['attr'] . ' >' : '';
|
||||
$item .= '<span class="zwiico-' . $ico . ($attributes['margin'] ? ' zwiico-margin-' . $attributes['margin'] : '') . ($attributes['animate'] ? ' animate-spin' : '') . '" style="font-size:' . $attributes['fontSize'] . '"><!----></span>';
|
||||
$item .= ($attributes['href']) ? '</a>' : '';
|
||||
return $item;
|
||||
|
Loading…
Reference in New Issue
Block a user