1.1 --- a/styles/cubometry-style/template/posting_buttons.html Sat Mar 10 00:18:56 2012 +0400
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,108 +0,0 @@
1.4 -
1.5 -<script type="text/javascript">
1.6 -// <![CDATA[
1.7 - var form_name = 'postform';
1.8 - var text_name = <!-- IF $SIG_EDIT -->'signature'<!-- ELSE -->'message'<!-- ENDIF -->;
1.9 - var load_draft = false;
1.10 - var upload = false;
1.11 -
1.12 - // Define the bbCode tags
1.13 - var bbcode = new Array();
1.14 - var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
1.15 - var imageTag = false;
1.16 -
1.17 - // Helpline messages
1.18 - var help_line = {
1.19 - b: '{LA_BBCODE_B_HELP}',
1.20 - i: '{LA_BBCODE_I_HELP}',
1.21 - u: '{LA_BBCODE_U_HELP}',
1.22 - q: '{LA_BBCODE_Q_HELP}',
1.23 - c: '{LA_BBCODE_C_HELP}',
1.24 - l: '{LA_BBCODE_L_HELP}',
1.25 - o: '{LA_BBCODE_O_HELP}',
1.26 - p: '{LA_BBCODE_P_HELP}',
1.27 - w: '{LA_BBCODE_W_HELP}',
1.28 - a: '{LA_BBCODE_A_HELP}',
1.29 - s: '{LA_BBCODE_S_HELP}',
1.30 - f: '{LA_BBCODE_F_HELP}',
1.31 - y: '{LA_BBCODE_Y_HELP}',
1.32 - d: '{LA_BBCODE_D_HELP}'
1.33 - <!-- BEGIN custom_tags -->
1.34 - ,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
1.35 - <!-- END custom_tags -->
1.36 - }
1.37 -
1.38 - var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
1.39 - var show_panel = 'options-panel';
1.40 -
1.41 -
1.42 -// ]]>
1.43 -</script>
1.44 -<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
1.45 -
1.46 -<!-- IF S_BBCODE_ALLOWED -->
1.47 -<div id="colour_palette" style="display: none;">
1.48 - <dl style="clear: left;">
1.49 - <dt><label>{L_FONT_COLOR}:</label></dt>
1.50 - <dd>
1.51 - <script type="text/javascript">
1.52 - // <![CDATA[
1.53 - function change_palette()
1.54 - {
1.55 - dE('colour_palette');
1.56 - e = document.getElementById('colour_palette');
1.57 -
1.58 - if (e.style.display == 'block')
1.59 - {
1.60 - document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}';
1.61 - }
1.62 - else
1.63 - {
1.64 - document.getElementById('bbpalette').value = '{LA_FONT_COLOR}';
1.65 - }
1.66 - }
1.67 -
1.68 - colorPalette('h', 15, 10);
1.69 - // ]]>
1.70 - </script>
1.71 - </dd>
1.72 - </dl>
1.73 -</div>
1.74 -
1.75 -<div id="format-buttons">
1.76 - <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}" />
1.77 - <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}" />
1.78 - <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}" />
1.79 - <!-- IF S_BBCODE_QUOTE -->
1.80 - <input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
1.81 - <!-- ENDIF -->
1.82 - <input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
1.83 - <input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
1.84 - <input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
1.85 - <input type="button" class="button2" accesskey="y" name="addlistitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
1.86 - <!-- IF S_BBCODE_IMG -->
1.87 - <input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
1.88 - <!-- ENDIF -->
1.89 - <!-- IF S_LINKS_ALLOWED -->
1.90 - <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}" />
1.91 - <!-- ENDIF -->
1.92 - <!-- IF S_BBCODE_FLASH -->
1.93 - <input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
1.94 - <!-- ENDIF -->
1.95 - <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}">
1.96 - <option value="50">{L_FONT_TINY}</option>
1.97 - <option value="85">{L_FONT_SMALL}</option>
1.98 - <option value="100" selected="selected">{L_FONT_NORMAL}</option>
1.99 - <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
1.100 - <option value="150">{L_FONT_LARGE}</option>
1.101 - <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
1.102 - <option value="200">{L_FONT_HUGE}</option>
1.103 - <!-- ENDIF -->
1.104 - <!-- ENDIF -->
1.105 - </select>
1.106 - <input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
1.107 - <!-- BEGIN custom_tags -->
1.108 - <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}" />
1.109 - <!-- END custom_tags -->
1.110 -</div>
1.111 -<!-- ENDIF -->