Closed Jimmi08 closed 1 year ago
@Jimmi08 Try modifying e107_admin/theme.php: (adding the setTheme() line )
if(empty($_POST) && deftrue('e_DEVELOPER') || deftrue('e_DEBUG')) // check for new theme media and import.
{
$name = e107::getPref('sitetheme');
$this->themeObj->setTheme($name, false);
e107::getMedia()->import('_common_image', e_THEME.$name, '', 'min-size=10000');
e107::getMessage()->addInfo('Developer/Debug Mode: Scanning theme images folder for new media to import.');
}
Does it help?
I added it, but maybe I do something wrong:
This is original path (wrong, just testing):
/fonts/pe-icon-7-stroke.css
I checked S_Meta_theme.cache.php too.
It is loaded.
Then I changed it to:
path='assets/css/fonts/pe-icon-7-stroke.css'
Cleared cache. Checked theme array in S_Meta_theme.cache.php Checked theme array after SetTheme() Resaved theme prefs to be sure. There is the correct path:
"glyphs": [
{
"name": "pixeden",
"pattern": "\\.(pe-7s-[a-z-0-9]*):before\\{",
"path": "assets\/css\/fonts\/pe-icon-7-stroke.css",
"class": "pe",
"prefix": "pe-7s-",
"tag": "span"
}
],
But wysiwyg is loaded original path until I don't uninstall theme.
You can test this with landingzero theme.
EDIT: Then it hit me to check database:
'sitetheme_glyphicons' =>
array (
0 =>
array (
'name' => 'pixeden',
'pattern' => '\\.(pe-7s-[a-z-0-9]*):before\\{',
'path' => 'fonts/pe-icon-7-stroke.css',
'class' => 'pe',
'prefix' => 'pe-7s-',
'tag' => 'span',
),
),
This is problem:
if(empty($_POST)
To get this work, something has to be changed in theme prefs.
It is solved in fact. Ask for any edit is logical. Thanks
Bug Description
It is not possible to change the path to custom glyphicons in the admin area without uninstalling the theme
How to reproduce
Theme.xml:
Result in admin area:
If you change the path (in my case), old path is still loaded. Clearing cache didn't help.
Thanks