mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +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();
|
$tp = e107::getParser();
|
||||||
$title = $tp->toGlyph($this->page['menu_title']); // (preg_replace('/i_([\w]*)/',"<i class='i_$1'></i>",$this->page['menu_title']);
|
$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');
|
return $tp->toHTML($title, true, 'TITLE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user