<?php if ('layout_one' === $settings['layout_type']) : ?>
    <section class="error-404">
        <div class="container">
            <?php if (!empty($settings['image']['url'])) : ?>
                <div class="error-404__img">
                    <div class="error-404__img__item">
                        <?php ostech_elementor_rendered_image($settings, 'image'); ?>
                    </div>
                </div>
            <?php endif; ?>
            <?php
            if (!empty($settings['title'])) :
                $this->add_inline_editing_attributes('title', 'none');
                ostech_elementor_rendered_content($this, 'title', 'error-404__sub-title', $settings['title_tag_layout_one']);
            endif;
            ?>
            <p class="error-404__text"><?php echo esc_html($settings['sub_title']); ?></p>

            <form action="<?php echo esc_url(home_url('/')); ?>" class="error-404__search">
                <input name="s" type="text" id="error-search" placeholder="<?php echo esc_attr($settings['search_place_holder']); ?>">
                <button type="submit" class="error-404__search__btn" aria-label="search submit">
                    <span><i class="icon-search"></i></span>
                </button>
            </form>
            <?php if (!empty($settings['button_label'])) : ?>
                <div class="error-404__btns">
                    <a href="<?php echo esc_url($settings['button_url']['url']); ?>" <?php esc_attr(!empty($settings['button_url']['is_external']) ? "target=_blank" : ' '); ?> class="ostech-btn ostech-btn--base error-404__btn"><span><?php echo esc_html($settings['button_label']); ?></span></a>
                </div>
            <?php endif; ?>
        </div>
    </section>


<?php endif; ?>