mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Make menu title shortcode work without bootstrap/.glyph
This commit is contained in:
@@ -198,6 +198,12 @@ class cpage_shortcodes extends e_shortcode
|
||||
$tp = e107::getParser();
|
||||
$title = $tp->toGlyph($this->page['menu_title']); // (preg_replace('/i_([\w]*)/',"<i class='i_$1'></i>",$this->page['menu_title']);
|
||||
|
||||
// make it work without glyph
|
||||
if(!$title)
|
||||
{
|
||||
$title = $this->page['menu_title'];
|
||||
}
|
||||
|
||||
return $tp->toHTML($title, true, 'TITLE');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user