1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Closes #5365 Image alt attribute management via Media Manager. Test added.

This commit is contained in:
camer0n
2024-12-19 13:17:32 -08:00
parent 176f8eb325
commit b25e60888b
7 changed files with 132 additions and 38 deletions

View File

@@ -493,7 +493,7 @@ class news_shortcodes extends e_shortcode
}
$style = !empty($this->param['thumbnail']) ? $this->param['thumbnail'] : '';
$alt = !empty($parm['alt']) ? $parm['alt'] : basename($srcPath);
$alt = !empty($parm['alt']) ? $parm['alt'] : '';
$imgParms = array(
'class' => $class,

View File

@@ -136,6 +136,9 @@ CREATE TABLE core_media (
media_userclass varchar(255) NOT NULL default '',
media_usedby text NOT NULL,
media_tags text NOT NULL,
media_alt varchar(255) NOT NULL default '',
media_credits varchar(255) NOT NULL default '',
media_expires int(10) unsigned NOT NULL default '0',
PRIMARY KEY (media_id),
UNIQUE KEY media_url (media_url)
) ENGINE=InnoDB;