BP: Add livesearch support for navbar quicksearch. Note: all stylesheets changed from selector navbarsearchform to #sitenav #searchform {}
This commit is contained in:
templates/bulletproof
@ -46,7 +46,7 @@ body {
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarsearchform {
|
#sitenav #searchform {
|
||||||
float: right;
|
float: right;
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ input#serendipityQuickSearchTermField {
|
|||||||
border: 1px solid #1F5F7F!important;
|
border: 1px solid #1F5F7F!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarsearchform input {
|
#sitenav #searchform input {
|
||||||
border: 1px solid #1f5f7f;
|
border: 1px solid #1f5f7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ input#serendipityQuickSearchTermField {
|
|||||||
border: 1px solid #224c03!important;
|
border: 1px solid #224c03!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarsearchform input {
|
#sitenav #searchform input {
|
||||||
border: 1px solid #224c03;
|
border: 1px solid #224c03;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,12 @@
|
|||||||
<!-- quicksearch option in the navigational link menu bar only when navbar is -->
|
<!-- quicksearch option in the navigational link menu bar only when navbar is -->
|
||||||
<!-- above or below the banner -->
|
<!-- above or below the banner -->
|
||||||
{if $template_option.sitenav_quicksearch == 'true'}
|
{if $template_option.sitenav_quicksearch == 'true'}
|
||||||
<form id="navbarsearchform" action="{$serendipityBaseURL}" method="get"><input type="hidden" name="serendipity[action]" value="search" /><input alt="{$CONST.QUICKSEARCH}" type="text" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" /></form>
|
<form id="searchform" action="{$serendipityHTTPPath}{$serendipityIndexFile}" method="get">
|
||||||
|
<input type="hidden" name="serendipity[action]" value="search" />
|
||||||
|
<input alt="{$CONST.QUICKSEARCH}" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" />
|
||||||
|
<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>
|
||||||
|
</form>
|
||||||
|
{serendipity_hookPlugin hook="quicksearch_plugin" hookAll="true"}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@ -119,7 +124,12 @@
|
|||||||
<!-- quicksearch option in the navigational link menu bar only when navbar is -->
|
<!-- quicksearch option in the navigational link menu bar only when navbar is -->
|
||||||
<!-- above or below the banner -->
|
<!-- above or below the banner -->
|
||||||
{if $template_option.sitenav_quicksearch == 'true'}
|
{if $template_option.sitenav_quicksearch == 'true'}
|
||||||
<form id="navbarsearchform" action="{$serendipityBaseURL}" method="get"><input type="hidden" name="serendipity[action]" value="search" /><input alt="{$CONST.QUICKSEARCH}" type="text" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" /></form>
|
<form id="searchform" action="{$serendipityHTTPPath}{$serendipityIndexFile}" method="get">
|
||||||
|
<input type="hidden" name="serendipity[action]" value="search" />
|
||||||
|
<input alt="{$CONST.QUICKSEARCH}" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" />
|
||||||
|
<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>
|
||||||
|
</form>
|
||||||
|
{serendipity_hookPlugin hook="quicksearch_plugin" hookAll="true"}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Name: Bulletproof v1.2 beta (s9y-bulletproof.com)
|
Name: Bulletproof v1.2 beta (s9y-bulletproof.com)
|
||||||
Author: Bulletproof development team
|
Author: Bulletproof development team
|
||||||
Date: 2007-10-30
|
Date: 2007-11-15
|
||||||
Require Serendipity: 1.2
|
Require Serendipity: 1.2
|
||||||
|
@ -250,7 +250,7 @@ input#serendipityQuickSearchTermField {
|
|||||||
border: 1px solid #823995!important;
|
border: 1px solid #823995!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarsearchform input {
|
#sitenav #searchform input {
|
||||||
border: 1px solid #823995;
|
border: 1px solid #823995;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,11 +409,11 @@ input#serendipityQuickSearchTermField {
|
|||||||
background: #ffffff url('{TEMPLATE_PATH}img/quicksearch.png') no-repeat 97% 50%;
|
background: #ffffff url('{TEMPLATE_PATH}img/quicksearch.png') no-repeat 97% 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarsearchform {
|
#sitenav #searchform {
|
||||||
margin: 0 10px 0 0;
|
margin: 0 10px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbarsearchform input {
|
#sitenav #searchform input {
|
||||||
width: 165px;
|
width: 165px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
|
Reference in New Issue
Block a user