<?php 
require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'functions.php';
?>
<form role="form" class="@classNames form-inline" name="search" action="<?php echo JRoute::_('index.php');?>" method="post">
    <div class="row">
        <div class="col-lg-18">
            <input type="hidden" name="task" value="search">
            <input type="hidden" name="option" value="com_search">
            <input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
            @if(showButton && joinButton) {
                <div class="input-group">
            }
            @if (buttonPosition === 'right') {
                @include("input")
            }
            @if(showButton) {
                <span class="input-group-btn">
                    <input type="submit" value="<?php echo $button_text ?>" class="@button.classNames <?php echo $moduleclass_sfx ?>" onclick="this.form.searchword.focus();"/>
                </span>
            }
            @if (buttonPosition === 'left') {
                @include("input")
            }
            @if (icon.passive.picture.fileName) {
                <img class="@(icon.classNames)-picture" src="@icon.passive.picture" data-hovered="@icon.hovered.picture">
            }
            @if(showButton && joinButton) {
                </div>
            }
        </div>
    </div>
</form>