mirror of
https://github.com/e107inc/e107.git
synced 2025-07-12 18:46:20 +02:00
Added option to send custom template code directly to bbarea() function.
This commit is contained in:
@ -517,6 +517,11 @@ class e_bbcode
|
|||||||
{
|
{
|
||||||
$BBCODE_TEMPLATE = $temp[$template];
|
$BBCODE_TEMPLATE = $temp[$template];
|
||||||
}
|
}
|
||||||
|
elseif(strpos($template,"{")!==false) // custom template provided manually. eg. $template = "<div class='btn-group inline-text'>{BB=link}{BB=b}{BB=i}{BB=u}{BB=img}{BB=format}</div>"
|
||||||
|
{
|
||||||
|
$BBCODE_TEMPLATE = $template;
|
||||||
|
$template = 'comment';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$BBCODE_TEMPLATE = $BBCODE_TEMPLATE;
|
$BBCODE_TEMPLATE = $BBCODE_TEMPLATE;
|
||||||
|
Reference in New Issue
Block a user