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

Last change on this file since 23203 was 23203, checked in by mistic100, 11 years ago

update markitup to 1.1.14 (compatible jquery 1.9)

File size: 4.8 KB
RevLine 
[9965]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"}
[3305]3
[9965]4{footer_script require='jquery'}
[15109]5BBCodeBar = {strip}{ldelim}
[10983]6  markupSet: [
[15109]7    {counter start=0 print=false assign=bbc_counter}
[10983]8   
[20796]9    {if $BBC.b}{counter}{ldelim}name:'{'Bold : [b]bold[/b]'|@translate}', key:'B', openWith:'[b]', closeWith:'[/b]', className:'markItUpBold'},{/if}
10    {if $BBC.i}{counter}{ldelim}name:'{'Italic : [i]italic[/i]'|@translate}', key:'I', openWith:'[i]', closeWith:'[/i]', className:'markItUpItalic'},{/if}
11    {if $BBC.u}{counter}{ldelim}name:'{'Underline : [u]underline[/u]'|@translate}', key:'U', openWith:'[u]', closeWith:'[/u]', className:'markItUpUnderline'},{/if}
12    {if $BBC.s}{counter}{ldelim}name:'{'Striped  : [s]striped[/s]'|@translate}', key:'S', openWith:'[s]', closeWith:'[/s]', className:'markItUpStroke'},{/if}
[10983]13   
[20796]14    {if $SEP[0]}{counter}{ldelim}separator:'|'},{/if}
[10983]15   
[20796]16    {if $BBC.p}{counter}{ldelim}name:'{'Paragraph : [p]Paragraph[/p]'|@translate}', openWith:'[p]', closeWith:'[/p]', className:'markItUpParagraph'},{/if}
17    {if $BBC.center}{counter}{ldelim}name:'{'Center : [center]center[/center]'|@translate}', openWith:'[center]', closeWith:'[/center]', className:'markItUpCenter'},{/if}
18    {if $BBC.right}{counter}{ldelim}name:'{'Right : [right]right[/right]'|@translate}', openWith:'[right]', closeWith:'[/right]', className:'markItUpRight'},{/if}
19    {if $BBC.quote}{counter}{ldelim}name:'{'Quote : [quote]quote[/quote]'|@translate}', openWith:'[quote]', closeWith:'[/quote]', className:'markItUpQuote'},{/if}
[10983]20   
[20796]21    {if $SEP[1]}{counter}{ldelim}separator:'|'},{/if}
[10983]22   
[20796]23    {if $BBC.ul}{counter}{ldelim}name:'{'Unordered list : [ul][li]element[/li][/ul]'|@translate}', openWith:'[ul]\n', closeWith:'\n[/ul]', className:'markItUpListUL'},{/if}
24    {if $BBC.ol}{counter}{ldelim}name:'{'Ordered list : [ol][li]element[/li][/ol]'|@translate}', openWith:'[ol]\n', closeWith:'\n[/ol]', className:'markItUpListOL'},{/if}
[23203]25    {if $BBC.ul OR $BBC.ol}{counter}{ldelim}name:'{'List element : [li]element[/li]'|@translate}', multiline:true, openWith:'[li]', closeWith:'[/li]', className:'markItUpListLI'},{/if}
[10983]26   
[20796]27    {if $SEP[2]}{counter}{ldelim}separator:'|' },{/if}
[10983]28   
[23203]29    {if $BBC.img}{counter}{ldelim}name:'{'Picture : [img]picture[/img]'|@translate}', key:'P', replaceWith:'[img][![Source:!:http://]!][/img]', className:'markItUpPicture'},{/if}
30    {if $BBC.url}{counter}{ldelim}name:'{'URL : [url=URL]Title[/url]'|@translate}', key:'L', openWith:'[url=[![Url:!:http://]!]]', closeWith:'[/url]', className:'markItUpLink'},{/if}
[20796]31    {if $BBC.email}{counter}{ldelim}name:'{'E-mail : [email]Email[/email]'|@translate}', key:'M', replaceWith:'[email][![Mail]!][/email]', className:'markItUpMail'},{/if}
[10983]32   
[20796]33    {if $SEP[3]}{counter}{ldelim}separator:'|'},{/if}
[15109]34   
[20796]35    {if $BBC.size}{counter}
[11873]36    {ldelim}name:'{'Font size : [size=X]text[/size]'|@translate}', className:'markItUpSize',
[10983]37      dropMenu :[
38        {ldelim}name:'{'tiny'|@translate}', openWith:'[size=7]', closeWith:'[/size]' },
39        {ldelim}name:'{'small'|@translate}', openWith:'[size=9]', closeWith:'[/size]' },
40        {ldelim}name:'{'normal'|@translate}', openWith:'[size=12]', closeWith:'[/size]' },
41        {ldelim}name:'{'large'|@translate}', openWith:'[size=18]', closeWith:'[/size]' },
42        {ldelim}name:'{'huge'|@translate}', openWith:'[size=24]', closeWith:'[/size]' },
43      ]
44    },
45    {/if}
[20796]46    {if $BBC.color}{counter}
[11873]47    {ldelim}name:'{'Font color : [color=color]text[/color]'|@translate}', className:'markItUpColors', openWith:'[color=[![Color]!]]', closeWith:'[/color]',
[10983]48      dropMenu: [
[15998]49        {ldelim}name:'{'Yellow'|@translate}', openWith:'[color=yellow]', closeWith:'[/color]', className:"col1-1" },
50        {ldelim}name:'{'Orange'|@translate}', openWith:'[color=orange]', closeWith:'[/color]', className:"col1-2" },
51        {ldelim}name:'{'Red'|@translate}', openWith:'[color=red]', closeWith:'[/color]', className:"col1-3" },
[10983]52       
[15998]53        {ldelim}name:'{'Blue'|@translate}', openWith:'[color=blue]', closeWith:'[/color]', className:"col2-1" },
54        {ldelim}name:'{'Purple'|@translate}', openWith:'[color=purple]', closeWith:'[/color]', className:"col2-2" },
55        {ldelim}name:'{'Green'|@translate}', openWith:'[color=green]', closeWith:'[/color]', className:"col2-3" },
[10983]56       
[15998]57        {ldelim}name:'{'White'|@translate}', openWith:'[color=white]', closeWith:'[/color]', className:"col3-1" },
58        {ldelim}name:'{'Grey'|@translate}', openWith:'[color=gray]', closeWith:'[/color]', className:"col3-2" },
59        {ldelim}name:'{'Black'|@translate}', openWith:'[color=black]', closeWith:'[/color]', className:"col3-3" }
[10983]60      ]
61    },
62    {/if}
63  ]
[15109]64};{/strip}
[9965]65
[23203]66
67jQuery('#{$BBCODE_ID}').markItUp(BBCodeBar);
68jQuery('.markItUpHeader>ul').css('width', {$bbc_counter}*22);
[10024]69{/footer_script}
Note: See TracBrowser for help on using the repository browser.