Advertisement
JustxMeg

posting_buttons.html

Jun 15th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 6.25 KB | None | 0 0
  1.  
  2. <script type="text/javascript">
  3. // <![CDATA[
  4.     var form_name = 'postform';
  5.     var text_name = <!-- IF $SIG_EDIT -->'signature'<!-- ELSE -->'message'<!-- ENDIF -->;
  6.     var load_draft = false;
  7.     var upload = false;
  8.  
  9.     // Define the bbCode tags
  10.     var bbcode = new Array();
  11.     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 -->);
  12.     var imageTag = false;
  13.  
  14.     // Helpline messages
  15.     var help_line = {
  16.         b: '{LA_BBCODE_B_HELP}',
  17.         i: '{LA_BBCODE_I_HELP}',
  18.         u: '{LA_BBCODE_U_HELP}',
  19.         q: '{LA_BBCODE_Q_HELP}',
  20.         c: '{LA_BBCODE_C_HELP}',
  21.         l: '{LA_BBCODE_L_HELP}',
  22.         li: '{LA_BBCODE_LISTITEM_HELP}',
  23.         o: '{LA_BBCODE_O_HELP}',
  24.         p: '{LA_BBCODE_P_HELP}',
  25.         w: '{LA_BBCODE_W_HELP}',
  26.         a: '{LA_BBCODE_A_HELP}',
  27.         s: '{LA_BBCODE_S_HELP}',
  28.         f: '{LA_BBCODE_F_HELP}',
  29.         y: '{LA_BBCODE_Y_HELP}',
  30.         d: '{LA_BBCODE_D_HELP}'
  31.         <!-- BEGIN custom_tags -->
  32.             ,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
  33.         <!-- END custom_tags -->
  34.     }
  35.  
  36.     var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
  37.     var show_panel = 'options-panel';
  38.  
  39.  
  40. // ]]>
  41. </script>
  42. <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
  43.  
  44. <!-- IF S_BBCODE_ALLOWED -->
  45. <div id="colour_palette" style="display: none;">
  46.     <dl style="clear: left;">
  47.         <dt><label>{L_FONT_COLOR}:</label></dt>
  48.         <dd>
  49.         <script type="text/javascript">
  50.         // <![CDATA[
  51.             function change_palette()
  52.             {
  53.         dE('colour_palette');
  54.                     e = document.getElementById('colour_palette');
  55.             }
  56.  
  57.             colorPalette('h', 15, 10);
  58.         // ]]>
  59.         </script>
  60.         </dd>
  61.     </dl>
  62. </div>
  63.  
  64. <div id="format-buttons">
  65.     <input type="text" readonly="readonly" name="helpbox" style="width:80%" class="<!-- IF S_IN_UCP -->helpline2<!-- ELSE -->helpline<!-- ENDIF -->" value="{L_STYLES_TIP}" /><br />
  66.    <input type="button" class="buttonz" accesskey="b" name="addbbcode0" value="" onclick="bbstyle(0)" style="background: url('{ROOT_PATH}images/editor/text_bold.png');" onmouseover="helpline('b')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  67.     <input type="button" class="buttonz" accesskey="i" name="addbbcode2" value="" style="background: url('{ROOT_PATH}images/editor/text_italic.png');" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  68.     <input type="button" class="buttonz" accesskey="u" name="addbbcode4" value="" style="background: url('{ROOT_PATH}images/editor/text_underline.png');" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  69.     <!-- IF S_BBCODE_QUOTE -->
  70.         <input type="button" class="buttonz" accesskey="q" name="addbbcode6" value="" style="background: url('{ROOT_PATH}images/editor/comment.png');" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  71.     <!-- ENDIF -->
  72.     <input type="button" class="buttonz" accesskey="c" name="addbbcode8" value="" style="background: url('{ROOT_PATH}images/editor/page_white_code.png');" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  73.     <input type="button" class="buttonz" accesskey="l" name="addbbcode10" value="" style="background: url('{ROOT_PATH}images/editor/text_list_bullets.png');" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  74.     <input type="button" class="buttonz" accesskey="o" name="addbbcode12" value="" style="background: url('{ROOT_PATH}images/editor/text_list_numbers.png');" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  75.     <input type="button" class="buttonz" accesskey="t" name="addlitsitem" value="" style="background: url('{ROOT_PATH}images/editor/bullet_black.png');" onclick="bbstyle(-1)" onmouseover="helpline('li')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  76.     <!-- IF S_BBCODE_IMG -->
  77.         <input type="button" class="buttonz" accesskey="p" name="addbbcode14" value="" style="background: url('{ROOT_PATH}images/editor/image.png');" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  78.     <!-- ENDIF -->
  79.     <!-- IF S_LINKS_ALLOWED -->
  80.         <input type="button" class="buttonz" accesskey="w" name="addbbcode16" value="" style="background: url('{ROOT_PATH}images/editor/world_link.png');" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  81.     <!-- ENDIF -->
  82.     <!-- IF S_BBCODE_FLASH -->
  83.         <input type="button" class="buttonz" accesskey="d" name="addbbcode18" value="" style="background: url('{ROOT_PATH}images/editor/page_white_flash.png');" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  84.     <!-- ENDIF -->
  85.     <input type="button" class="buttonz" name="bbpalette" id="bbpalette" value="" style="background: url('{ROOT_PATH}images/editor/color_wheel.png');" onclick="change_palette();" onmouseover="helpline('s')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
  86.         <option value="50">{L_FONT_TINY}</option>
  87.         <option value="85">{L_FONT_SMALL}</option>
  88.         <option value="100" selected="selected">{L_FONT_NORMAL}</option>
  89.         <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
  90.             <option value="150">{L_FONT_LARGE}</option>
  91.             <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
  92.                 <option value="200">{L_FONT_HUGE}</option>
  93.             <!-- ENDIF -->
  94.         <!-- ENDIF -->
  95.     </select>
  96.     <!-- BEGIN custom_tags -->
  97.         <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}" />
  98.     <!-- END custom_tags -->
  99. </div>
  100. <!-- ENDIF -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement