aboutsummaryrefslogtreecommitdiffstats
path: root/template/default/menubar_menu.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-09 20:17:00 +0000
committerplegall <plg@piwigo.org>2010-03-09 20:17:00 +0000
commitc9dfb3a41f0341531594de215a25d7cb0091ca56 (patch)
tree3d7ca60026e80650cb47aaadabb38646d5213438 /template/default/menubar_menu.tpl
parentd63e90c5d022d5b88b66c33972533bab20edcec5 (diff)
feature 1494: move all *.tpl files from template/yoga to the new
template/default (from which yoga derives) git-svn-id: http://piwigo.org/svn/trunk@5095 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/default/menubar_menu.tpl')
-rw-r--r--template/default/menubar_menu.tpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/template/default/menubar_menu.tpl b/template/default/menubar_menu.tpl
new file mode 100644
index 000000000..0d6541b97
--- /dev/null
+++ b/template/default/menubar_menu.tpl
@@ -0,0 +1,20 @@
+<dt>{'Menu'|@translate}</dt>
+<dd>
+ {if isset($block->data.qsearch) and $block->data.qsearch==true}
+ <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">
+ <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}>
+ <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%">
+ </p>
+ </form>
+ <script type="text/javascript">var qsearch_prompt="{'qsearch'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script>
+ {/if}
+
+ <ul>
+ {foreach from=$block->data item=link}
+ {if is_array($link)}
+ <li><a href="{$link.URL}" title="{$link.TITLE}" {if isset($link.REL)}{$link.REL}{/if}>{$link.NAME}</a></li>
+ {/if}
+ {/foreach}
+ </ul>
+</dd>
+