Код: Выделить всё
'#\[spoiler(?:=(.*?))?:$uid\]((?!\[spoiler(?:=.*?)?:$uid\]).)?#ise' => "\$this->bbcode_second_pass_spoiler('\$1', '\$2')"
Код: Выделить всё
'#\[spoiler(?:="(.*?)")?:$uid\]((?!\[spoiler(?:=".*?")?:$uid\]).)?#ise' => "\$this->bbcode_second_pass_spoiler('\$1', '\$2')"
Код: Выделить всё
'spoiler' => array('bbcode_id' => 13, 'regexp' => array('#\[spoiler(?:=(.*?))?\](.+)\[/spoiler\]#ise' => "\$this->bbcode_spoiler('\$0')")),
Код: Выделить всё
'spoiler' => array('bbcode_id' => 13, 'regexp' => array('#\[spoiler(?:="(.*?)")?\](.+)\[/spoiler\]#uise' => "\$this->bbcode_spoiler('\$0')")),
Код: Выделить всё
else if (preg_match('#^spoiler(?:=(.*?))?$#is', $buffer, $m) && substr($out, -1, 1) == '[')
Код: Выделить всё
else if (preg_match('#^spoiler(?:="(.*?)")?$#is', $buffer, $m) && substr($out, -1, 1) == '[')
Код: Выделить всё
$out .= 'spoiler=' . $username . ':' . $this->bbcode_uid . ']';
}
else
{
$out .= 'spoiler:' . $this->bbcode_uid . ']';
}
$tok = '[';
$buffer = '';
}
else if (preg_match('#^spoiler=(.*?)#is', $buffer, $m))
Код: Выделить всё
$out .= 'spoiler="' . $username . '":' . $this->bbcode_uid . ']';
}
else
{
$out .= 'spoiler:' . $this->bbcode_uid . ']';
}
$tok = '[';
$buffer = '';
}
else if (preg_match('#^spoiler="(.*?)#is', $buffer, $m))
Код: Выделить всё
'titleFormat': function(title, currentArray, currentIndex, currentOpts)
Код: Выделить всё
'hideOnContentClick': true,
Код: Выделить всё
'titleFormat': function(title, currentArray, currentIndex, currentOpts)
Код: Выделить всё
'hideOnContentClick': true,
Код: Выделить всё
[spoiler=Заголовок][/spoiler]
Код: Выделить всё
[spoiler="Заголовок"][/spoiler]
PPK