Commit | Line | Data |
---|---|---|
d47835d8 AE |
1 | $buttons.push('html'); |
2 | $buttons.push('separator'); | |
3 | ||
0f236232 | 4 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('b')} |
d47835d8 | 5 | $buttons.push('bold'); |
0f236232 MS |
6 | {/if} |
7 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('i')} | |
d47835d8 | 8 | $buttons.push('italic'); |
0f236232 MS |
9 | {/if} |
10 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('u')} | |
d47835d8 | 11 | $buttons.push('underline'); |
0f236232 MS |
12 | {/if} |
13 | ||
d47835d8 AE |
14 | if ($buttons.length) { |
15 | $buttons.push('separator'); | |
16 | } | |
17 | ||
0f236232 | 18 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('s')} |
d47835d8 | 19 | $buttons.push('deleted'); |
0f236232 MS |
20 | {/if} |
21 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('sub')} | |
d47835d8 | 22 | $buttons.push('subscript'); |
0f236232 MS |
23 | {/if} |
24 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('sup')} | |
d47835d8 | 25 | $buttons.push('superscript'); |
0f236232 MS |
26 | {/if} |
27 | ||
d47835d8 AE |
28 | if ($buttons.length && $buttons[$buttons.length -1] != 'separator') { |
29 | $buttons.push('separator'); | |
0f236232 MS |
30 | } |
31 | ||
0f236232 | 32 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('list')} |
d47835d8 AE |
33 | $buttons.push('orderedlist'); |
34 | $buttons.push('unorderedlist'); | |
35 | $buttons.push('outdent'); | |
36 | $buttons.push('indent'); | |
0f236232 MS |
37 | {/if} |
38 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('align')} | |
d47835d8 | 39 | $buttons.push('alignment'); |
0f236232 MS |
40 | {/if} |
41 | ||
d47835d8 AE |
42 | if ($buttons.length && $buttons[$buttons.length -1] != 'separator') { |
43 | $buttons.push('separator'); | |
44 | } | |
45 | ||
0f236232 | 46 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('font')} |
c1b6e4c6 | 47 | $buttons.push('fontfamily'); |
0f236232 MS |
48 | {/if} |
49 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('size')} | |
c1b6e4c6 | 50 | $buttons.push('fontsize'); |
0f236232 MS |
51 | {/if} |
52 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('color')} | |
c1b6e4c6 | 53 | $buttons.push('fontcolor'); |
0f236232 | 54 | {/if} |
c1b6e4c6 AE |
55 | |
56 | if ($buttons.length && $buttons[$buttons.length -1] != 'separator') { | |
57 | $buttons.push('separator'); | |
58 | } | |
0f236232 | 59 | |
0f236232 | 60 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('url')} |
d47835d8 | 61 | $buttons.push('link'); |
0f236232 MS |
62 | {/if} |
63 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('img')} | |
d47835d8 | 64 | $buttons.push('image'); |
0f236232 MS |
65 | {/if} |
66 | {if $__wcf->getBBCodeHandler()->isAvailableBBCode('table')} | |
d47835d8 | 67 | $buttons.push('table'); |
0f236232 | 68 | {/if} |
d47835d8 | 69 | |
67837071 AE |
70 | {if $wysiwygEnableUpload} |
71 | $buttons.push('upload'); | |
72 | {/if} | |
73 | ||
ef118b53 | 74 | {if MODULE_SMILEY && (!$permissionCanUseSmilies|isset || $__wcf->getSession()->getPermission($permissionCanUseSmilies)) && $defaultSmilies|isset && $defaultSmilies|count} |
d47835d8 | 75 | $buttons.push('smiley'); |
0f236232 MS |
76 | {/if} |
77 | ||
d47835d8 AE |
78 | if ($buttons.length && $buttons[$buttons.length -1] != 'separator') { |
79 | $buttons.push('separator'); | |
0f236232 | 80 | } |