b374k
m1n1 1.01
Apache
Linux webd001.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
uid=2234(oyaide) gid=100(users) groups=100(users)
server ip : 213.186.33.18 | your ip : 216.73.216.136
safemode OFF
 >  / home / oyaide / www / moycompany.com / piwigo2 / admin / themes / default / template /
Filename/home/oyaide/www/moycompany.com/piwigo2/admin/themes/default/template/menubar.tpl
Size2.09 kb
Permissionrwxr-xr-x
Owneroyaide : users
Create time11-Mar-2016 09:45
Last modified08-Mar-2016 15:46
Last accessed08-Mar-2016 15:46
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
{footer_script require='jquery.ui.sortable'}{literal}
jQuery(document).ready(function(){
jQuery(".menuPos").hide();
jQuery(".drag_button").show();
jQuery(".menuLi").css("cursor","move");
jQuery(".menuUl").sortable({
axis: "y",
opacity: 0.8
});
jQuery("input[name^='hide_']").click(function() {
men = this.name.split('hide_');
if (this.checked) {
jQuery("#menu_"+men[1]).addClass('menuLi_hidden');
} else {
jQuery("#menu_"+men[1]).removeClass('menuLi_hidden');
}
});
jQuery("#menuOrdering").submit(function(){
ar = jQuery('.menuUl').sortable('toArray');
for(i=0;i<ar.length;i++) {
men = ar[i].split('menu_');
document.getElementsByName('pos_' + men[1])[0].value = i+1;
}
});
});
{/literal}{/footer_script}

<div class="titrePage">
<h2>{'Menu Management'|@translate}</h2>
</div>

<form id="menuOrdering" action="{$F_ACTION}" method="post">
<ul class="menuUl">
{foreach from=$blocks item=block name="block_loop"}
<li class="menuLi {if $block.pos<0}menuLi_hidden{/if}" id="menu_{$block.reg->get_id()}">
<p>
<span>
<strong>{'Hide'|@translate} <input type="checkbox" name="hide_{$block.reg->get_id()}" {if $block.pos<0}checked="checked"{/if}></strong>
</span>

<img src="{$themeconf.admin_icon_dir}/cat_move.png" class="drag_button" style="display:none;" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}">
<strong>{$block.reg->get_name()|@translate}</strong> ({$block.reg->get_id()})
</p>

{if $block.reg->get_owner() != 'piwigo'}
<p class="menuAuthor">
{'Author'|@translate}: <i>{$block.reg->get_owner()}</i>
</p>
{/if}

<p class="menuPos">
<label>
{'Position'|@translate} :
<input type="text" size="4" name="pos_{$block.reg->get_id()}" maxlength="4" value="{math equation="abs(pos)" pos=$block.pos}">
</label>
</p>
</li>
{/foreach}
</ul>
<p class="menuSubmit">
<input type="submit" name="submit" value="{'Submit'|@translate}">
<input type="submit" name="reset" value="{'Reset'|@translate}">
</p>

</form>