XenConcept
Well-known member
PHP:
public static function parse($tagChildren, $tagOption, $tag, array $options, \XF\BbCode\Renderer\AbstractRenderer $renderer)
{
$text = reset($tag['children']);
$text = trim($text);
if (empty($text))
{
return '';
}
if (substr($text, 0, 3) == 'fa-')
{
$text = substr($text, 3);
}
$params = [
'icon' => $text
];
return \XF::app()->templater()->renderTemplate('public:rd_bb_code_fontawesome', $params);
}
On the page : http://localhost/admin.php?bb-codes/ I obey this error
Code:
Template errors
Template public:_help_page_bb_codes: Accessed unknown getter 'description' on XF:BbCode[fa] (src\XF\Mvc\Entity\Entity.php:181)
Code php :