1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 21:18:04 +01:00

#2060 - Make sc_search() shortcode consistent

This commit is contained in:
Tijn Kuyper 2019-04-03 12:08:18 +02:00
parent 4eff3a7785
commit 83574f2e4f
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -295,16 +295,26 @@
function sc_search()
{
return "
<form method='get' class='form-inline input-append' action='" . e_BASE . "search.php'>
<p>
<input class='tbox' type='text' name='q' size='20' value='' maxlength='50' />
<button class='btn btn-default btn-secondary button' type='submit' name='s' >" . LAN_SEARCH . "</button>
<input type='hidden' name='r' value='0' />
<input type='hidden' name='ref' value='forum' />
</p>
</form>";
if(!deftrue('FONTAWESOME') || !$srchIcon = e107::getParser()->toGlyph('fa-search'))
{
$srchIcon = LAN_SEARCH;
}
// String candidate for USERLIST wrapper
return "
<form method='get' class='form-inline input-append' action='".e_HTTP."search.php'>
<div class='input-group'>
<input type='hidden' name='r' value='0' />
<input type='hidden' name='t' value='forum' />
<input type='hidden' name='forum' value='all' />
<input class='tbox form-control' type='text' name='q' size='20' value='' maxlength='50' />
<span class='input-group-btn'>
<button class='btn btn-default btn-secondary button' type='submit' name='s' value='search' >".$srchIcon."</button>
</span>
</div>
</form>\n";
}