<?php $this->extend('block_unsearchable'); ?>

<?php $this->block('content'); ?>

<form<?php if ($this->action): ?> action="<?= $this->action ?>"<?php endif; ?> method="get">
    <div class="formbody">
        <div class="widget widget-text">
            <div class="input-group">
                <input type="search" placeholder="Suche..." name="keywords"
                       id="ctrl_keywords_<?= $this->uniqueId ?>"
                       class="text form-control"
                       value="<?= $this->keyword ?>">

                <div class="input-group-append">
                    <button type="submit" id="ctrl_submit_<?= $this->uniqueId ?>"
                            class="btn btn-primary submit"><i class="far fa-search"></i></button>
                </div>
            </div>
        </div>
        <?php if ($this->advanced): ?>
            <div class="widget widget-radio">
                <fieldset class="radio_container">
                    <legend class="invisible"><?= $this->optionsLabel ?></legend>
                    <span><input type="radio" name="query_type" id="matchAll_<?= $this->uniqueId ?>" class="radio"
                                 value="and"<?php if ('and' == $this->queryType): ?> checked<?php endif; ?>> <label
                                for="matchAll_<?= $this->uniqueId ?>"><?= $this->matchAll ?></label></span>
                    <span><input type="radio" name="query_type" id="matchAny_<?= $this->uniqueId ?>" class="radio"
                                 value="or"<?php if ('or' == $this->queryType): ?> checked<?php endif; ?>> <label
                                for="matchAny_<?= $this->uniqueId ?>"><?= $this->matchAny ?></label></span>
                </fieldset>
            </div>
        <?php endif; ?>
    </div>
</form>

<?php if ($this->header): ?>
    <p class="header"><?= $this->header ?></p>
    <?php if ($this->keywordHint): ?>
        <p class="info"><?= $this->keywordHint ?></p>
    <?php endif; ?>
<?php endif; ?>

<?= $this->results . $this->pagination ?>

<?php $this->endblock(); ?>