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 --- template/yoga/menubar.tpl | 175 +++---------------------------- template/yoga/menubar_categories.tpl | 22 ++++ template/yoga/menubar_identification.tpl | 64 +++++++++++ template/yoga/menubar_links.tpl | 15 +++ template/yoga/menubar_menu.tpl | 18 ++++ template/yoga/menubar_specials.tpl | 9 ++ template/yoga/menubar_tags.tpl | 18 ++++ 7 files changed, 159 insertions(+), 162 deletions(-) create mode 100644 template/yoga/menubar_categories.tpl create mode 100644 template/yoga/menubar_identification.tpl create mode 100644 template/yoga/menubar_links.tpl create mode 100644 template/yoga/menubar_menu.tpl create mode 100644 template/yoga/menubar_specials.tpl create mode 100644 template/yoga/menubar_tags.tpl (limited to 'template/yoga') diff --git a/template/yoga/menubar.tpl b/template/yoga/menubar.tpl index 4dcb6bb45..73259376e 100644 --- a/template/yoga/menubar.tpl +++ b/template/yoga/menubar.tpl @@ -1,164 +1,15 @@ -{* $Id$ *} - +{if !empty($blocks) } + + {/if} + {/foreach} + +{/if} \ No newline at end of file diff --git a/template/yoga/menubar_categories.tpl b/template/yoga/menubar_categories.tpl new file mode 100644 index 000000000..eb09ec914 --- /dev/null +++ b/template/yoga/menubar_categories.tpl @@ -0,0 +1,22 @@ +{if isset($U_START_FILTER)} +start filter +{/if} +{if isset($U_STOP_FILTER)} +stop filter +{/if} + +
+ {'Categories'|@translate} +
+
+ {$block->data.MENU_CATEGORIES_CONTENT} + {if isset($block->data.U_UPLOAD)} + + {/if} +

{$pwg->l10n_dec('%d element', '%d elements', $block->data.NB_PICTURE)}

+
+ diff --git a/template/yoga/menubar_identification.tpl b/template/yoga/menubar_identification.tpl new file mode 100644 index 000000000..49d2732a9 --- /dev/null +++ b/template/yoga/menubar_identification.tpl @@ -0,0 +1,64 @@ +
{$block->get_title()|@translate}
+
+ {if isset($USERNAME)} +

{'hello'|@translate} {$USERNAME} !

+ {/if} + + + + {if isset($U_LOGIN)} +
+
+ {'Quick connect'|@translate} +
+
+ +
+ +
+
+ +
+ + {if $AUTHORIZE_REMEMBERING} +
+ {/if} + +
+
    +
  • {'Forgot your password?'|@translate}
  • + {if isset($U_REGISTER)} +
  • {'Register'|@translate}
  • + {/if} +
+ +
+ +
+
+ {/if} +
+ diff --git a/template/yoga/menubar_links.tpl b/template/yoga/menubar_links.tpl new file mode 100644 index 000000000..9de94ff7d --- /dev/null +++ b/template/yoga/menubar_links.tpl @@ -0,0 +1,15 @@ +
{$block->get_title()|@translate}
+
+ +
+ diff --git a/template/yoga/menubar_menu.tpl b/template/yoga/menubar_menu.tpl new file mode 100644 index 000000000..b9d26376b --- /dev/null +++ b/template/yoga/menubar_menu.tpl @@ -0,0 +1,18 @@ +
{$block->get_title()|@translate}
+
+
+

is for html validation only - does not affect positioning*}> + +

+
+ + + +
+ diff --git a/template/yoga/menubar_specials.tpl b/template/yoga/menubar_specials.tpl new file mode 100644 index 000000000..8bda68402 --- /dev/null +++ b/template/yoga/menubar_specials.tpl @@ -0,0 +1,9 @@ +
{$block->get_title()|@translate}
+
+ +
+ diff --git a/template/yoga/menubar_tags.tpl b/template/yoga/menubar_tags.tpl new file mode 100644 index 000000000..0200eb5b7 --- /dev/null +++ b/template/yoga/menubar_tags.tpl @@ -0,0 +1,18 @@ +
{$block->get_title()|@translate}
+
+ +
+ -- cgit v1.2.3