templates/areas/our-products/view.html.twig line 1

Open in your IDE?
  1.  <!-- Team Start -->
            <div class="section team-section section-padding-25">
                <div class="container">
                    <!-- Team Wrap Start -->
                    <div class="team-wrap">
                        <div class="section-title text-center">
                            <h3 class="sub-title">{{ pimcore_input('heading', {placeholder:"Our Products Heading"}) }}</h3>
                            <h2 class="title">{{ pimcore_input('sub_heading', {placeholder:"Our Products Sub Heading"}) }}</h2>
                        </div>
                        <!-- Team Content Wrap Start -->
                        <div class="team-content-wrap">
                            <div class="swiper-container team-active">
                                <div class="swiper-wrapper">
                                    {% for t in 0..2 %}
                                        {%
                                            set select = pimcore_select('type_' ~ t, {
                                                width: 110,
                                                reload: true,
                                                store: [
                                                    ['direct','direct'],
                                                    ['snippet','snippet'],
                                                    ['product','product'],
                                                   
                                                ],
                                                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/products_teaser.html.twig', {
                                                    suffix: (t+1)
                                                })
                                            }}
                                        {% elseif type == "news" %}
                                            {{
                                                pimcore_renderlet('productsteaser_' ~ t, {
                                                    type: 'object',
                                                    editmode: editmode,
                                                    controller: 'App\\Controller\\ProductController::newsTeaserAction',
                                                    title: 'Drag a Product object here',
                                                    height : 'auto',
                                                    width: '100%'
                                                })
                                            }}
                                        
                                        {% else %}
                                            {{ pimcore_snippet('teaser_' ~ t) }}
                                        {% endif %}
    
                                        {% if editmode %}
                                            </div>
                                        {% endif %}
    
    
                                    {% endfor %}
                                    
                                </div>
    
                                <!-- Add Pagination -->
                                <div class="swiper-pagination"></div>
                            </div>
                        </div>
                        <!-- Team Content Wrap End -->
                    </div>
                    <!-- Team Wrap End -->
                </div>
            </div>
            <!-- Team End -->