{% extends 'base.html.twig' %}{% block body %}<style>/* HIDE RADIO */[type=radio] { position: absolute; opacity: 0; width: 0; height: 0;}/* IMAGE STYLES */[type=radio] + img { cursor: pointer;}/* CHECKED STYLES */[type=radio]:checked + img { outline: 2px solid #198754;}html { scroll-behavior: smooth;}</style> {% embed "nav.html.twig" %}{% endembed %} <div class="content" style="text-align:center; padding-top: 3em;" > <label for="placeSelecter" style="{{color}}; display:none" >Ort</label> <select id="placeSelecter" style="display:none" onchange="loadContent('{{url}}')"> {% if placeid is defined %} <option value="">Bitte wählen</option> {% else %} <option value="" selected>Bitte wählen</option> {% endif %} {% for k,v in places %} {% set replaces = { ' - ' : '', (k) : '' } %} {% if placeid is defined %} <option value="{{ k }}"{% if placeid == k %} selected="selected" {% endif %} > {{ v|replace(replaces)|trim }} </option> {% else %} <option value="{{ k }}" > {{ v|replace(replaces)|trim }} </option> {% endif %} {% endfor %} </select> <style>.labl { /*display : block;*/ width: 100%;}.labl > input{ /* HIDE RADIO */ visibility: hidden; /* Makes input not-clickable */ position: absolute; /* Remove input from document flow */}.labl > input + div{ /* DIV STYLES */ cursor:pointer; border:2px solid transparent;}</style><div class="service"> <div class="container"> <div class="section-header text-center wow zoomIn" data-wow-delay="0.1s"> <!--<p>What we do</p>--> <h2>Kategorien</h2> </div> <div class="row">{% set i = 0 %} {% if placeid is defined %} {% for row in categories %} {% if allowedCat[row.id] == '1' %} <div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.0s"> <label id="category{{i}}label" class="labl"> <input type="radio" name="category" id="category{{i}}" class="categoryImg" value="{{row.id}}" onchange="loadContent('{{url}}',0)"> <div class="service-item"> <div class="service-icon"> <!--<i class="flaticon-workout"></i>--> {% if catimg[row.id] is defined %} <img src="{{ url }}{{ catimg[row.Id] }}" width="50" height="50" style="z-index:9999" /> {% endif %} </div> <h3>{{ row.ccname }}</h3> <p> </p> </div> </label> </div> <!-- <div class="col-sm" align="left" > <div style="max-width: 200px; background-color: {{ mainboxColor }}" > {% if catimg[row.id] is defined %} <label id="category{{i}}label" style="display:contents"> <input type="radio" name="category" id="category{{i}}" class="categoryImg" value="{{row.id}}" onchange="loadContent('{{url}}')"> <img class="imgWithHighlightBorder" width="200px" height="200px" style="cursor:pointer" src="{{ url }}{{ catimg[row.Id] }}"> </label> {% else %} IMAGE NOT FOUND {% endif %} <span style="{{color}};" >{{ row.ccname }} </span> <br /> </div> </div>--> {% set i = i + 1 %} {% endif %} {% endfor %} {% endif %} <hr style="margin-top: 1em"></hr> <label style="{{color}}"><h3 style="{{color}};" >{% if company == 'KVO' %}Anwendungen und Behandlungen{% else %}Kurse{% endif %}</h3></label> </div> </div> </div> <div id="content" class="container" ></div> </div> </section> </div> </section> <script> $(function () { loadContent('{{ url }}'); }); </script> {% block javascripts %} {{ parent() }} <script src="{{ asset('js/homepage.js') }}"></script> {% endblock %}{% endblock %}