1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-27 08:14:46 +02:00

Support for theme glyphicons.

This commit is contained in:
Cameron
2017-01-01 08:13:42 -08:00
parent 74dc23d85f
commit 882efff6ec
5 changed files with 166 additions and 20 deletions

View File

@@ -1408,8 +1408,6 @@ class media_admin_ui extends e_admin_ui
$items = array();
//TODO FIXME Upgrade to bs3 when Bootstrap3 Admin is ready.
$bs2 = e107::getMedia()->getGlyphs('bs3','glyphicon-');
foreach($bs2 as $val)
@@ -1441,6 +1439,50 @@ class media_admin_ui extends e_admin_ui
);
}
$custom = e107::getThemeGlyphs();
if(!empty($custom))
{
foreach($custom as $glyphConfig)
{
$tmp = e107::getMedia()->getGlyphs($glyphConfig,$glyphConfig['prefix']);
if(!empty($tmp))
{
foreach($tmp as $val)
{
$items[] = array(
'previewUrl' => $val,
'saveValue' => $val.'.glyph',
'thumbUrl' => $val,
'title' => $val,
'slideCaption' => ucfirst($glyphConfig['name']),
'slideCategory' => $glyphConfig['name']
);
}
}
}
}
if(vartrue($parm['search']))
{