1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 04:40:44 +02:00

Merge pull request #1550 from rica-carv/rica-carv-patch-download_shortcodes

#1526 Updated download_cat_search shortcode to toIcon() method
This commit is contained in:
Cameron
2016-04-17 08:29:31 -07:00

View File

@@ -909,6 +909,7 @@ class download_shortcodes extends e_shortcode
function sc_download_cat_search() function sc_download_cat_search()
{ {
$tp = e107::getParser();
$text = "<form class='form-search form-inline' method='get' action='".e_BASE."search.php'>"; $text = "<form class='form-search form-inline' method='get' action='".e_BASE."search.php'>";
$text .= '<div><div class="input-group">'; $text .= '<div><div class="input-group">';
$text .= "<input class='tbox form-control search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_SEARCH."\" maxlength='50' /> $text .= "<input class='tbox form-control search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_SEARCH."\" maxlength='50' />
@@ -918,9 +919,11 @@ class download_shortcodes extends e_shortcode
$text .= ' $text .= '
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default" type="submit" name="s" value="1"> <button class="btn btn-default" type="submit" name="s" value="1">';
<span class="glyphicon glyphicon-search"></span>
</button> $text .= $tp->toIcon('glyphicon-search.glyph');
$text .= '</button>
</span> </span>
</div><!-- /input-group --> </div><!-- /input-group -->
</div></form>'; </div></form>';