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

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

update for Piwigo 2.6 + many code and logical cleaning

File size: 1.6 KB
Line 
1{combine_script id='markitup' require='jquery' load='footer' path=$SMILIES_PATH|cat:'template/markitup/jquery.markitup.js'}
2{combine_css id='markitup' order=10 path=$SMILIES_PATH|cat:'template/markitup/style.markitup.css'}
3
4{footer_script require='markitup'}
5if (jQuery('.markItUp').length == 0) {
6  jQuery('#{$SMILIES.textarea_id}').markItUp({
7    markupSet: []
8  });
9  jQuery('.markItUpHeader>ul').css('width', '22');
10}
11else {
12  jQuery('.markItUpHeader>ul').css('width', '+=22');
13}
14
15jQuery('#SmiliesSupport').appendTo('.markItUpHeader ul:first-child');
16
17jQuery('#allsmilies').hover(function(){
18  jQuery('#{$SMILIES.textarea_id}').focus();
19  jQuery('#smiliesdiv').css('display', '');
20});
21
22jQuery('#smiliesdiv img').click(function() {
23  var emoticon = jQuery(this).attr('title');
24  jQuery.markItUp({
25    replaceWith: emoticon
26  });
27  jQuery('#smiliesdiv').css('display', 'none');
28  return false;
29});
30{/footer_script}
31
32{html_style}
33#SmiliesSupport table img:hover {
34  border:1px solid #08e;
35  margin:-1px;
36  border-radius:2px;
37  cursor:pointer;
38}
39#allsmilies {
40  background-size:contain;
41  background-image:url('{$ROOT_URL}{$SMILIES.representant}');
42}
43{/html_style}
44
45<ul style="display:none;">
46<li id="SmiliesSupport" class="markItUpButton markItUpDropMenu">
47  <a id="allsmilies" title="{'Smilies'|translate}"></a>
48
49  <ul id="smiliesdiv"><li>
50    <table><tr>{strip}
51    {foreach from=$SMILIES.files item=smileyfile}
52      <td><img src="{$ROOT_URL}{$smileyfile.PATH}" title="{$smileyfile.TITLE}"/></td>
53      {$smileyfile.TR}
54    {/foreach}
55    {/strip}</tr></table>
56  </li></ul>
57</li>
58</ul>
Note: See TracBrowser for help on using the repository browser.