mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Related to Issue #3927 {NEWS_IMAGE: alt=description} now includes the alt value when included in a news body.
This commit is contained in:
parent
ebba6f0ec5
commit
4bad7825df
@ -493,10 +493,11 @@ class news_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
$style = !empty($this->param['thumbnail']) ? $this->param['thumbnail'] : '';
|
||||
$alt = !empty($parm['alt']) ? $parm['alt'] : basename($srcPath);
|
||||
|
||||
$imgParms = array(
|
||||
'class' => $class,
|
||||
'alt' => basename($srcPath),
|
||||
'alt' => $alt,
|
||||
'style' => $style,
|
||||
'placeholder' => varset($parm['placeholder']),
|
||||
'legacy' => '{e_IMAGE}newspost_images'
|
||||
|
Loading…
x
Reference in New Issue
Block a user