{* /** * Copyright (c) 2015, Kairat Bakytow * All rights reserved. * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ * and is licensed under Oxwall Store Commercial License. * Full text of this license can be found at http://www.oxwall.org/store/oscl */ *} {$menu}
{form name='smileys-settings'}
{label name='width'} {input name='width'} {error name='width'}
{submit name='save'}
{/form}
{if !$isSingle}
{foreach $captions as $id => $caption} {/foreach}
{foreach $smileys as $id => $smile} {/foreach}
{else}
{foreach $smileys as $smile} {/foreach}
{/if}
{script}{literal} ;(function( $ ) { $(document.forms['smileys-settings']['width']).on("input", function() { var width = +this.value || 40; $(document.getElementById("smileys-panel-admin")).css("width", width + "px"); }); tabs = $('.smileys_tab', document.getElementById('smileys-panel-admin')); tabs.on('click', function() { tabs.removeClass('active'); $(this).addClass('active'); showCategory(this.getAttribute('data-category-id')); }); tabs.eq(0).trigger('click'); function showCategory( id ) { if ( !id ) return; $('.smilyes_category', document.getElementById('smileys-panel-admin')).hide(); $('#admin-smilyes-category-' + id).show(); } })(jQuery); {/literal}{/script}