• Resolved pherbio

    (@pherbio)


    I’d like to add the ability to have the tickets button display on the widget.

    I’d like to add something like the following to the agenda-widget.twig:

    {% if event.get( 'ticket_url' ) is not empty %}
    <a href="{{ event.get( 'ticket_url' ) | e('html_attr') }}" target="_blank"

    However, this code does not display the “Purchase Tickets” text I’m wanting. Any suggestions on how to activate this functionality on the wdiget?

    https://www.ads-software.com/plugins/all-in-one-event-calendar/

Viewing 1 replies (of 1 total)
  • Thread Starter pherbio

    (@pherbio)

    Nevermind. I was able to get the functionality I needed.

    {% include 'event-popup.twig' with {
    'text_venue_separator': text_venue_separator
    } %}
    <div style="background: inherit;">
    {% if event.get( 'ticket_url' ) is not empty %}
    <a href="{{ event.get( 'ticket_url' ) | e('html_attr') }}" target="_blank"
    class="ai1ec-tickets ai1ec-btn ai1ec-btn-sm ai1ec-btn-primary
    ai1ec-tooltip-trigger"
    title="Register"
    data-placement="left">
    <i class="ai1ec-fa ai1ec-fa-ticket ai1ec-fa-fw"></i>
    <span>
    Register
    </span>
    </a>
    {% endif %}
    </div>
Viewing 1 replies (of 1 total)
  • The topic ‘Add register to widget’ is closed to new replies.