<form id="search-@id" class="@classNames form-inline" method="<?php echo isset($_GET['preview']) ? 'post' : 'get'; ?>" name="searchform" action="<?php echo esc_url( home_url() ); ?>/">
    <div class="@containerInner">
        <div class="bd-search-wrapper">
            @if (showButton) {
                @if (buttonPosition === 'left') {
                <div class="bd-button-wrapper">
                    <input type="submit" class="@button.classNames" value="@searchBtnText">
                </div>
                }
                <div class="bd-input-wrapper">
                    @include("input")
                </div>
                @if (buttonPosition === 'right') {
                <div class="bd-button-wrapper">
                    <input type="submit" class="@button.classNames" value="@searchBtnText">
                </div>
                }
            } else {
                @include("input")
                @include("icon")
            }
        </div>
    </div>
    <input type="hidden" name="post_type" value="<?php echo(!theme_woocommerce_enabled() || theme_get_option('theme_search_mode') == 'post' ? 'post' : 'product'); ?>" />
</form>