templates/Front/Venue/venue.html.twig line 1

Open in your IDE?
  1. {% extends "Global/layout.html.twig" %}
  2. {% set pagetitle = venue.name %}
  3. {% block title %}{{pagetitle}}{% endblock %}
  4. {% block content %}
  5.     {% set navigation = [{"venues" : ("Venues"|trans), "current" : (pagetitle)}] %}
  6.     {% include "Global/navigation.html.twig" with navigation %}
  7.     {% if venue.images|length > 0 %}
  8.         <div class="row no-gutters">
  9.             <div class="col-12 p-0">
  10.                 <section class="section-main">
  11.                     <div class="owl-init slider-main owl-carousel" data-items="1" data-dots="false" data-nav="true" data-autoplay="false">
  12.                         {% for image in venue.images %}
  13.                             <div class="item-slide d-flex">
  14.                                 <img class="slider-img justify-content-center align-self-center" src="{{ asset(image.getImagePath) }}" alt="{{ venue.name }}" />
  15.                                 <div class="slider-blured-background" style="background-image: url('{{ asset(image.getImagePath) }}');"></div>
  16.                             </div>
  17.                         {% endfor %}
  18.                     </div>
  19.                 </section>
  20.             </div>
  21.         </div>
  22.     {% endif %}
  23.     <section class="section-content padding-y bg-white">
  24.         <div class="{{ services.getSetting("app_layout") }}">
  25.             <div class="row">
  26.                 <aside class="col-sm-12">
  27.                     <div class="card">
  28.                         <div class="card-body">
  29.                             <div class="row mb-5">
  30.                                 <div class="col-12 col-lg-6">
  31.                                     <h1 class="text-center text-lg-left">{{ venue.name }}</h1>
  32.                                 </div>
  33.                                 <div class="col-12 col-lg-6">
  34.                                     <div class="text-muted text-center text-lg-right">{{ venue.type.name }}</div>
  35.                                 </div>
  36.                             </div>
  37.                             <div class="row">
  38.                                 <div class="col-12 {% if venue.quoteform and venue.contactemail %}col-lg-8{% endif %}">
  39.                                     {% if venue.seatedguests or venue.standingguests %}
  40.                                         <dl class="dlist-align dlist-border clearfix mb-0">
  41.                                             <dt>{{ "Guests"|trans }}</dt>
  42.                                             <dd>
  43.                                                 {% if venue.seatedguests %}
  44.                                                     {{"Seated"|trans ~ ": " ~ venue.seatedguests}}
  45.                                                 {% endif %}
  46.                                                 {% if venue.standingguests %}
  47.                                                     -
  48.                                                     {{"Standing"|trans ~ ": " ~ venue.standingguests}}
  49.                                                 {% endif %}
  50.                                             </dd>
  51.                                         </dl>
  52.                                     {% endif %}
  53.                                     <dl class="dlist-align dlist-border clearfix mb-0">
  54.                                         <dt>{{ "Location"|trans }}</dt>
  55.                                         <dd>
  56.                                             {% if venue.showmap %}
  57.                                                 <iframe height="500" class="w-100 border-0 venue-map" src="{{ services.getCurrentRequestProtocol() }}://maps.google.com/maps?q={{ venue.name|url_encode ~ '%20' ~ venue.stringifyAddress|url_encode }}&t=&z=13&ie=UTF8&iwloc=&output=embed"></iframe>
  58.                                                 {% endif %}
  59.                                             <dl class="mt-3">
  60.                                                 <dt>{{ "Address"|trans }}</dt>
  61.                                                 <dd>{{ venue.stringifyAddress }}</dd>
  62.                                             </dl>
  63.                                             {% if venue.neighborhoods %}
  64.                                                 <dl class="mt-3">
  65.                                                     <dt>{{ "Neighborhoods"|trans }}</dt>
  66.                                                     <dd>{{ venue.neighborhoods|raw|nl2br }}</dd>
  67.                                                 </dl>
  68.                                             {% endif %}
  69.                                         </dd>
  70.                                     </dl>
  71.                                     {% if venue.description %}
  72.                                         <dl class="dlist-align dlist-border clearfix mb-0">
  73.                                             <dt>{{ "The space"|trans }}</dt>
  74.                                             <dd>
  75.                                                 {{ venue.description|raw|nl2br }}
  76.                                             </dd>
  77.                                         </dl>
  78.                                     {% endif %}
  79.                                     {% if venue.pricing %}
  80.                                         <dl class="dlist-align dlist-border clearfix mb-0">
  81.                                             <dt>{{ "Pricing"|trans }}</dt>
  82.                                             <dd>
  83.                                                 {{ venue.pricing|raw|nl2br }}
  84.                                             </dd>
  85.                                         </dl>
  86.                                     {% endif %}
  87.                                     {% if venue.availibility %}
  88.                                         <dl class="dlist-align dlist-border clearfix mb-0">
  89.                                             <dt>{{ "Availability"|trans }}</dt>
  90.                                             <dd>
  91.                                                 {{ venue.availibility|raw|nl2br }}
  92.                                             </dd>
  93.                                         </dl>
  94.                                     {% endif %}
  95.                                     {% if venue.foodbeverage %}
  96.                                         <dl class="dlist-align dlist-border clearfix mb-0">
  97.                                             <dt>{{ "Food and beverage"|trans }}</dt>
  98.                                             <dd>
  99.                                                 {{ venue.foodbeverage|raw|nl2br }}
  100.                                             </dd>
  101.                                         </dl>
  102.                                     {% endif %}
  103.                                     {% if venue.amenities|length > 0 %}
  104.                                         <dl class="dlist-align dlist-border clearfix mb-0">
  105.                                             <dt>{{ "Amenities"|trans }}</dt>
  106.                                             <dd class="pb-0">
  107.                                                 <ul class="fa-ul list-lg list-inline ml-0">
  108.                                                     {% for amenity in venue.amenities %}
  109.                                                         <li class="list-inline-item text-muted mr-3 mb-3"><i class="icon {{ amenity.icon }} fa-fw"></i> <span>{{ amenity.name }}</span></li>
  110.                                                         {% endfor %}
  111.                                                 </ul>
  112.                                             </dd>
  113.                                         </dl>
  114.                                     {% endif %}
  115.                                 </div>
  116.                                 {% if venue.quoteform and venue.contactemail %}
  117.                                     <div class="col-12 col-lg-4 mt-5 mt-lg-0">
  118.                                         <div class="card">
  119.                                             <article class="card-body">
  120.                                                 <h4 class="card-title mb-4 mt-1 text-center"><i class="fas fa-calendar-check"></i> {{ "Request a quote"|trans }}</h4>
  121.                                                 {{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }}
  122.                                                 {{ form_widget(form) }}
  123.                                                 {{ form_end(form) }}
  124.                                             </article>
  125.                                         </div>
  126.                                     </div>
  127.                                 {% endif %}
  128.                             </div>
  129.                         </div>
  130.                     </div>
  131.                 </aside>
  132.             </div>
  133.             {% set venue_comments_enabled = services.getSetting("venue_comments_enabled") %}
  134.             {% if venue_comments_enabled != "no" %}
  135.                 <div class="mt-5">
  136.                     {% if venue_comments_enabled == "native" %}
  137.                         {% include '@FOSComment/Thread/async.html.twig' with {'id':venue.slug} %}
  138.                     {% elseif venue_comments_enabled == "facebook" and services.getSetting("facebook_app_id") %}
  139.                         <div id="fb-root"></div>
  140.                         <script async defer crossorigin="anonymous" src="https://connect.facebook.net/{{ app.request.locale|lower~'_'~app.request.locale|upper }}/sdk.js#xfbml=1&version=v4.0&appId={{ services.getSetting("facebook_app_id") }}&autoLogAppEvents=1" integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"></script>
  141.                         <div class="fb-comments" data-href="{{ app.request.uri }}" data-width="100%" data-numposts="5"></div>
  142.                     {% elseif venue_comments_enabled == "disqus" and services.getSetting("disqus_subdomain") %}
  143.                         <div id="disqus_thread"></div>
  144.                         <script>
  145.                             /**
  146.                              *  RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
  147.                              *  LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
  148.                             var disqus_config = function () {
  149.                                 this.page.url = "{{ app.request.uri }}";  // Replace PAGE_URL with your page's canonical URL variable
  150.                                 this.page.identifier = "{{ venue.slug }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
  151.                                 this.language = "{{ app.request.locale|lower }}";
  152.                             };
  153.                             (function () { // DON'T EDIT BELOW THIS LINE
  154.                                 var d = document, s = d.createElement('script');
  155.                                 s.src = 'https://{{ services.getSetting("disqus_subdomain") }}.disqus.com/embed.js';
  156.                                 s.setAttribute('data-timestamp', +new Date());
  157.                                 (d.head || d.body).appendChild(s);
  158.                             })();
  159.                         </script>
  160.                         <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  161.                     {% endif %}
  162.                 </div>
  163.             {% endif %}
  164.         </div>
  165.     </section>
  166. {% endblock %}