{% if editmode %}
<div class="bg-gray-100 p-5 wysiwyg-heading">
{% include 'areaHeadAndFooter.html.twig' with { 'header': 'STWH: Guided-Reputation-Iframe' } %}
{% include 'padding.html.twig' %}
<div class="my-3 flex flex-wrap overflow-hidden">
<div class="w-1/2 overflow-hidden">
{% include 'color-selector.html.twig' with { 'name': 'color', 'description': 'Hintergrundfarbe' } %}
</div>
</div>
<hr />
<div class="my-3 flex flex-wrap overflow-hidden">
<div class="w-1/4 overflow-hidden">
Content-Überschrift: (optional)
</div>
<div class="w-3/4 overflow-hidden">
{{ pimcore_textarea("headline", { "height" : 60 }) }}
</div>
</div>
<div class="my-3 flex flex-wrap overflow-hidden">
<div class="w-1/4 overflow-hidden">
SEO:
</div>
<div class="w-1/4 overflow-hidden">
{% include 'seo.html.twig' with { 'name': 'seo', 'default' : 'h2' } %}
</div>
<div class="w-1/2 overflow-hidden">
{% include 'color-selector.html.twig' with { 'name': 'seoHeadlineColor', 'description': 'Farbe der Überschrift', 'type': 'accordeon' } %}
</div>
</div>
<div class="my-3 flex flex-wrap overflow-hidden">
<div class="w-1/4 overflow-hidden">
Guided-Reputation-Url:
</div>
<div class="w-3/4 overflow-hidden">
{{ pimcore_input("original-url", { "height" : 60, "required": true }) }}
</div>
</div>
<hr />
{% include 'areaHeadAndFooter.html.twig' with { 'footer': true } %}
{% else %}
<section class="guided-reputation-iframe {{ pimcore_select('paddingTop') }} {{ pimcore_select('paddingBottom') }} relative bg-{{ pimcore_select('color') }}">
<div class="container mx-auto px-5">
<div class="flex flex-wrap">
{% set bordy = '' %}
{% set borderColor = pimcore_select('headline-divider-color').getData() %}
{% if pimcore_checkbox('hasDivider').isChecked() %}
{% set bordy = 'border-b-2 pb-2 border-' ~ borderColor %}
{% endif %}
{% if pimcore_textarea("headline") != '' %}
{% set seo = pimcore_select("seo").getData() %}
<{{ seo }} class="text-{{ pimcore_select("seoHeadlineColor").getData() }} block mb-5 md:mb-10 text-2xl md:text-4xl lg:text-5xl font-bold {{ bordy }}">
{{ pimcore_textarea("headline")|nl2br }}
</{{ seo }}>
{% endif %}
</div>
</div>
<iframe src="{{ pimcore_input('original-url') }}{{rating is defined ? '?rating=' ~ rating : '' }}" frameborder="0" height="1800" scrolling="no" width="100%"></iframe>
</section>
{% endif %}