Last change
on this file since 29432 was
27884,
checked in by rvelices, 10 years ago
|
bug 3056: quick search
- added inflectors for english and french languages
- current quick search is kept in the quick search input box
- small fixes
|
-
Property svn:eol-style set to
LF
|
File size:
1.0 KB
|
Rev | Line | |
---|
[5021] | 1 | <dt>{'Menu'|@translate}</dt> |
---|
[2488] | 2 | <dd> |
---|
[8774] | 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*}> |
---|
[27884] | 6 | <input type="text" name="q" id="qsearchInput" onfocus="if (value==qsearch_prompt) value='';" onblur="if (value=='') value=qsearch_prompt;" style="width:90%"{if !empty($QUERY_SEARCH)} value="{$QUERY_SEARCH}"{/if}> |
---|
[8774] | 7 | </p> |
---|
| 8 | </form> |
---|
[27884] | 9 | <script type="text/javascript">var qsearch_prompt="{'Quick search'|@translate|@escape:'javascript'}";{if empty($QUERY_SEARCH)}document.getElementById('qsearchInput').value=qsearch_prompt;{/if}</script> |
---|
[8774] | 10 | {/if} |
---|
| 11 | <ul>{strip} |
---|
[2488] | 12 | {foreach from=$block->data item=link} |
---|
| 13 | {if is_array($link)} |
---|
[21817] | 14 | <li><a href="{$link.URL}" title="{$link.TITLE}"{if isset($link.REL)} {$link.REL}{/if}>{$link.NAME}</a>{if isset($link.COUNTER)} ({$link.COUNTER}){/if}</li> |
---|
[2488] | 15 | {/if} |
---|
| 16 | {/foreach} |
---|
[8774] | 17 | {/strip}</ul> |
---|
[2488] | 18 | </dd> |
---|
Note: See
TracBrowser
for help on using the repository browser.