templates/Frontend/county.html.twig line 1
{% set manual = activecounty.getManual %}{% if is_granted('IS_AUTHENTICATED_FULLY') %}{% if app.request.query.get("preview") == 'true' %}{% set manual = true %}{% endif %}{% endif %}{% extends "Frontend/base.html.twig" %}{% block metatitle %}{% if manual %}{{ activecounty.getManualMetatitle |replace({'%county%': activecounty.getName}) |striptags |raw}}{% else %}{{ activecounty.getMetatitle.getTitle |replace({'%county%': activecounty.getName}) |striptags |raw}}{% endif %}{% endblock %}{% block metadescription %}{% if manual %}{{ activecounty.getManualMetadescription |replace({'%county%': activecounty.getName}) |striptags |raw}}{% else %}{{ activecounty.getMetadescription.getDescription |replace({'%county%': activecounty.getName}) |striptags |raw}}{% endif %}{% endblock %}{% block maincontent %}<ul class="breadcrumbs"><li><a href="/" title="home">Hem</a></li><li><a href="{{ path('spinner_front_county', {'countypermalink': activecounty.getPermalinkP|mb_capitalize}) }}" title="{{activecounty.getName}}">{{activecounty.getName}}</a></li></ul>{% if manual %}<h1>{{ activecounty.getManualH1 |replace({'%county%': activecounty.getName}) | raw }}</h1>{% else %}<h1>{{ activecounty.getH1.getH1 |replace({'%county%': activecounty.getName}) | raw }}</h1>{% endif %}<p>{% if manual %}{{ activecounty.getManualContentone | replace({'%county%': activecounty.getName}) | raw }}{% else %}{{ activecounty.getContentone.getContent | replace({'%county%': activecounty.getName}) | raw }}{% endif %}</p>{% include 'Frontend/form.html.twig' %}<p>{% if manual %}{% set content = activecounty.getManualContenttwo | replace({'%county%': activecounty.getName}) | raw %}{% if '[thumbnail]' in content %}{% set scontent = content|split('[thumbnail]') %}{{scontent.0 |raw }}{% if activecounty.getThumbnail.getName is defined %}<img src="{{ path('spinner_front_county_thumbnail', {'countypermalink': activecounty.getPermalinkP|mb_capitalize, 'imagename': activecounty.getManualThumbnailname | replace({'%county%': activecounty.getName}) }) }}{% if is_granted('IS_AUTHENTICATED_FULLY') %}{% if app.request.query.get("preview") == 'true' %}?preview=true{% endif %}{% endif %}" alt="{{ activecounty.getThumbnail.getAlt.getAlt | replace({'%county%': activecounty.getName}) }}" class="cityimg alignright" />{% endif %}{{scontent.1 |raw}}{% else %}{{ content |raw}}{% endif %}{% else %}{% set content = activecounty.getContenttwo.getContent | replace({'%county%': activecounty.getName}) | raw %}{% if '[thumbnail]' in content %}{% set scontent = content|split('[thumbnail]') %}{{scontent.0 |raw }}{% if activecounty.getThumbnail.getName is defined %}<img src="{{ path('spinner_front_county_thumbnail', {'countypermalink': activecounty.getPermalinkP|mb_capitalize, 'imagename': activecounty.getThumbnail.getName.getName | replace({'%county%': activecounty.getName}) }) }}" alt="{{ activecounty.getThumbnail.getAlt.getAlt | replace({'%county%': activecounty.getName}) }}" class="cityimg alignright" />{% endif %}{{scontent.1 |raw}}{% else %}{{ content |raw}}{% endif %}{% endif %}</p><div id="map"><iframe width="100%" frameborder="0" style="border:0; min-height: 300px" src="https://www.google.com/maps/embed/v1/place?q={{activecounty.getMapsString}}&key=AIzaSyCREQXquXKUF3-eDE9z6xOjBAd4BTODz3k"></iframe></div><!--<h4>Unordered List example - h4</h4>--><div class="row"><!-- col-md-offset-2 --><div class="col-md-8"><div class="panel panel-flyt"><div class="panel-heading"><h3 class="panel-title">Flyttstädning nära {{ activecounty.getName }}</h3></div><div class="panel-body"><ul>{% for closest in mostpopulated %}<li><a href="{{ path('spinner_front_city', {'countypermalink': closest.getCounty.getPermalinkP|mb_capitalize, 'citypermalink': closest.getPermalinkP|mb_capitalize}) }}">Flyttstädning {{ closest.getName |mb_capitalize}}</a></li>{% endfor %}</ul><a href="{{ path('spinner_front_county_all', {'countypermalink': activecounty.getPermalinkP|mb_capitalize}) }}">Se alla orter i {{ activecounty.getName }}s Län</a></div></div></div></div>{% endblock %}