aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/menubar_menu.tpl
blob: 16c02f6185d88f77cb848fb6cc5d7161e65f845c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<dt>{'title_menu'|@translate}</dt>
<dd>
  {if isset($block->data.qsearch) and  $block->data.qsearch=="yes"}
    <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>