mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Fix for font-awesome overlay issue. Renamed glyph() as toGlyph() for consistency.
This commit is contained in:
@@ -2407,6 +2407,10 @@ class e_parse extends e_parser
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Convert Text to a suitable format for use in emails. eg. relative links will be replaced with full links etc.
|
||||
* @param string $text
|
||||
@@ -2613,14 +2617,11 @@ class e_parser
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Parse xxxxx.glyph file to bootstrap glyph format.
|
||||
* @return FALSE if not a glyph file or if bootstrap is not found.
|
||||
*/
|
||||
public function glyph($text)
|
||||
public function toGlyph($text)
|
||||
{
|
||||
if(!deftrue('BOOTSTRAP'))
|
||||
{
|
||||
@@ -2639,6 +2640,24 @@ class e_parser
|
||||
// return $text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Display an icon.
|
||||
* @param string $icon
|
||||
* @example $tp->toIcon("{e_IMAGES}icons/something.png");
|
||||
*/
|
||||
public function toIcon($icon='')
|
||||
{
|
||||
if(!vartrue($icon))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$path = $this->replaceConstants($icon,'full');
|
||||
return "<img class='icon' src='".$path."' alt='".basename($path)."' />";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Parse new <bbcode> tags into bbcode output.
|
||||
* @param $retainTags : when you want to replace html and retain the <bbcode> tags wrapping it.
|
||||
|
Reference in New Issue
Block a user