mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 21:26:58 +02:00
Update monstra/helpers/html.php
This commit is contained in:
@@ -255,6 +255,7 @@
|
|||||||
|
|
||||||
// Add the image link
|
// Add the image link
|
||||||
$attributes['src'] = $file;
|
$attributes['src'] = $file;
|
||||||
|
$attributes['alt'] = (isset($attributes['alt'])) ? $attributes['alt'] : pathinfo($file, PATHINFO_FILENAME);
|
||||||
|
|
||||||
return '<img'.Html::attributes($attributes).' />';
|
return '<img'.Html::attributes($attributes).' />';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user