|
3 | 3 |
|
4 | 4 | var form_name = 'user_signature'; |
5 | 5 | var text_name = 'signature'; |
| 6 | + var load_draft = false; |
| 7 | + var upload = false; |
6 | 8 |
|
7 | 9 | // Define the bbCode tags |
8 | 10 | var bbcode = new Array(); |
|
20 | 22 | o: '{LA_BBCODE_O_HELP}', |
21 | 23 | p: '{LA_BBCODE_P_HELP}', |
22 | 24 | w: '{LA_BBCODE_W_HELP}', |
| 25 | + a: '{LA_BBCODE_A_HELP}', |
23 | 26 | s: '{LA_BBCODE_S_HELP}', |
24 | 27 | f: '{LA_BBCODE_F_HELP}', |
25 | 28 | y: '{LA_BBCODE_Y_HELP}', |
26 | | - d: '{LA_BBCODE_D_HELP}', |
27 | | - tip: '{L_STYLES_TIP}' |
| 29 | + d: '{LA_BBCODE_D_HELP}' |
28 | 30 | <!-- BEGIN custom_tags --> |
29 | 31 | ,cb_{custom_tags.BBCODE_ID}{L_COLON} '{custom_tags.A_BBCODE_HELPLINE}' |
30 | 32 | <!-- END custom_tags --> |
31 | 33 | } |
32 | 34 |
|
33 | 35 | // ]]> |
34 | 36 | </script> |
35 | | -<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script> |
| 37 | +<!-- INCLUDEJS {T_ASSETS_PATH}/javascript/editor.js --> |
36 | 38 |
|
37 | 39 | <form id="user_signature" method="post" action="{U_ACTION}"> |
38 | 40 |
|
|
48 | 50 | <p>{L_SIGNATURE_EXPLAIN}</p> |
49 | 51 |
|
50 | 52 | <div id="format-buttons"> |
51 | | - <input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" /> |
52 | | - <input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" /> |
53 | | - <input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" /> |
54 | | - <input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" /> |
55 | | - <input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" /> |
56 | | - <input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" /> |
57 | | - <input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" /> |
58 | | - <input type="button" class="button2" accesskey="y" name="addlistitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('y')" onmouseout="helpline('tip')" /> |
| 53 | + <input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" /> |
| 54 | + <input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" /> |
| 55 | + <input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" /> |
| 56 | + <!-- IF S_BBCODE_QUOTE --> |
| 57 | + <input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" /> |
| 58 | + <!-- ENDIF --> |
| 59 | + <input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" /> |
| 60 | + <input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" /> |
| 61 | + <input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" /> |
| 62 | + <input type="button" class="button2" accesskey="y" name="addlistitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" /> |
59 | 63 | <!-- IF S_BBCODE_IMG --> |
60 | | - <input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" /> |
| 64 | + <input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" /> |
61 | 65 | <!-- ENDIF --> |
62 | 66 | <!-- IF S_LINKS_ALLOWED --> |
63 | | - <input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" /> |
| 67 | + <input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" /> |
64 | 68 | <!-- ENDIF --> |
65 | 69 | <!-- IF S_BBCODE_FLASH --> |
66 | | - <input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" /> |
| 70 | + <input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" /> |
67 | 71 | <!-- ENDIF --> |
68 | | - |
69 | | - {L_FONT_SIZE}{L_COLON} <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_FONT_SIZE}" onmouseover="helpline('f')" onmouseout="helpline('tip')"> |
| 72 | + <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}"> |
70 | 73 | <option value="50">{L_FONT_TINY}</option> |
71 | 74 | <option value="85">{L_FONT_SMALL}</option> |
72 | 75 | <option value="100" selected="selected">{L_FONT_NORMAL}</option> |
73 | | - <option value="150">{L_FONT_LARGE}</option> |
74 | | - <option value="200">{L_FONT_HUGE}</option> |
| 76 | + <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 --> |
| 77 | + <option value="150">{L_FONT_LARGE}</option> |
| 78 | + <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 --> |
| 79 | + <option value="200">{L_FONT_HUGE}</option> |
| 80 | + <!-- ENDIF --> |
| 81 | + <!-- ENDIF --> |
75 | 82 | </select> |
76 | | - <!-- IF .custom_tags --> |
77 | | - <br /><br /> |
78 | 83 | <!-- BEGIN custom_tags --> |
79 | | - <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> /> |
| 84 | + <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" /> |
80 | 85 | <!-- END custom_tags --> |
81 | | - <!-- ENDIF --> |
82 | | - |
83 | 86 | </div> |
84 | 87 |
|
85 | | - <p><input type="text" class="text full" style="border: 0; background: none;" name="helpbox" value="{L_STYLES_TIP}" /></p> |
86 | | - |
87 | 88 | <dl> |
88 | | - <dt style="width: 90px;"> |
89 | | - <script type="text/javascript"> |
90 | | - // <![CDATA[ |
91 | | - colorPalette('v', 12, 10); |
92 | | - // ]]> |
93 | | - </script> |
| 89 | + <dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true"> |
94 | 90 | </dt> |
95 | | - <dd style="margin-{S_CONTENT_FLOW_BEGIN}{L_COLON} 90px;"><textarea name="signature" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{SIGNATURE}</textarea></dd> |
96 | | - <dd style="margin-{S_CONTENT_FLOW_BEGIN}{L_COLON} 90px; margin-top: 5px;"> |
| 91 | + <dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;"><textarea name="signature" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{SIGNATURE}</textarea></dd> |
| 92 | + <dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 5px;"> |
97 | 93 | <!-- IF S_BBCODE_ALLOWED --> |
98 | 94 | <label><input type="checkbox" class="radio" name="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label> |
99 | 95 | <!-- ENDIF --> |
|
104 | 100 | <label><input type="checkbox" class="radio" name="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label> |
105 | 101 | <!-- ENDIF --> |
106 | 102 | </dd> |
107 | | - <dd style="margin-{S_CONTENT_FLOW_BEGIN}{L_COLON} 90px; margin-top: 10px;"><strong>{L_OPTIONS}{L_COLON} </strong>{BBCODE_STATUS} :: {IMG_STATUS} :: {FLASH_STATUS} :: {URL_STATUS} :: {SMILIES_STATUS}</dd> |
| 103 | + <dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 10px;"><strong>{L_OPTIONS}{L_COLON} </strong>{BBCODE_STATUS} :: {IMG_STATUS} :: {FLASH_STATUS} :: {URL_STATUS} :: {SMILIES_STATUS}</dd> |
108 | 104 | </dl> |
109 | 105 | </fieldset> |
110 | 106 |
|
|
0 commit comments