From abb2f22b2e96a89a44ad9d36db3bf612c6f88b9f Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 28 Aug 2008 00:32:39 +0000 Subject: - 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 --- admin/template/yoga/admin.tpl | 1 + admin/template/yoga/admin/menubar.tpl | 30 +++++++++++++++++++++++ admin/template/yoga/theme/admin/themeconf.inc.php | 3 ++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 admin/template/yoga/admin/menubar.tpl (limited to 'admin/template') diff --git a/admin/template/yoga/admin.tpl b/admin/template/yoga/admin.tpl index 49441f8e5..4914477d0 100644 --- a/admin/template/yoga/admin.tpl +++ b/admin/template/yoga/admin.tpl @@ -23,6 +23,7 @@ diff --git a/admin/template/yoga/admin/menubar.tpl b/admin/template/yoga/admin/menubar.tpl new file mode 100644 index 000000000..06ff9ee9a --- /dev/null +++ b/admin/template/yoga/admin/menubar.tpl @@ -0,0 +1,30 @@ +{* $Id: tracer_admin.tpl 2342 2008-05-15 18:43:33Z rub $ *} + +
+

Menubar

+
+ +
+ + + + + + + + + {foreach from=$blocks item=block name="block_loop"} + + + + + + + + {/foreach} +
Id{'Author'|@translate}{'Name'|@translate}{'Position'|@translate}Hide
{$block.reg->get_id()}{$block.reg->get_owner()}{$block.reg->get_name()|@translate}
+

+ + +

+
\ No newline at end of file diff --git a/admin/template/yoga/theme/admin/themeconf.inc.php b/admin/template/yoga/theme/admin/themeconf.inc.php index e3b6fc63e..6a87b0f4e 100644 --- a/admin/template/yoga/theme/admin/themeconf.inc.php +++ b/admin/template/yoga/theme/admin/themeconf.inc.php @@ -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' => ' - + -- cgit v1.2.3