templates/areas/inhalt/view.html.twig line 1

Open in your IDE?
  1. {% block content %}
    
        {# random #}
        {% set random = random() %}
    
        {% if editmode %}
            <div class="editmode grid-x">
                <div class="cell toggler-title">
                    <div data-toggle="settings-{{ random }}">Inhalt</div>
                </div>
                <div class="cell toggler-content" id="settings-{{ random }}" data-toggler=".is-active">
                    <div class="toggler-content-panel">
                        <div class="grid-x grid-padding-x">
                        </div>
                    </div>
                </div>
            </div>
        {% endif %}
    
        <section class="section-content">
            <div class="grid-container">
                <div class="grid-x grid-margin-x">
    
                    {# content #}
                    <div class="cell small-12 xmedium-8">
    
                        {% for i in pimcore_block('contentblock').iterator %}
    
                            <div class="lead lead-margin-bottom {# <?php if ($isNewsList) { ?>isNewsList<?php } ?> <?php if (!$this->isProdukt && !$this->isLoesungen && !$this->isMessen) { ?>lead-margin-bottom<?php } ?> #}">
                                
                                <h2>
                                    {{ pimcore_input('title', {
                                        'placeholder': 'Titel'
                                    }) }}
                                </h2>
    
                                {{ pimcore_wysiwyg('text', {
                                    'placeholder': 'Text'
                                }) }}
    
                                {{ pimcore_image('image', {
                                    'thumbnail': 'mainPanel'
                                }) }}
    
                            </div>
    
                        {% endfor %}
    
                    </div>
    
                    {# adress box #}
                    <div class="cell small-12 xmedium-4 show-for-xmedium">
                        {% if editmode or pimcore_input('addressTitle').data %}
                            <div class="contact-block" {# <?php if ($this->editmode) { ?> style="width: 350px; " <?php }  ?><?php if ($this->isProduktdetail) { ?> style="min-height: 100%;" <?php } ?> #}>
                                
                                <p class="contact-block-h5">
                                    {{ pimcore_input('addressTitle', {
                                        'placeholder': 'Titel'
                                    }) }}
                                </p>
    
                                {{ pimcore_wysiwyg('addressText', {
                                    'placeholder': 'Text'
                                }) }}
    
                                {% if editmode %}
                                    {{ pimcore_link('adressLink') }}
                                {% else %}
                                    <a href="{{ pimcore_link('adressLink').href }}" class="btn ">
                                        {{ pimcore_link('adressLink').text }}
                                    </a>
                                {% endif %}
    
                            </div>
                        {% endif %}
                    </div>
    
                </div>
            </div>
        </section>
    
    {% endblock %}