Ignore:
Timestamp:
Mar 14, 2011, 9:35:14 PM (13 years ago)
Author:
mistic100
Message:

[extentions] BBcode Bar

  • compatibility with Piwigo 2.2.0
  • many corrections
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/bbcode_bar/bbcode_bar.tpl

    r3305 r9682  
    1 {known_script id="bbcodebar" src=$ROOT_URL|@cat:"plugins/bbcode_bar/bbcode.js"}
    2 
    3 {html_head}
    4 <link rel="stylesheet" type="text/css" href="{$ROOT_URL|@cat:"plugins/bbcode_bar/bbcode_bar.css"}" >
    5 {/html_head}
     1{combine_script id="bbcodebar" path=$ROOT_URL|@cat:"plugins/bbcode_bar/bbcode.js"}
     2{combine_css path=$ROOT_URL|@cat:"plugins/bbcode_bar/bbcode_bar.css"}
    63
    74<div id="outils" width="500pt">
     
    96                <tr>                   
    107                        {if isset($BBCode_bar_button_00)}
    11                         <td><img class="bbcbutton" title="{'p_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'p_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="p" src="{$repicon}/p.png" border="0"></td>
     8                        <td><img class="bbcbutton" title="{'p_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'p_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="p" src="{$repicon}/p.png" border="0"></td>
    129                        {/if}
    1310                        {if isset($BBCode_bar_button_01)}
    14                         <td><img class="bbcbutton" title="{'b_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'b_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="b" src="{$repicon}/b.png" border="0"></td>
     11                        <td><img class="bbcbutton" title="{'b_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'b_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="b" src="{$repicon}/b.png" border="0"></td>
    1512                        {/if}
    1613                        {if isset($BBCode_bar_button_02)}
    17                         <td><img class="bbcbutton" title="{'i_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'i_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="i" src="{$repicon}/i.png" border="0"></td>
     14                        <td><img class="bbcbutton" title="{'i_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'i_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="i" src="{$repicon}/i.png" border="0"></td>
    1815                        {/if}
    1916                        {if isset($BBCode_bar_button_03)}
    20                         <td><img class="bbcbutton" title="{'u_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'u_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="u" src="{$repicon}/u.png" border="0"></td>
     17                        <td><img class="bbcbutton" title="{'u_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'u_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="u" src="{$repicon}/u.png" border="0"></td>
    2118                        {/if}
    2219                        {if isset($BBCode_bar_button_04)}
    23                         <td><img class="bbcbutton" title="{'s_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'s_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="s" src="{$repicon}/s.png" border="0"></td>
     20                        <td><img class="bbcbutton" title="{'s_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'s_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="s" src="{$repicon}/s.png" border="0"></td>
    2421                        {/if}
     22                       
     23                        {if isset($BBCode_bar_button_05) OR isset($BBCode_bar_button_06) OR isset($BBCode_bar_button_07) OR isset($BBCode_bar_button_08)}
    2524                        <td> &nbsp; &nbsp; </td>
     25                        {/if}
     26                       
    2627                        {if isset($BBCode_bar_button_05)}
    27                         <td><img class="bbcbutton" title="{'center_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'center_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="center" src="{$repicon}/center.png" border="0"></td>
     28                        <td><img class="bbcbutton" title="{'center_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'center_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="center" src="{$repicon}/center.png" border="0"></td>
    2829                        {/if}
    2930                        {if isset($BBCode_bar_button_06)}
    30                         <td><img class="bbcbutton" title="{'right_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'right_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="right" src="{$repicon}/right.png" border="0"></td>
     31                        <td><img class="bbcbutton" title="{'right_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'right_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="right" src="{$repicon}/right.png" border="0"></td>
    3132                        {/if}
    3233                        {if isset($BBCode_bar_button_07)}
    33                         <td><img class="bbcbutton" title="{'ul_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'ul_help'|@translate}')" onclick="BBClist('addComment','content',this)" name="ul" src="{$repicon}/ul.png" border="0"></td>
     34                        <td><img class="bbcbutton" title="{'ul_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'ul_help'|@translate}')" onclick="BBClist('{$form_name}','content',this)" name="ul" src="{$repicon}/ul.png" border="0"></td>
    3435                        {/if}
    3536                        {if isset($BBCode_bar_button_08)}
    36                         <td><img class="bbcbutton" title="{'ol_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'ol_help'|@translate}')" onclick="BBClist('addComment','content',this)" name="ol" src="{$repicon}/ol.png" border="0"></td>
     37                        <td><img class="bbcbutton" title="{'ol_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'ol_help'|@translate}')" onclick="BBClist('{$form_name}','content',this)" name="ol" src="{$repicon}/ol.png" border="0"></td>
    3738                        {/if}
     39                       
     40                        {if isset($BBCode_bar_SmiliesSupport)}
    3841                        <td> &nbsp; &nbsp; </td>
    39                         {if isset($BBCode_bar_SmiliesSupport)}
    4042                        <td>{$BBCode_bar_SmiliesSupport.SMILIESSUPPORT_PAGE}</td>
     43                        {/if}
     44                       
     45                        {if isset($BBCode_bar_button_09) OR isset($BBCode_bar_button_10) OR isset($BBCode_bar_button_11) OR isset($BBCode_bar_button_12)}
    4146                        <td> &nbsp; &nbsp; </td>
    4247                        {/if}
     48                       
    4349                        {if isset($BBCode_bar_button_09)}       
    44                         <td><img class="bbcbutton" title="{'quote_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'quote_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="quote" src="{$repicon}/quote.png" border="0"></td>
     50                        <td><img class="bbcbutton" title="{'quote_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'quote_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="quote" src="{$repicon}/quote.png" border="0"></td>
    4551                        {/if}
    4652                        {if isset($BBCode_bar_button_10)}
    47                         <td><img class="bbcbutton" title="{'img_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'img_help'|@translate}')" onclick="BBCcode('addComment','content',this)" name="img" src="{$repicon}/image.png" border="0"></td>
     53                        <td><img class="bbcbutton" title="{'img_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'img_help'|@translate}')" onclick="BBCcode('{$form_name}','content',this)" name="img" src="{$repicon}/image.png" border="0"></td>
    4854                        {/if}
    4955                        {if isset($BBCode_bar_button_11)}
    50                         <td><img class="bbcbutton" title="{'url_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'url_help'|@translate}')" onclick="BBCurl('addComment','content')" name="url" src="{$repicon}/link.png" border="0"></td>
     56                        <td><img class="bbcbutton" title="{'url_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'url_help'|@translate}')" onclick="BBCurl('{$form_name}','content')" name="url" src="{$repicon}/link.png" border="0"></td>
    5157                        {/if}
    5258                        {if isset($BBCode_bar_button_12)}
    53                         <td><img class="bbcbutton" title="{'mail_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'mail_help'|@translate}')" onclick="BBCwmi('addComment','content','email')" name="email" src="{$repicon}/mail.png" border="0"></td>
     59                        <td><img class="bbcbutton" title="{'mail_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'mail_help'|@translate}')" onclick="BBCwmi('{$form_name}','content','email')" name="email" src="{$repicon}/mail.png" border="0"></td>
    5460                        {/if}
     61                       
     62                        {if isset($BBCode_bar_button_13) OR isset($BBCode_bar_button_14)}
    5563                        <td> &nbsp; &nbsp; </td>
     64                        {/if}
     65                       
    5666                        {if isset($BBCode_bar_button_13)}
    57                         <td><select title="{'size_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'size_help'|@translate}')" onchange="BBCfs('addComment','content',this)" title="{'size_help'|@translate}">
    58                                     <option class="genmed" value="{'tiny'|@translate}">{'tiny'|@translate}</option>
    59                                         <option class="genmed" value="{'small'|@translate}">{'small'|@translate}</option>
    60                                         <option class="genmed" value="{'normal'|@translate}" selected="selected" >{'normal'|@translate}</option>
    61                                         <option class="genmed" value="{'large'|@translate}">{'large'|@translate}</option>
    62                                         <option class="genmed" value="{'huge'|@translate}">{'huge'|@translate}</option>
     67                        <td><select title="{'size_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'size_help'|@translate}')" onchange="BBCfs('{$form_name}','content',this)" title="{'size_help'|@translate}">
     68                                    <option class="genmed" value="7">{'tiny'|@translate}</option>
     69                                        <option class="genmed" value="9">{'small'|@translate}</option>
     70                                        <option class="genmed" value="12" selected="selected" >{'normal'|@translate}</option>
     71                                        <option class="genmed" value="18">{'large'|@translate}</option>
     72                                        <option class="genmed" value="24">{'huge'|@translate}</option>
    6373                                </select>
    6474                        </td>
    6575                        {/if}
    6676                        {if isset($BBCode_bar_button_14)}
    67                         <td><select title="{'fc_help'|@translate}" onmouseout="helpline('addComment','helpbox', '{'help'|@translate}')" onmouseover="helpline('addComment','helpbox', '{'fc_help'|@translate}')" onchange="BBCfc('addComment','content',this)" title="{'fc_help'|@translate}">
    68                                     <option class="genmed" value="" style="color: black; background-color: rgb(250, 250, 250);" selected="selected" >{'default_help'|@translate}</option>
    69                                         <option class="genmed" value="maroon" style="color: maroon; background-color: rgb(250, 250, 250);">{'maroon_help'|@translate}</option>
    70                                         <option class="genmed" value="red" style="color: red; background-color: rgb(250, 250, 250);">{'red_help'|@translate}</option>
    71                                         <option class="genmed" value="orange" style="color: orange; background-color: rgb(250, 250, 250);">{'orange_help'|@translate}</option>
    72                                         <option class="genmed" value="brown" style="color: brown; background-color: rgb(250, 250, 250);">{'brown_help'|@translate}</option>
    73                                         <option class="genmed" value="yellow" style="color: yellow; background-color: rgb(250, 250, 250);">{'yellow_help'|@translate}</option>
    74                                         <option class="genmed" value="green" style="color: green; background-color: rgb(250, 250, 250);">{'green_help'|@translate}</option>
    75                                         <option class="genmed" value="olive" style="color: olive; background-color: rgb(250, 250, 250);">{'olive_help'|@translate}</option>
    76                                         <option class="genmed" value="cyan" style="color: cyan; background-color: rgb(250, 250, 250);">{'cyan_help'|@translate}</option>
    77                                         <option class="genmed" value="blue" style="color: blue; background-color: rgb(250, 250, 250);">{'blue_help'|@translate}</option>
    78                                         <option class="genmed" value="darkblue" style="color: darkblue; background-color: rgb(250, 250, 250);">{'darkblue_help'|@translate}</option>
    79                                         <option class="genmed" value="indigo" style="color: indigo; background-color: rgb(250, 250, 250);">{'indigo_help'|@translate}</option>
    80                                         <option class="genmed" value="violet" style="color: violet; background-color: rgb(250, 250, 250);">{'violet_help'|@translate}</option>
    81                                         <option class="genmed" value="white" style="color: white; background-color: rgb(250, 250, 250);">{'default_help'|@translate}</option>
    82                                         <option class="genmed" value="black" style="color: black; background-color: rgb(250, 250, 250);">{'white_help'|@translate}</option>
     77                        <td><select title="{'fc_help'|@translate}" onmouseout="helpline('{$form_name}','helpbox', '{'help'|@translate}')" onmouseover="helpline('{$form_name}','helpbox', '{'fc_help'|@translate}')" onchange="BBCfc('{$form_name}','content',this)" title="{'fc_help'|@translate}">
     78                                    <option class="genmed" value="" style="color: black;" selected="selected" >{'default_help'|@translate}</option>
     79                                        <option class="genmed" value="maroon" style="color: maroon;">{'maroon_help'|@translate}</option>
     80                                        <option class="genmed" value="red" style="color: red;">{'red_help'|@translate}</option>
     81                                        <option class="genmed" value="orange" style="color: orange;">{'orange_help'|@translate}</option>
     82                                        <option class="genmed" value="brown" style="color: brown;">{'brown_help'|@translate}</option>
     83                                        <option class="genmed" value="yellow" style="color: yellow; background-color:inherit;">{'yellow_help'|@translate}</option>
     84                                        <option class="genmed" value="green" style="color: green;">{'green_help'|@translate}</option>
     85                                        <option class="genmed" value="olive" style="color: olive;">{'olive_help'|@translate}</option>
     86                                        <option class="genmed" value="cyan" style="color: cyan;">{'cyan_help'|@translate}</option>
     87                                        <option class="genmed" value="blue" style="color: blue;">{'blue_help'|@translate}</option>
     88                                        <option class="genmed" value="darkblue" style="color: darkblue;">{'darkblue_help'|@translate}</option>
     89                                        <option class="genmed" value="indigo" style="color: indigo;">{'indigo_help'|@translate}</option>
     90                                        <option class="genmed" value="violet" style="color: violet;">{'violet_help'|@translate}</option>
     91                                        <option class="genmed" value="white" style="color: white; background-color:inherit;">{'white_help'|@translate}</option>
     92                                        <option class="genmed" value="black" style="color: black;">{'black_help'|@translate}</option>
    8393                                </select>
    8494                        </td>                   
Note: See TracChangeset for help on using the changeset viewer.