<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

?>
<div class="ipb-section ipb-frequency-settings">
 <div class="ipb-section-header">
    <h3>Limitations</h3>
</div>
<div class="ipb-section-content" data-section="display">
    <div class="ipb-frequency-row">
        <div class="ipb-frequency-label">
            <label>Frequency</label>
        </div>
        <div class="ipb-frequency-control">
            <div class="ipb-frequency-fields">
                <div class="ipb-frequency-field">
                    <label class="ipb-frequency-field-label" for="limit_count">
                        <span>Show up to</span>
                        <div class="info">
                            <img src="<?php echo esc_url(plugin_dir_url(dirname(dirname(__FILE__))) . '/image/info.svg'); ?>" alt="">
                            <div class="detail" style="display: none;">Maximum number of times this popup can appear to a visitor (tracked per browser).</div>
                        </div>
                    </label>
                    <input type="number" name="limit_count" id="limit_count" class="regular-text" placeholder="e.g. 1 or 3">
                </div>
                <div class="ipb-frequency-field">
                    <label class="ipb-frequency-field-label" for="limit_expiry">
                        <span>Reset after (days)</span>
                        <div class="info">
                            <img src="<?php echo esc_url(plugin_dir_url(dirname(dirname(__FILE__))) . '/image/info.svg'); ?>" alt="">
                            <div class="detail" style="display: none;">After this many days, the view limit resets for the visitor.</div>
                        </div>
                    </label>
                    <input type="number" name="limit_expiry" id="limit_expiry" class="regular-text" placeholder="e.g. 7">
                </div>
            </div>
        </div>
    </div>
</div>
</div>