{if $popup[0]->isVisible}
    <div class="popup popup--{$popup[0]->version|default:'image'}" id="popup-newsletter">
        <div class="popup-content block_newsletter" id="blockEmailSubscription_displayFooter">
            <span class="close-popup">&times;</span>
            {if $popup[0]->image}
                <div class="popup-media">
                    <img src="{$popup[0]->image}" alt="" class="popup-image"/>
                </div>
            {/if}
            <div class="popup-body">
                <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="{l s='Votre adresse e-mail' d='Shop.Theme.Global'}" aria-label="{l s='Votre adresse e-mail' d='Shop.Theme.Global'}" required/>
                    <input class="btn-submit-newsletter btn-primary" name="submitNewsletter" type="submit" value="{l s='S’inscrire' d='Shop.Theme.Actions'}">
                    <input type="hidden" name="blockHookName" value="displayFooter" />
                    <input type="hidden" name="action" value="0">
                </form>
            </div>
        </div>
    </div>
    <script src="{$urls.base_url}modules/lcvprestatheme/views/js/popup.js"></script>
{/if}


