{if $popup[0]->isVisible}
    <div class="popup" id="popup-newsletter">
        <div class="popup-content block_newsletter" id="blockEmailSubscription_displayFooter">
            <span class="close-popup">&times;</span>
            {if $popup[0]->image}
                <div>
                    <img src="{$popup[0]->image}" alt="Newsletter Image" class="popup-image"/>
                </div>
            {/if}
            <div>
                <h2>{$popup[0]->title}</h2>
                <p>{$popup[0]->subTitle}</p>
                <form action="{$urls.current_url}#blockEmailSubscription_displayFooter" method="post" class="newsletter-form">
                    <input class="form-control" type="email" name="email" placeholder="Enter your email" aria-labelledby="block-newsletter-label" required/>
                    <input class="btn-submit-newsletter btn-primary" name="submitNewsletter" type="submit" value="S'inscrire">
                    <input type="hidden" name="blockHookName" value="displayFooter" />
                    <input type="hidden" name="action" value="0">
                </form>
            </div>
        </div>
    </div>
    <script src="{$urls.base_url}modules/polarisprestatheme/views/js/popup.js"></script>
{/if}


