<?php if (isset($moduleProductVisualized['exibeModule'])) { ?>
    <?php if($moduleProductVisualized['positionModulo']){ ?>
        <section class="products_slider">
          <?php if($heading_title) { ?>
            <?php echo $product_list_title ?>
          <?php } else { ?>
            <hr class="top-padding-x-large top-margin-large">
          <?php } ?>
          <?php if ($grid) { ?>
            <div class="grid">
              <div class="grid-on-slider">
                <?php echo $moduleProductVisualized['html'];  ?>
              </div>
            </div>
          <?php } else { ?>
          <div class="carousel-container slide-product_visualized js-load-slide" onload="productModules.push({element: this, name: 'slide-product_visualized'})">
            <div class="carousel-wrapper grid">
              <div class="carousel-list">
                <?php $boxQuantity = $moduleProductVisualized['productsCount'] < 24 ? $moduleProductVisualized['productsCount'] : 24 ?>
                <?php for ($i = 1; $i <= $boxQuantity; $i++) { ?>
                  <div class="item-column <?php echo $productbox_size == 4 ? 'item-column--large' : '' ?>" data-quantity="<?php echo $moduleProductVisualized['productsCount'] ?>">
                    <div class="itembox rel paper"></div>
                  </div>
                <?php } ?>
              </div>
            </div>
          </div>
        <?php } ?>
        </section>
    <?php }else { ?> <!-- Para os modulos nas laterais (column_left, column_right) -->
        <div>
        <div class="bottom-border-gray vertical-padding-medium">
          <h2 class="heading-3">
            <a href="<?php echo $link ?>" >
              <?php echo $heading_title; ?>
            </a>
          </h2>
        </div>

        <div class="vertical-padding-medium">
          <?php echo $moduleProductVisualized['html']; //productaside.twig ?>
        </div>
      </div>
    <?php } ?>
<?php } ?>
