source: extensions/bbcode_bar/template/bbcode_bar.tpl @ 11873

Last change on this file since 11873 was 11873, checked in by mistic100, 9 years ago

rename language keys

File size: 4.9 KB
Line 
1{combine_script id="markitup" require='jquery' path=$BBCODE_PATH|@cat:"template/markitup/jquery.markitup.js"}
2{combine_css path=$BBCODE_PATH|@cat:"template/markitup/style.markitup.css"}
3
4{footer_script require='jquery'}
5BBCodeBar = {ldelim}
6  markupSet: [
7    {if isset($BBC_b)}{ldelim}name:'{'Bold : [b]bold[/b]'|@translate}', key:'B', openWith:'[b]', closeWith:'[/b]', className:'markItUpBold'},{/if}
8    {if isset($BBC_i)}{ldelim}name:'{'Italic : [i]italic[/i]'|@translate}', key:'I', openWith:'[i]', closeWith:'[/i]', className:'markItUpItalic'},{/if}
9    {if isset($BBC_u)}{ldelim}name:'{'Underline : [u]underline[/u]'|@translate}', key:'U', openWith:'[u]', closeWith:'[/u]', className:'markItUpUnderline'},{/if}
10    {if isset($BBC_s)}{ldelim}name:'{'Striped  : [s]striped[/s]'|@translate}', key:'S', openWith:'[s]', closeWith:'[/s]', className:'markItUpStroke'},{/if}
11   
12    {if isset($BBC_p) OR isset($BBC_center) OR isset($BBC_right) OR isset($BBC_quote)}{ldelim}separator:'|'},{/if}
13   
14    {if isset($BBC_p)}{ldelim}name:'{'Paragraph : [p]Paragraph[/p]'|@translate}', openWith:'[p]', closeWith:'[/p]', className:'markItUpParagraph'},{/if}
15    {if isset($BBC_center)}{ldelim}name:'{'Center : [center]center[/center]'|@translate}', openWith:'[center]', closeWith:'[/center]', className:'markItUpCenter'},{/if}
16    {if isset($BBC_right)}{ldelim}name:'{'Right : [right]right[/right]'|@translate}', openWith:'[right]', closeWith:'[/right]', className:'markItUpRight'},{/if}
17    {if isset($BBC_quote)}{ldelim}name:'{'Quote : [quote]quote[/quote]'|@translate}', openWith:'[quote]', closeWith:'[/quote]', className:'markItUpQuote'},{/if}
18   
19    {if isset($BBC_ul) OR isset($BBC_ol) OR isset($BBC_li)}{ldelim}separator:'|'},{/if}
20   
21    {if isset($BBC_ul)}{ldelim}name:'{'Unordered list : [ul][li]element[/li][/ul]'|@translate}', openWith:'[ul]\n', closeWith:'\n[/ul]', className:'markItUpListUL'},{/if}
22    {if isset($BBC_ol)}{ldelim}name:'{'Ordered list : [ol][li]element[/li][/ol]'|@translate}', openWith:'[ol]\n', closeWith:'\n[/ol]', className:'markItUpListOL'},{/if}
23    {if isset($BBC_ul) OR isset($BBC_ol)}{ldelim}name:'{'List element : [li]element[/li]'|@translate}', openWith:'[li]', closeWith:'[/li]', className:'markItUpListLI'},{/if}
24   
25    {if isset($BBC_img) OR isset($BBC_url) OR isset($BBC_mail)}{ldelim}separator:'|' },{/if}
26   
27    {if isset($BBC_img)}{ldelim}name:'{'Picture : [img]picture[/img]'|@translate}', key:'P', replaceWith:'[img][![Url]!][/img]', className:'markItUpPicture'},{/if}
28    {if isset($BBC_url)}{ldelim}name:'{'URL : [url=URL]Title[/url]'|@translate}', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', className:'markItUpLink'},{/if}
29    {if isset($BBC_email)}{ldelim}name:'{'E-mail : [email]Email[/email]'|@translate}', key:'M', replaceWith:'[email][![Mail]!][/email]', className:'markItUpMail'},{/if}
30   
31    {if isset($BBC_size) OR isset($BBC_color) OR isset($BBC_smilies)}{ldelim}separator:'|'},{/if}
32   
33    {if isset($BBC_size)}
34    {ldelim}name:'{'Font size : [size=X]text[/size]'|@translate}', className:'markItUpSize',
35      dropMenu :[
36        {ldelim}name:'{'tiny'|@translate}', openWith:'[size=7]', closeWith:'[/size]' },
37        {ldelim}name:'{'small'|@translate}', openWith:'[size=9]', closeWith:'[/size]' },
38        {ldelim}name:'{'normal'|@translate}', openWith:'[size=12]', closeWith:'[/size]' },
39        {ldelim}name:'{'large'|@translate}', openWith:'[size=18]', closeWith:'[/size]' },
40        {ldelim}name:'{'huge'|@translate}', openWith:'[size=24]', closeWith:'[/size]' },
41      ]
42    },
43    {/if}
44    {if isset($BBC_color)}
45    {ldelim}name:'{'Font color : [color=color]text[/color]'|@translate}', className:'markItUpColors', openWith:'[color=[![Color]!]]', closeWith:'[/color]',
46      dropMenu: [
47        {ldelim}name:'{'Yellow'|@translate}',  openWith:'[color=yellow]',   closeWith:'[/color]', className:"col1-1" },
48        {ldelim}name:'{'Orange'|@translate}',  openWith:'[color=orange]',   closeWith:'[/color]', className:"col1-2" },
49        {ldelim}name:'{'Red'|@translate}',   openWith:'[color=red]',   closeWith:'[/color]', className:"col1-3" },
50       
51        {ldelim}name:'{'Blue'|@translate}',   openWith:'[color=blue]',   closeWith:'[/color]', className:"col2-1" },
52        {ldelim}name:'{'Purple'|@translate}',   openWith:'[color=purple]',   closeWith:'[/color]', className:"col2-2" },
53        {ldelim}name:'{'Green'|@translate}',   openWith:'[color=green]',   closeWith:'[/color]', className:"col2-3" },
54       
55        {ldelim}name:'{'White'|@translate}',   openWith:'[color=white]',   closeWith:'[/color]', className:"col3-1" },
56        {ldelim}name:'{'Grey'|@translate}',   openWith:'[color=gray]',   closeWith:'[/color]', className:"col3-2" },
57        {ldelim}name:'{'Black'|@translate}',  openWith:'[color=black]',   closeWith:'[/color]', className:"col3-3" }
58      ]
59    },
60    {/if}
61  ]
62};
63
64jQuery(document).ready(function() {ldelim}
65  jQuery('#{$bbcode_texarea}').markItUp(BBCodeBar);
66});
67{/footer_script}
Note: See TracBrowser for help on using the repository browser.