source: extensions/SmiliesSupport/template/smiliessupport_page.tpl @ 23126

Last change on this file since 23126 was 20208, checked in by mistic100, 12 years ago

compatible with question_mark_in_urls = false

File size: 1.3 KB
Line 
1{if not isset($BBCODE_PATH)}
2{combine_script id="markitup" require='jquery' path=$SMILIES_PATH|@cat:"template/markitup/jquery.markitup.js"}
3{combine_css path=$SMILIES_PATH|@cat:"template/markitup/style.markitup.css"}
4{/if}
5
6{footer_script require='jquery'}
7{literal}
8jQuery(document).ready(function() {
9  if (jQuery('.markItUp').length == 0) {
10    jQuery('#contentid').markItUp({markupSet: []});
11  }
12  jQuery('#SmiliesSupport').appendTo('.markItUpHeader ul:first-child');
13  jQuery('#allsmilies').hover(function(){
14    jQuery("#contentid").focus();
15    jQuery('#smiliesdiv').css('display','');
16  });
17  jQuery('#smiliesdiv a').click(function() {
18    emoticon = jQuery(this).attr("href");
19    jQuery.markItUp({ replaceWith:emoticon });
20    jQuery('#smiliesdiv').css('display','none');
21    return false;
22  });
23});
24{/literal}
25{/footer_script}
26
27<ul style="display:none;">
28<li id="SmiliesSupport" class="markItUpButton markItUpDropMenu">
29  <a id="allsmilies" style="background-image:url('{$ROOT_URL}{$REPRESENTANT}');" title="{'All Smilies'|@translate}"></a>
30
31  <ul id="smiliesdiv">
32    <li><table><tr>{strip}
33    {foreach from=$smiliesfiles item=smileyfile}
34      <td><a href="{$smileyfile.TITLE}"><img src="{$ROOT_URL}{$smileyfile.PATH}"/></a></td>
35      {$smileyfile.TR}
36    {/foreach}
37    {/strip}</tr></table></li>
38  </ul>
39</li>
40</ul>
Note: See TracBrowser for help on using the repository browser.