Last change
on this file since 3996 was
2814,
checked in by grum, 16 years ago
|
menu item "quicksearch" will be displayed only if a $block->data is set (like
other menu items)
use of a boolean value for the "qsearch" $block->data variable
(see topic #98370)
|
-
Property svn:eol-style set to
LF
|
File size:
939 bytes
|
Rev | Line | |
---|
[2521] | 1 | <dt>{'title_menu'|@translate}</dt> |
---|
[2488] | 2 | <dd> |
---|
[2814] | 3 | {if isset($block->data.qsearch) and $block->data.qsearch==true} |
---|
| 4 | <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;"> |
---|
| 5 | <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}> |
---|
| 6 | <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%"/> |
---|
| 7 | </p> |
---|
| 8 | </form> |
---|
| 9 | <script type="text/javascript">var qsearch_prompt="{'qsearch'|@translate|@escape:'javascript'}"; document.getElementById('qsearchInput').value=qsearch_prompt;</script> |
---|
| 10 | {/if} |
---|
[2488] | 11 | |
---|
| 12 | <ul> |
---|
| 13 | {foreach from=$block->data item=link} |
---|
| 14 | {if is_array($link)} |
---|
| 15 | <li><a href="{$link.URL}" title="{$link.TITLE}" {if isset($link.REL)}{$link.REL}{/if}>{$link.NAME}</a></li> |
---|
| 16 | {/if} |
---|
| 17 | {/foreach} |
---|
| 18 | </ul> |
---|
| 19 | </dd> |
---|
| 20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.