{if ((isset($tnt_cp_popupImg) && !empty($tnt_cp_popupImg) && isset($tnt_cp_popupTitle) ) || (isset($tnt_cp_popupDescription) && !empty($tnt_cp_popupDescription))) && isset($tnt_cp_popupShow) && isset($tnt_cp_popupSize)}
    <div class="modal fade" id="saleModal" tabindex="-1" aria-labelledby="saleModalLabel" aria-hidden="true">
        <div class="modal-dialog {$tnt_cp_popupSize} modal-dialog-centered">
            <div class="modal-content p-0">
                <div class="modal-header border-0 p-0">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="z-index: 9;">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body text-center p-0">
                    {if isset($tnt_cp_popupImg) && !empty($tnt_cp_popupImg) && isset($tnt_cp_popupTitle) }
                        <img src="{$tnt_cp_popupImg}" class="img-fluid" alt="{$tnt_cp_popupTitle}" width="" height="">
                    {/if}

                    {if isset($tnt_cp_popupDescription) && !empty($tnt_cp_popupDescription)}
                        {$tnt_cp_popupDescription}
                    {/if}

                </div>
            </div>
        </div>
    </div>
    {inline_script}
        <script>
            $(document).ready(function () {
                $('#saleModal').modal('show');
            });
        </script>
    {/inline_script}
{/if}