mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -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;
|
||||
}
|
||||
|
|
|
@ -1842,7 +1842,7 @@ $lang['BOLD'] = 'Bold text: [b]text[/b] (Ctrl+B)';
|
|||
$lang['ITALIC'] = 'Italic text: [i]text[/i] (Ctrl+I)';
|
||||
$lang['UNDERLINE'] = 'Underline text: [u]text[/u] (Ctrl+U)';
|
||||
$lang['STRIKEOUT'] = 'Strikeout text: [s]text[/s] (Ctrl+S)';
|
||||
$lang['BOX_TAG'] = 'Frame around text: [box]text[/box]';
|
||||
$lang['BOX_TAG'] = 'Frame around text: [box]text[/box] or [box=#333,#888]text[/box]';
|
||||
$lang['INDENT_TAG'] = 'Insert indent: [indent]text[/indent]';
|
||||
$lang['SUPERSCRIPT'] = 'Superscript text: [sup]text[/sup]';
|
||||
$lang['SUBSCRIPT'] = 'Subscript text: [sub]text[/sub]';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue