1
0
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:
SecretR
2013-10-03 12:09:35 +03:00
parent eff1635740
commit 3e11f03137

View File

@@ -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');
}