alextselegidis/easyappointments

Markup visible for TOS and privacy policy

Closed this issue · 5 comments

At the end of booking (last screen), if you have chosen to show TOS and privacy policy, the markup is displayed in the popup. (

and
got visible).
It’s in dev branch. If pointed to the right direction, I might correct that myself.

Hello!

Can you please elaborate?

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Capture d’écran du 2024-02-26 17-32-33

Here is a screenshot.

It seems the error is in booking_layout.php

<?php if (vars('display_cookie_notice') === '1'): ?>
    <?php component('cookie_notice_modal', ['cookie_notice_content' => vars('cookie_notice_content')]); ?>
<?php endif; ?>

<?php if (vars('display_terms_and_conditions') === '1'): ?>
    <?php component('terms_and_conditions_modal', [
        'terms_and_conditions_content' => vars('terms_and_conditions_content'),
    ]); ?>
<?php endif; ?>

<?php if (vars('display_privacy_policy') === '1'): ?>
    <?php component('privacy_policy_modal', ['privacy_policy_content' => vars('privacy_policy_content')]); ?>
<?php endif; ?>

But I don’t know Code Igniter enough to know how to avoid html chars escaping in this case. Can you help ?

Hello!

Thanks for reporting this.

I will take a closer look

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Solved in develop

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!