Changeset 10983 for extensions/bbcode_bar/template
- Timestamp:
- May 22, 2011, 12:23:03 PM (13 years ago)
- Location:
- extensions/bbcode_bar/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/bbcode_bar/template/bbcode_bar.tpl
r10024 r10983 4 4 {footer_script require='jquery'} 5 5 BBCodeBar = {ldelim} 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 {ldelim}name:'{'yellow_help'|@translate}', openWith:'[color=yellow]',closeWith:'[/color]', className:"col1-1" },48 {ldelim}name:'{'orange_help'|@translate}', openWith:'[color=orange]',closeWith:'[/color]', className:"col1-2" },49 {ldelim}name:'{'red_help'|@translate}', openWith:'[color=red]',closeWith:'[/color]', className:"col1-3" },50 51 {ldelim}name:'{'blue_help'|@translate}', openWith:'[color=blue]',closeWith:'[/color]', className:"col2-1" },52 {ldelim}name:'{'purple_help'|@translate}', openWith:'[color=purple]',closeWith:'[/color]', className:"col2-2" },53 {ldelim}name:'{'green_help'|@translate}', openWith:'[color=green]',closeWith:'[/color]', className:"col2-3" },54 55 {ldelim}name:'{'white_help'|@translate}', openWith:'[color=white]',closeWith:'[/color]', className:"col3-1" },56 {ldelim}name:'{'grey_help'|@translate}', openWith:'[color=gray]',closeWith:'[/color]', className:"col3-2" },57 {ldelim}name:'{'black_help'|@translate}', openWith:'[color=black]',closeWith:'[/color]', className:"col3-3" }58 59 60 61 6 markupSet: [ 7 {if isset($BBC_b)}{ldelim}name:'{'b_help'|@translate}', key:'B', openWith:'[b]', closeWith:'[/b]', className:'markItUpBold'},{/if} 8 {if isset($BBC_i)}{ldelim}name:'{'i_help'|@translate}', key:'I', openWith:'[i]', closeWith:'[/i]', className:'markItUpItalic'},{/if} 9 {if isset($BBC_u)}{ldelim}name:'{'u_help'|@translate}', key:'U', openWith:'[u]', closeWith:'[/u]', className:'markItUpUnderline'},{/if} 10 {if isset($BBC_s)}{ldelim}name:'{'s_help'|@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:'{'p_help'|@translate}', openWith:'[p]', closeWith:'[/p]', className:'markItUpParagraph'},{/if} 15 {if isset($BBC_center)}{ldelim}name:'{'center_help'|@translate}', openWith:'[center]', closeWith:'[/center]', className:'markItUpCenter'},{/if} 16 {if isset($BBC_right)}{ldelim}name:'{'right_help'|@translate}', openWith:'[right]', closeWith:'[/right]', className:'markItUpRight'},{/if} 17 {if isset($BBC_quote)}{ldelim}name:'{'quote_help'|@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:'{'ul_help'|@translate}', openWith:'[ul]\n', closeWith:'\n[/ul]', className:'markItUpListUL'},{/if} 22 {if isset($BBC_ol)}{ldelim}name:'{'ol_help'|@translate}', openWith:'[ol]\n', closeWith:'\n[/ol]', className:'markItUpListOL'},{/if} 23 {if isset($BBC_ul) OR isset($BBC_ol)}{ldelim}name:'{'li_help'|@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:'{'img_help'|@translate}', key:'P', replaceWith:'[img][![Url]!][/img]', className:'markItUpPicture'},{/if} 28 {if isset($BBC_url)}{ldelim}name:'{'url_help'|@translate}', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', className:'markItUpLink'},{/if} 29 {if isset($BBC_email)}{ldelim}name:'{'mail_help'|@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:'{'size_help'|@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:'{'color_help'|@translate}', className:'markItUpColors', openWith:'[color=[![Color]!]]', closeWith:'[/color]', 46 dropMenu: [ 47 {ldelim}name:'{'yellow_help'|@translate}', openWith:'[color=yellow]', closeWith:'[/color]', className:"col1-1" }, 48 {ldelim}name:'{'orange_help'|@translate}', openWith:'[color=orange]', closeWith:'[/color]', className:"col1-2" }, 49 {ldelim}name:'{'red_help'|@translate}', openWith:'[color=red]', closeWith:'[/color]', className:"col1-3" }, 50 51 {ldelim}name:'{'blue_help'|@translate}', openWith:'[color=blue]', closeWith:'[/color]', className:"col2-1" }, 52 {ldelim}name:'{'purple_help'|@translate}', openWith:'[color=purple]', closeWith:'[/color]', className:"col2-2" }, 53 {ldelim}name:'{'green_help'|@translate}', openWith:'[color=green]', closeWith:'[/color]', className:"col2-3" }, 54 55 {ldelim}name:'{'white_help'|@translate}', openWith:'[color=white]', closeWith:'[/color]', className:"col3-1" }, 56 {ldelim}name:'{'grey_help'|@translate}', openWith:'[color=gray]', closeWith:'[/color]', className:"col3-2" }, 57 {ldelim}name:'{'black_help'|@translate}', openWith:'[color=black]', closeWith:'[/color]', className:"col3-3" } 58 ] 59 }, 60 {/if} 61 ] 62 62 }; 63 63 64 64 jQuery(document).ready(function() {ldelim} 65 65 jQuery('#{$form_name} textarea').markItUp(BBCodeBar); 66 66 }); 67 67 {/footer_script} -
extensions/bbcode_bar/template/bbcode_bar_admin.tpl
r9965 r10983 1 1 {html_head} 2 2 {literal} 3 4 5 6 7 3 <style type="text/css"> 4 form.properties span.property { 5 width:60%; 6 } 7 </style> 8 8 {/literal} 9 9 {/html_head} 10 10 11 11 <div class="titrePage"> 12 12 <h2>BBCode Bar</h2> 13 13 </div> 14 14 15 15 <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 </li> 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 16 <fieldset> 17 <legend>{'Parameters'|@translate}</legend> 18 <ul> 19 <li> 20 <label><span class="property">{'b_help'|@translate}</span> 21 <input type="checkbox" name="b" {$B_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/bold.png"></label> 22 </li> 23 <li> 24 <label><span class="property">{'i_help'|@translate}</span> 25 <input type="checkbox" name="i" {$I_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/italic.png"></label> 26 </li> 27 <li> 28 <label><span class="property">{'u_help'|@translate}</span> 29 <input type="checkbox" name="u" {$U_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/underline.png"></label> 30 </li> 31 <li> 32 <label><span class="property">{'s_help'|@translate}</span> 33 <input type="checkbox" name="s" {$S_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/stroke.png"></label> 34 </li> 35 <li> 36 <label><span class="property">{'p_help'|@translate}</span> 37 <input type="checkbox" name="p" {$P_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/p.png"></label> 38 </li> 39 <li> 40 <label><span class="property">{'center_help'|@translate}</span> 41 <input type="checkbox" name="center" {$CENTER_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/center.png"></label> 42 </li> 43 <li> 44 <label><span class="property">{'right_help'|@translate}</span> 45 <input type="checkbox" name="right" {$RIGHT_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/right.png"></label> 46 </li> 47 <li> 48 <label><span class="property">{'quote_help'|@translate}</span> 49 <input type="checkbox" name="quote" {$QUOTE_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/quote.png"></label> 50 </li> 51 <li> 52 <label><span class="property">{'ul_help'|@translate}</span> 53 <input type="checkbox" name="ul" {$UL_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/list-bullet.png"></label> 54 </li> 55 <li> 56 <label><span class="property">{'ol_help'|@translate}</span> 57 <input type="checkbox" name="ol" {$OL_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/list-numeric.png"></label> 58 </li> 59 <li> 60 <label><span class="property">{'img_help'|@translate}</span> 61 <input type="checkbox" name="img" {$IMG_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/picture.png"></label> 62 </li> 63 <li> 64 <label><span class="property">{'url_help'|@translate}</span> 65 <input type="checkbox" name="url" {$URL_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/link.png"></label> 66 </li> 67 <li> 68 <label><span class="property">{'mail_help'|@translate}</span> 69 <input type="checkbox" name="email" {$EMAIL_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/mail.png"></label> 70 </li> 71 <li> 72 <label><span class="property">{'size_help'|@translate}</span> 73 <input type="checkbox" name="size" {$SIZE_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/fonts.png"></label> 74 </li> 75 <li> 76 <label><span class="property">{'color_help'|@translate}</span> 77 <input type="checkbox" name="color" {$COLOR_STATUS} value="1"/> <img src="{$BBCODE_PATH}template/markitup/images/colors.png"></label> 78 </li> 79 </ul> 80 </fieldset> 81 82 <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p> 83 83 </form>
Note: See TracChangeset
for help on using the changeset viewer.