1 | {combine_script id='markitup' require='jquery' load='footer' path=$BBCODE_PATH|cat:'template/markitup/jquery.markitup.js'} |
---|
2 | {combine_css id='markitup' order=20 path=$BBCODE_PATH|cat:'template/markitup/style.markitup.css'} |
---|
3 | |
---|
4 | {footer_script require='markitup'} |
---|
5 | BBCodeBar = {strip}{ldelim} |
---|
6 | markupSet: [ |
---|
7 | {counter start=0 print=false assign=bbc_counter} |
---|
8 | |
---|
9 | {if $BBCODE.codes.b}{counter}{ldelim}name:'{'Bold : [b]bold[/b]'|translate}', key:'B', openWith:'[b]', closeWith:'[/b]', className:'miuIcon miuBold'},{/if} |
---|
10 | {if $BBCODE.codes.i}{counter}{ldelim}name:'{'Italic : [i]italic[/i]'|translate}', key:'I', openWith:'[i]', closeWith:'[/i]', className:'miuIcon miuItalic'},{/if} |
---|
11 | {if $BBCODE.codes.u}{counter}{ldelim}name:'{'Underline : [u]underline[/u]'|translate}', key:'U', openWith:'[u]', closeWith:'[/u]', className:'miuIcon miuUnderline'},{/if} |
---|
12 | {if $BBCODE.codes.s}{counter}{ldelim}name:'{'Striped : [s]striped[/s]'|translate}', key:'S', openWith:'[s]', closeWith:'[/s]', className:'miuIcon miuStroke'},{/if} |
---|
13 | |
---|
14 | {if $BBCODE.separators[0]}{counter}{ldelim}separator:'|'},{/if} |
---|
15 | |
---|
16 | {if $BBCODE.codes.p}{counter}{ldelim}name:'{'Paragraph : [p]Paragraph[/p]'|translate}', openWith:'[p]', closeWith:'[/p]', className:'miuIcon miuParagraph'},{/if} |
---|
17 | {if $BBCODE.codes.center}{counter}{ldelim}name:'{'Center : [center]center[/center]'|translate}', openWith:'[center]', closeWith:'[/center]', className:'miuIcon miuCenter'},{/if} |
---|
18 | {if $BBCODE.codes.right}{counter}{ldelim}name:'{'Right : [right]right[/right]'|translate}', openWith:'[right]', closeWith:'[/right]', className:'miuIcon miuRight'},{/if} |
---|
19 | {if $BBCODE.codes.quote}{counter}{ldelim}name:'{'Quote : [quote]quote[/quote]'|translate}', openWith:'[quote]', closeWith:'[/quote]', className:'miuIcon miuQuote'},{/if} |
---|
20 | |
---|
21 | {if $BBCODE.separators[1]}{counter}{ldelim}separator:'|'},{/if} |
---|
22 | |
---|
23 | {if $BBCODE.codes.ul}{counter}{ldelim}name:'{'Unordered list : [ul][li]element[/li][/ul]'|translate}', openWith:'[ul]\n', closeWith:'\n[/ul]', className:'miuIcon miuListUL'},{/if} |
---|
24 | {if $BBCODE.codes.ol}{counter}{ldelim}name:'{'Ordered list : [ol][li]element[/li][/ol]'|translate}', openWith:'[ol]\n', closeWith:'\n[/ol]', className:'miuIcon miuListOL'},{/if} |
---|
25 | {if $BBCODE.codes.ul OR $BBCODE.codes.ol}{counter}{ldelim}name:'{'List element : [li]element[/li]'|translate}', multiline:true, openWith:'[li]', closeWith:'[/li]', className:'miuIcon miuListLI'},{/if} |
---|
26 | |
---|
27 | {if $BBCODE.separators[2]}{counter}{ldelim}separator:'|' },{/if} |
---|
28 | |
---|
29 | {if $BBCODE.codes.img}{counter}{ldelim}name:'{'Picture : [img]picture[/img]'|translate}', key:'P', replaceWith:'[img][![Source:!:http://]!][/img]', className:'miuIcon miuPicture'},{/if} |
---|
30 | {if $BBCODE.codes.url}{counter}{ldelim}name:'{'URL : [url=URL]Title[/url]'|translate}', key:'L', openWith:'[url=[![Url:!:http://]!]]', closeWith:'[/url]', className:'miuIcon miuLink'},{/if} |
---|
31 | {if $BBCODE.codes.email}{counter}{ldelim}name:'{'E-mail : [email]Email[/email]'|translate}', key:'M', replaceWith:'[email][![Mail]!][/email]', className:'miuIcon miuMail'},{/if} |
---|
32 | |
---|
33 | {if $BBCODE.separators[3]}{counter}{ldelim}separator:'|'},{/if} |
---|
34 | |
---|
35 | {if $BBCODE.codes.size}{counter} |
---|
36 | {ldelim}name:'{'Font size : [size=X]text[/size]'|translate}', className:'miuIcon miuSize', |
---|
37 | dropMenu :[ |
---|
38 | {ldelim}name:'{'tiny font'|translate}', openWith:'[size=7]', closeWith:'[/size]', className:'miuSizeTiny' }, |
---|
39 | {ldelim}name:'{'small font'|translate}', openWith:'[size=9]', closeWith:'[/size]', className:'miuSizeSmall' }, |
---|
40 | {ldelim}name:'{'normal font'|translate}', openWith:'[size=12]', closeWith:'[/size]', className:'miuSizeNormal' }, |
---|
41 | {ldelim}name:'{'large font'|translate}', openWith:'[size=18]', closeWith:'[/size]', className:'miuSizeLarge' }, |
---|
42 | {ldelim}name:'{'huge font'|translate}', openWith:'[size=24]', closeWith:'[/size]', className:'miuSizeHuge' }, |
---|
43 | ] |
---|
44 | }, |
---|
45 | {/if} |
---|
46 | {if $BBCODE.codes.color}{counter} |
---|
47 | {ldelim}name:'{'Font color : [color=color]text[/color]'|translate}', className:'miuIcon miuColors', openWith:'[color=[![Color]!]]', closeWith:'[/color]', |
---|
48 | dropMenu: [ |
---|
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" }, |
---|
52 | |
---|
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" }, |
---|
56 | |
---|
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" } |
---|
60 | ] |
---|
61 | }, |
---|
62 | {/if} |
---|
63 | |
---|
64 | {if $BBCODE.separators[4]}{counter}{ldelim}separator:'|'},{/if} |
---|
65 | ] |
---|
66 | };{/strip} |
---|
67 | |
---|
68 | |
---|
69 | jQuery('#{$BBCODE.textarea_id}').markItUp(BBCodeBar); |
---|
70 | jQuery('.markItUpHeader>ul').css('width', {$bbc_counter}*22); |
---|
71 | {/footer_script} |
---|