templates/areas/blog-and-news/view.html.twig line 1

Open in your IDE?
  1. <!-- Blog Start -->
            <div class="section blog-section section-padding-25">
                <div class="container">
                    <!-- Blog Wrap Start -->
                    <div class="blog-wrap">
                        <div class="section-title text-center">
                            <h3 class="sub-title">{{ pimcore_input('standardTeaserHeading', {placeholder:"Standard Teaser Heading"}) }}</h3>
                            <h2 class="title">{{ pimcore_input('standardTeaserSubHeading', {placeholder:"Standard Teaser Sub Heading"}) }}</h2>
                        </div>
                        <!-- Blog Content Wrap Start -->
                        <div class="blog-content-wrap">
                            <div class="row">
                            {% for t in 0..2 %}
                                {%
                                    set select = pimcore_select('type_' ~ t, {
                                        width: 110,
                                        reload: true,
                                        store: [
                                            ['direct','direct'],
                                            ['snippet','snippet'],
                                            ['news','news'],
                                            ['blog','blog']
                                        ],
                                        class: 'align-middle'
                                    })
                                %}
    
                                {% if editmode %}
                                    <div class="col-md-4">
                                        <div class="mb-3">
                                            <span class="editmode-label align-middle">Type:</span>
                                            {{ select|raw }}
                                        </div>
                                {% endif %}
    
                                {% set type = select.getData() %}
                                {% if type == "direct" %}
                                    {{
                                        include('snippets/standard-teaser.html.twig', {
                                            suffix: (t+1)
                                        })
                                    }}
                                {% elseif type == "news" %}
                                    {{
                                        pimcore_renderlet('newsteaser_' ~ t, {
                                            type: 'object',
                                            editmode: editmode,
                                            controller: 'App\\Controller\\NewsController::newsTeaserAction',
                                            title: 'Drag a news object here',
                                            height : 'auto',
                                            width: '100%'
                                        })
                                    }}
                                {% elseif type == "blog" %}
                                    {{
                                        pimcore_renderlet('blogteaser_' ~ t, {
                                            type: 'object',
                                            editmode: editmode,
                                            controller: 'App\\Controller\\BlogController::blogTeaserAction',
                                            title: 'Drag a blog object here',
                                            height : 'auto',
                                            width: '100%'
                                        })
                                    }}
    
                                {% else %}
                                    {{ pimcore_snippet('teaser_' ~ t) }}
                                {% endif %}
    
                                {% if editmode %}
                                    </div>
                                {% endif %}
    
    
                            {% endfor %}
                                
    
                            </div>
                        </div>
                        <!-- Blog Content Wrap End -->
                    </div>
                    <!-- Blog Wrap End -->
                </div>
            </div>
            <!-- Blog End -->