templates/content/tmpl/event-single.html.twig line 42

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block body %}
  3. {% embed "1-col-sidebar.html.twig" %}
  4. {# single event #}
  5. {% block column %}
  6. {% include  "includes/curtain-ads/information.html.twig" %}
  7.     <a href="/events">« All Events</a>
  8.     <h1>{{ content.title }}</h1>
  9.     <h3>
  10.     {% if content_meta._EventAllDay is defined and content_meta._EventAllDay == "yes" %}
  11.         {{ content_meta._EventStartDate | date("F j, Y") }} - {{ content_meta._EventEndDate | date("F j, Y") }}
  12.     {% elseif content_meta._EventStartDate | date("F j, Y") == content_meta._EventEndDate | date("F j, Y") %}
  13.         {{ content_meta._EventStartDate | date("F j, Y @ g:i a") }} - {{ content_meta._EventEndDate | date("g:i a") }}
  14.     {% else %}
  15.         {{ content_meta._EventStartDate | date("F j, Y @ g:i a") }} - {{ content_meta._EventEndDate | date("F j, Y @ g:i a") }}
  16.     {% endif %}
  17.     {{ content_meta._EventTimezone|timezone }}
  18.     </h3>
  19.     <div class="row" style="padding-bottom: 30px;">
  20.         <div class="col-6">
  21.             {% if previous_event is not empty %}
  22.                 <a href="/event/{{previous_event.getSlug()}}"><i class="fa fa-chevron-left"></i> {{ previous_event.title }}</a>
  23.             {% endif %}
  24.         </div>
  25.         <div class="col-6">
  26.             {% if next_event is not empty %}
  27.                 <a href="/event/{{next_event.getSlug()}}" style="float: right;">{{ next_event.title }} <i class="fa fa-chevron-right"></i></a>
  28.             {% endif %}
  29.         </div>
  30.     </div>
  31.     
  32.     {% if content.getFeaturedImageTag() is not empty %}
  33.         {% if content.getMediaURL() %}<a href="{{content.getMediaURL()}}">{% endif %}
  34.             <div class="post-thumbnail">
  35.                 {{ content.getFeaturedImageTag("","max-height: 450px;")|raw }}
  36.             </div>
  37.         {% if content.getMediaURL() %}</a>{% endif %}
  38.     {% endif %}
  39.     
  40.     <div class="event-content">{{ content.contentfull | wordpress | raw }}</div>
  41.     
  42.     <br><br>
  43.     {#
  44.     <a href="{{ google_cal_link }}" target="_blank" class="button" style="display:inline;">Google Calendar Link</a>
  45.     
  46.     <form method="post" action="/download-ics" style="display:inline;">
  47.       <input type="hidden" name="dtstart" value="{{ content_meta._EventStartDate | date }}">
  48.       <input type="hidden" name="dtend" value="{{ content_meta._EventEndDate | date }}">
  49.       <input type="hidden" name="location" value="{{ venue._VenueAddress ~ ' ' ~ venue._VenueCity ~ ' ' ~ venue._VenueState ~ ' ' ~ venue._VenueZip ~ ' ' ~ venue._VenueCountry }}">
  50.       <input type="hidden" name="description" value="{{ content.contentfull | striptags }}">
  51.       <input type="hidden" name="summary" value="{{ content.title }}">
  52.       <input type="hidden" name="url" value="{{ content_meta._EventEndDate }}">
  53.       <input type="submit" class="button" value="ICAL Export" style="line-height: normal !important;">
  54.     </form>
  55.     <br><br>
  56.     #}
  57.     
  58.     <div class="row">
  59.         <div class="event-details col-lg-4">
  60.             <h6>Details</h6>
  61.             <hr>
  62.             
  63.             {% if content_meta._EventAllDay is defined and content_meta._EventAllDay == "yes" %}
  64.                 <label>Start:</label> {{ content_meta._EventStartDate | date("M j, Y") }}<br>
  65.                 <label>End:</label> {{ content_meta._EventEndDate | date("M j, Y") }}<br>
  66.             {% else %}
  67.                 <label>Start:</label> {{ content_meta._EventStartDate | date("M j, Y @ g:i a")}} {{ content_meta._EventTimezone|timezone }}<br>
  68.                 <label>End:</label> {{ content_meta._EventEndDate | date("M j, Y @ g:i a")}} {{ content_meta._EventTimezone|timezone }}<br>
  69.             {% endif %}
  70.             
  71.             {% if content_meta._EventCost is defined and content_meta._EventCost is not empty %}
  72.                 <label>Cost:</label> {{ content_meta._EventCost }}<br>
  73.             {% endif %}
  74.             {% if content_meta._EventURL is defined and content_meta._EventURL is not empty %}
  75.                 <label>Website:</label> <a href="{{ content_meta._EventURL }}" >{{ content_meta._EventURL }}</a>
  76.             {% endif %}
  77.         </div>
  78.         
  79.         
  80.         {% if content_meta._OrganizerTitle is defined and content_meta._OrganizerTitle is not empty %}
  81.         <div class="event-details col-lg-4">
  82.             <h6>Organizer</h6>
  83.             <hr>
  84.             <label>{{content_meta._OrganizerTitle}}</label><br>
  85.             {% if content_meta._OrganizerPhone is defined and content_meta._OrganizerPhone is not empty %}<label>Phone:</label> {{ content_meta._OrganizerPhone }}<br>{% endif %}
  86.             {% if content_meta._OrganizerEmail is defined and content_meta._OrganizerEmail is not empty %}<label>Email:</label> {{ content_meta._OrganizerEmail }}<br>{% endif %}
  87.             {% if content_meta._OrganizerWebsite is defined and content_meta._OrganizerWebsite is not empty %}<label>Website:</label> <a href="{{ content_meta._OrganizerWebsite }}" >{{ content_meta._OrganizerWebsite }}</a>{% endif %}
  88.         </div>
  89.         {% endif %}
  90.         
  91.         {% if content_meta._VenueTitle is defined and content_meta._VenueTitle is not empty %}
  92.         <div class="event-details col-lg-4">
  93.             <h6>Venue</h6>
  94.             <hr>
  95.             <label>{{content_meta._VenueTitle}}</label><br>
  96.             {% if content_meta._VenueAddress is defined and content_meta._VenueAddress is not empty %}{{content_meta._VenueAddress}}<br>{% endif %}
  97.             {% if content_meta._VenueCity is defined and content_meta._VenueCity is not empty %}{{content_meta._VenueCity}}, {% endif %}
  98.             {% if content_meta._VenueState is defined and content_meta._VenueState is not empty %}{{content_meta._VenueState}} {% endif %}
  99.             {% if content_meta._VenueZip is defined and content_meta._VenueZip is not empty %}{{content_meta._VenueZip}} {% endif %}
  100.             {% if content_meta._VenueCountry is defined and content_meta._VenueCountry is not empty %}{{content_meta._VenueCountry}} {% endif %}
  101.             <br>
  102.             {% if content_meta._VenueAddress is defined and content_meta._VenueAddress is not empty 
  103.             and content_meta._VenueCity is defined and content_meta._VenueCity is not empty 
  104.             and content_meta._VenueState is defined and content_meta._VenueState is not empty 
  105.             and content_meta._VenueZip is defined and content_meta._VenueZip is not empty 
  106.             and content_meta._VenueCountry is defined and content_meta._VenueCountry is not empty 
  107.             %}
  108.             <a href="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=
  109.             {{ content_meta._VenueAddress ~ ' ' ~ content_meta._VenueCity ~ ' ' ~ content_meta._VenueState ~ ' ' ~ content_meta._VenueZip ~ ' ' ~ content_meta._VenueCountry | replace({' ': '+'}) }}"
  110.             title="Click to view a Google Map" target="_blank">+ Google Map</a><br>
  111.             {% endif %}
  112.             {% if content_meta._VenuePhone is defined and content_meta._VenuePhone is not empty %}<label>Phone:</label> {{ content_meta._VenuePhone }}<br>{% endif %}
  113.             {% if content_meta._VenueURL is defined and content_meta._VenueURL is not empty %}<label>Website:</label> <a href="{{ content_meta._VenueURL }}" >{{ content_meta._VenueURL }}</a>{% endif %}
  114.         </div>
  115.         {% endif %}
  116.         
  117.         {#
  118.         {% if organizers|length > 0 %}
  119.             <div class="event-details col-lg-4">
  120.             {% if organizers|length == 1 %}
  121.                 <h6>Organizer</h6>
  122.             {% else %}
  123.                 <h6>Organizers</h6>
  124.             {% endif %}
  125.                 {% for organizer in organizers %}
  126.                     <hr>
  127.                     <label>{{organizer.title}}</label><br>
  128.                     {% if organizer._OrganizerPhone is defined and organizer._OrganizerPhone is not empty %}<label>Phone:</label> {{ organizer._OrganizerPhone }}<br>{% endif %}
  129.                     {% if organizer._OrganizerEmail is defined and organizer._OrganizerEmail is not empty %}<label>Email:</label> {{ organizer._OrganizerEmail }}<br>{% endif %}
  130.                     {% if organizer._OrganizerWebsite is defined and organizer._OrganizerWebsite is not empty %}<label>Website:</label> <a href="{{ organizer._OrganizerWebsite }}" target="_blank">{{ organizer._OrganizerWebsite }}</a>{% endif %}
  131.                 {% endfor %}
  132.             </div>
  133.         {% endif %}
  134.         
  135.         {% if venue|length > 0 %}
  136.             <div class="event-details col-lg-4">
  137.                 <h6>Venue</h6>
  138.                 <hr>
  139.                 <label>{{venue.title}}</label><br>
  140.                 {{venue._VenueAddress}}<br>
  141.                 {{venue._VenueCity}}, {{venue._VenueState}} {{venue._VenueZip}} {{venue._VenueCountry}}<br>
  142.                 <a href="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=
  143.                 {{ venue._VenueAddress ~ ' ' ~ venue._VenueCity ~ ' ' ~ venue._VenueState ~ ' ' ~ venue._VenueZip ~ ' ' ~ venue._VenueCountry | replace({' ': '+'}) }}"
  144.                 title="Click to view a Google Map" target="_blank">+ Google Map</a><br>
  145.                 {% if venue._VenuePhone is defined and venue._VenuePhone is not empty %}<label>Phone:</label> {{ venue._VenuePhone }}<br>{% endif %}
  146.                 {% if venue._VenueURL is defined and venue._VenueURL is not empty %}<label>Website:</label> <a href="{{ venue._VenueURL }}" target="_blank">{{ venue._VenueURL }}</a>{% endif %}
  147.             </div>
  148.         {% endif %}
  149.         #}
  150.     </div>
  151.         {% include "includes/social-share.html.twig" %}
  152. {% endblock %}
  153. {% endembed %}
  154. {% endblock %}