[icds_twig] {% include 'Basestyletemplate' %} {% set conf = entities.bdo_conference[params.id] %} {% set lang = constant('ICL_LANGUAGE_CODE') %} {% if lang == "en" %} {% set loginmessage = "You will need to login" %} {% set cancelandrefundlabel = "Cancellation and Refund Policy:" %} {% set accomodationlabel = "Accomodations:" %} {% set contactandsupportlabel = "Contact and Support:" %} {% set registrationdeadlinelabel = "Registration Deadline:" %} {% set locationlabel = "Location:" %} {% set datelabel = "Date:" %} {% set eventdescriptionlabel = "Event Description:" %} {% set eventnamelabel = "Event:" %} {% set ticketpriceslabel = "Ticket Prices:" %} {% set registrationlabel = "Registration" %} {% set alreadyregisteredmsg = "You have already registered for this event." %} {% set alreadyregbutnopaymsg = "You have registered but will still need your payment." %} {% set Registrationclosedmsg = "Registration is currently closed." %} {% set paylabel = "Pay" %} {% set apexmemberlabel = "Member" %} {% set nonmemberlabel = "Non-Member" %} {% set registerbtnlabel = "Register" %} {% endif %} {% if lang == "fr" %} {% set loginmessage = "Vous devez ouvrir une session" %} {% set cancelandrefundlabel = "Politique d'annulation et de remboursement :" %} {% set accomodationlabel = "Hébergement :" %} {% set contactandsupportlabel = "Contact et soutien :" %} {% set registrationdeadlinelabel = "Date limite d'inscription :" %} {% set locationlabel = "Emplacement :" %} {% set datelabel = "Date :" %} {% set eventdescriptionlabel = "Description de l'événement" %} {% set eventnamelabel = "Événement :" %} {% set ticketpriceslabel = "Prix d'entrée" %} {% set registrationlabel = "Inscription" %} {% set alreadyregisteredmsg = "Vous vous êtes déjà inscrit-e à cet événement." %} {% set alreadyregbutnopaymsg = "Vous êtes inscrit-e à cet événement, mais n'avez pas réglé les frais." %} {% set Registrationclosedmsg = "La période d'inscription est terminée." %} {% set paylabel = "Payer" %} {% set apexmemberlabel = "Membre" %} {% set nonmemberlabel = "Non-membre" %} {% set registerbtnlabel = "S'inscrire" %} {% endif %}

{{eventnamelabel}} {{conf.bdo_name}}



{{eventdescriptionlabel}}

{{conf.bdo_details|raw}}

{{datelabel}}

{{conf.bdo_starttime|date("M d, Y")}} to {{conf.bdo_endtime|date("M d, Y")}}

{% if conf.rbms_locationdetails is not null %}

{{locationlabel}}

{{conf.rbms_locationdetails|raw}}

{% endif %} {% if conf.rbms_registrationdeadline is not null %}

{{registrationdeadlinelabel}}

{{conf.rbms_registrationdeadline|date("M d, Y")}}
{% endif %} {% if conf.rbms_contactandsupport is not null %}

{{contactandsupportlabel}}

{{conf.rbms_contactandsupport|raw}}

{% endif %} {% if conf.rbms_accomodations is not null %}

{{accomodationlabel}}

{{conf.rbms_accomodations|raw}}

{% endif %} {% if conf.rbms_cancellationpolicy is not null %}

{{cancelandrefundlabel}}

{{conf.rbms_cancellationpolicy|raw}}

{% endif %} {% fetchxml collection="events" cache="PT30M" %} {% if user.is_bound %} {% else %} {% endif %} {% endfetchxml %} {% if events.results.total_record_count > 0 %}

{{ticketpriceslabel}}

{% for event in events.results.entities %}
{{event.bdo_name}} : ${{event.bdo_cost|number_format(2)}}
{% endfor %}
{% endif %}

{{registrationlabel}}

{% if user.is_bound %} {% fetchxml collection="registrations" cache="PT30M" %} {% endfetchxml %} {% if registrations.results.total_record_count > 0 %} {% for reg in registrations.results.entities %} {% if (reg.bdo_paymentstatus == 755390001) or (reg.bdo_paymentstatus == 755390002) %}
{{alreadyregisteredmsg}}
{% else %}
{{alreadyregbutnopaymsg}}
{% endif %} {% endfor %} {% else %} {% endif %}

{% else %} {% if conf.rbms_registrationstart <= now|date("Y-m-d") and conf.rbms_registrationend >= now|date("Y-m-d") %}

{% else %}
{{Registrationclosedmsg}}
{% endif %} {% endif %}
[/icds_twig]