Changeset 10986 for extensions/SmiliesSupport/template
- Timestamp:
- May 22, 2011, 12:48:18 PM (13 years ago)
- Location:
- extensions/SmiliesSupport/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmiliesSupport/template/smiliessupport_admin.tpl
r9966 r10986 4 4 {footer_script require="jquery.cluetip"} 5 5 {literal} 6 7 8 9 10 11 12 6 jQuery().ready(function(){ 7 // Cluetip 8 jQuery('.cluetip').cluetip({ 9 width: 550, 10 splitTitle: '|' 11 }); 12 }); 13 13 {/literal} 14 14 {/footer_script} … … 16 16 {html_head} 17 17 <style type="text/css"> 18 19 20 21 22 23 24 25 26 27 28 29 30 31 18 legend .cluetip {ldelim} 19 text-align:center; 20 margin:20px 0 -10px 0; 21 font-size:1.2em; 22 } 23 .cluetip:after {ldelim} 24 margin-left:5px; 25 vertical-align:top; 26 content:url('{$themeconf.admin_icon_dir}/help.png'); 27 } 28 .properties textarea {ldelim} 29 width:60%; 30 margin:0 20%; 31 } 32 32 </style> 33 33 {/html_head} 34 34 35 35 <div class="titrePage"> 36 36 <h2>Smilies Support</h2> 37 37 </div> 38 38 39 39 <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> 40 41 <legend>{'Configuration'|@translate}</legend> 42 <ul> 43 44 45 46 47 48 49 50 </li> 51 52 53 54 55 56 57 58 59 60 61 62 40 <fieldset> 41 <legend>{'Configuration'|@translate}</legend> 42 <ul> 43 <li> 44 <span class="property">{'smilies_dir'|@translate}</span> 45 <input type="text" size="40" name="text1" value="{$TEXT1_VALUE}" /> 46 </li> 47 <li> 48 <span class="property">{'nb_columns'|@translate}</span> 49 <input type="text" size="3" name="text2" value="{$TEXT2_VALUE}" /> 50 </li> 51 <li> 52 <span class="property">{'representant'|@translate}</span> 53 <input type="text" size="20" name="text3" value="{$TEXT3_VALUE}" /> 54 </li> 55 <li> 56 <table><tr> 57 {foreach from=$smiliesfiles item=smileyfile} 58 <td><a href="#" title="{$smileyfile.TITLE}"><img src="{$smileyfile.PATH}"/></a></td> 59 {$smileyfile.TR} 60 {/foreach} 61 </tr></table> 62 </li> 63 63 </ul> 64 65 66 67 68 69 </fieldset> 70 71 64 </fieldset> 65 66 <fieldset> 67 <legend><span class="cluetip" title="smilies.txt|{'smilies_file_help'|@translate}">smilies.txt</legend> 68 <textarea rows="5" name="text">{$CONTENT_FILE}</textarea> 69 </fieldset> 70 71 <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p> 72 72 </form> -
extensions/SmiliesSupport/template/smiliessupport_page.tpl
r10025 r10986 5 5 {literal} 6 6 jQuery(document).ready(function() { 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 if (jQuery('.markItUp').length == 0) { 8 jQuery('#{/literal}{$form_name}{literal} textarea').markItUp({markupSet: []}); 9 } 10 jQuery('#SmiliesSupport').appendTo('.markItUpHeader ul:first-child'); 11 jQuery('#allsmilies').mouseover(function(){ 12 jQuery("#{/literal}{$form_name}{literal} textarea").focus(); 13 jQuery('#smiliesdiv').css('display',''); 14 }); 15 jQuery('#smiliesdiv a').click(function() { 16 emoticon = jQuery(this).attr("href"); 17 jQuery.markItUp({ replaceWith:emoticon }); 18 jQuery('#smiliesdiv').css('display','none'); 19 return false; 20 }); 21 21 }); 22 22 {/literal} … … 25 25 <ul style="display:none;"> 26 26 <li id="SmiliesSupport" class="markItUpButton markItUpDropMenu"> 27 27 <a id="allsmilies" style="background-image:url({$REPRESENTANT});" title="{'All Smilies'|@translate}"></a> 28 28 29 30 31 32 33 34 35 36 29 <ul id="smiliesdiv"> 30 <li><table><tr> 31 {foreach from=$smiliesfiles item=smileyfile} 32 <td><a href="{$smileyfile.TITLE}"><img src="{$smileyfile.PATH}"/></a></td> 33 {$smileyfile.TR} 34 {/foreach} 35 </tr></table></li> 36 </ul> 37 37 </li> 38 38 </ul>
Note: See TracChangeset
for help on using the changeset viewer.