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:
@@ -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']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user