mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
feat(bbcode): Implement color customization for [box]
tag (#1920)
* feat(bbcode): implement color customization for `[box]` tag * feat(bbcode): implement color customization for `[box]` tag
This commit is contained in:
parent
6d6786481e
commit
4c24cb65bf
3 changed files with 22 additions and 3 deletions
|
@ -83,6 +83,23 @@ HTML;
|
|||
<span class="post-hr">-</span>
|
||||
HTML;
|
||||
|
||||
// Box
|
||||
$bbcode_tpl['box_open'] = <<<HTML
|
||||
<div class="post-box-default"><div class="post-box">
|
||||
HTML;
|
||||
|
||||
$bbcode_tpl['box_open_color'] = <<<HTML
|
||||
<div class="post-box-default"><div class="post-box" style="border-color: $1; background-color: $2;">
|
||||
HTML;
|
||||
|
||||
$bbcode_tpl['box_open_color_single'] = <<<HTML
|
||||
<div class="post-box-default"><div class="post-box" style="border-color: $1;">
|
||||
HTML;
|
||||
|
||||
$bbcode_tpl['box_close'] = <<<HTML
|
||||
</div></div>
|
||||
HTML;
|
||||
|
||||
array_deep($bbcode_tpl, 'bbcode_tpl_compact');
|
||||
return $bbcode_tpl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue