mirror of
https://github.com/getgrav/grav.git
synced 2026-03-11 23:21:01 +01:00
support both alt and alt_text
This commit is contained in:
@@ -288,6 +288,8 @@ class Medium extends Data implements RenderableInterface
|
||||
$attributes['alt'] = $alt;
|
||||
} elseif (!empty($this->items['alt'])) {
|
||||
$attributes['alt'] = $this->items['alt'];
|
||||
} elseif (!empty($this->items['alt_text'])) {
|
||||
$attributes['alt'] = $this->items['alt_text'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user