<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<div data-css-class="woof_sku_search_container" class="woof_sku_search_container woof_container">
    <div class="woof_container_overlay_item"></div>
    <div class="woof_container_inner">
        <?php
        $woof_sku = '';
        $request = $this->get_request_data();

        if (isset($request['woof_sku']))
        {
            $woof_sku = $request['woof_sku'];
        }
        //+++
        if (!isset($placeholder))
        {
            $p = __('enter a product sku here ...', 'woocommerce-products-filter');
        }


        if (isset($this->settings['by_sku']['placeholder']) AND ! isset($placeholder))
        {
            if (!empty($this->settings['by_sku']['placeholder']))
            {
                $p = $this->settings['by_sku']['placeholder'];
                $p = WOOF_HELPER::wpml_translate(null, $p);
                $p = __($p, 'woocommerce-products-filter');
            }


            if ($this->settings['by_sku']['placeholder'] == 'none')
            {
                $p = '';
            }
        }
        //***
        $unique_id = uniqid('woof_sku_search_');
        ?>

        <div class="woof_show_sku_search_container">
            <a href="javascript:void(0);" data-uid="<?php echo $unique_id ?>" class="woof_sku_search_go <?php echo $unique_id ?>"></a>
            <input type="search" class="woof_show_sku_search <?php echo $unique_id ?>" id="<?php echo $unique_id ?>" data-uid="<?php echo $unique_id ?>" placeholder="<?php echo(isset($placeholder) ? $placeholder : $p) ?>" name="woof_sku" value="<?php echo $woof_sku ?>" /><br />
            <?php if (isset($this->settings['by_sku']['notes_for_customer']) AND ! empty($this->settings['by_sku']['notes_for_customer'])): ?>
                <span class="woof_sku_notes_for_customer"><?php echo $this->settings['by_sku']['notes_for_customer'] ?></span>
            <?php endif; ?>
        </div>

    </div>
</div>