mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 11:13:02 +02:00
- based on test_menu by grum (thanks to you) - integration of dynamic menu bar to pwg
- the menubar is composed now of dynamic blocks that can be ordered/hidden - plugins can add their own blocks git-svn-id: http://piwigo.org/svn/trunk@2488 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<ul>
|
||||
<li><a href="{$U_CONFIG_GENERAL}">{'conf_general'|@translate}</a></li>
|
||||
<li><a href="{$U_CONFIG_DISPLAY}">{'conf_display'|@translate}</a></li>
|
||||
<li><a href="{$U_CONFIG_MENUBAR}">{'title_menu'|@translate}</a></li>
|
||||
<li><a href="{$U_CONFIG_EXTENTS}">{'conf_extents'|@translate}</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
{* $Id: tracer_admin.tpl 2342 2008-05-15 18:43:33Z rub $ *}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>Menubar</h2>
|
||||
</div>
|
||||
|
||||
<form method="post" class="properties">
|
||||
<table class="table2">
|
||||
<tr class="throw">
|
||||
<td>Id</td>
|
||||
<td>{'Author'|@translate}</td>
|
||||
<td>{'Name'|@translate}</td>
|
||||
<td>{'Position'|@translate}</td>
|
||||
<td>Hide</td>
|
||||
</tr>
|
||||
{foreach from=$blocks item=block name="block_loop"}
|
||||
<tr class="{if $smarty.foreach.block_loop.index is odd}row1{else}row2{/if}">
|
||||
<td>{$block.reg->get_id()}</td>
|
||||
<td>{$block.reg->get_owner()}</td>
|
||||
<td>{$block.reg->get_name()|@translate}</td>
|
||||
<td><input type="input" name="pos_{$block.reg->get_id()}" value={math equation="abs(pos)" pos=$block.pos} size="2"></td>
|
||||
<td><input type="checkbox" name="hide_{$block.reg->get_id()}" {if $block.pos<0}checked="checked"{/if} ></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<p>
|
||||
<input type="submit" name="submit" value="{'Submit'|@translate}" >
|
||||
<input type="submit" name="reset" value="{'Reset'|@translate}" >
|
||||
</p>
|
||||
</form>
|
||||
@@ -9,6 +9,7 @@ function selected_admin_menu()
|
||||
switch ($_GET['page']) {
|
||||
case 'configuration':
|
||||
case 'extend_for_templates':
|
||||
case 'menubar':
|
||||
return 1;
|
||||
case 'site_manager':
|
||||
case 'site_update':
|
||||
@@ -55,7 +56,7 @@ $themeconf = array(
|
||||
'admin_icon_dir' => 'template/yoga/icon/admin',
|
||||
'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
|
||||
'local_head' => '
|
||||
<!-- New template location for admin -->
|
||||
<!-- New template location for admin -->
|
||||
<!-- Admin Accordion Menus -->
|
||||
<script type="text/javascript" src="template-common/lib/jquery.js"></script>
|
||||
<script type="text/javascript" src="template-common/lib/chili-1.7.pack.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user