mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
use of a boolean value for the "qsearch" $block->data variable
(see topic #98370) git-svn-id: http://piwigo.org/svn/trunk@2813 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -217,7 +217,7 @@ function initialize_menu()
|
||||
{
|
||||
// quick search block will be displayed only if data['qsearch'] is set
|
||||
// to "yes"
|
||||
$block->data['qsearch']='yes';
|
||||
$block->data['qsearch']=true;
|
||||
|
||||
// tags link
|
||||
$block->data['tags'] =
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<dt>{'title_menu'|@translate}</dt>
|
||||
<dd>
|
||||
{if isset($block->data.qsearch) and $block->data.qsearch=="yes"}
|
||||
{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%"/>
|
||||
|
||||
Reference in New Issue
Block a user