<div class="@containerInner">
    <div class="bd-search-wrapper">
        @if (showButton) {
            @if (buttonPosition === 'left') {
            <div class="bd-button-wrapper">
                <?php print $search_box_button ?>
            </div>
            }
            <div class="bd-input-wrapper">
                @include("input")
            </div>
            @if (buttonPosition === 'right') {
            <div class="bd-button-wrapper">
                <?php print $search_box_button ?>
            </div>
            }
        } else {
            @include("input")
            @include("icon")
        }
    </div>
</div>
<script>
    (function (jQuery, $) {
        jQuery('@(selector) @(icon.selector)').bind('click', function (e) {
            e.preventDefault();
            jQuery('#<?php print $search_box_id ?>').submit();
        });
    })(window.@jQuery, window.@jQuery);
</script>
