|
@@ -24,20 +24,13 @@
|
|
<div class="container-fluid" id="main-wrapper">
|
|
<div class="container-fluid" id="main-wrapper">
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-9 col-md-10 col-sm-offset-3 col-md-offset-2">
|
|
<div class="col-xs-12 col-sm-9 col-md-10 col-sm-offset-3 col-md-offset-2">
|
|
- {% for i in 1..(app['combodo.portal.instance.conf'].bricks_total_width / 12)|round(0, 'ceil') %}
|
|
|
|
- <section class="row row-eq-height-sm tiles_wrapper" {% if loop.first %}id="top_tiles_row"{% endif %}>
|
|
|
|
- {% set iCurrentRowWidth = 0 %}
|
|
|
|
- {% for brick in app['combodo.portal.instance.conf'].bricks|slice(iCurrentTileIndex, app['combodo.portal.instance.conf'].bricks|length) if iCurrentRowWidth < 12 %}
|
|
|
|
|
|
+ <section class="row tiles_wrapper">
|
|
|
|
+ {% for brick in app['combodo.portal.instance.conf'].bricks %}
|
|
{% if brick.GetVisibleHome %}
|
|
{% if brick.GetVisibleHome %}
|
|
- {% set iCurrentRowWidth = iCurrentRowWidth + brick.GetWidth %}
|
|
|
|
- {% set iCurrentTileIndex = iCurrentTileIndex + 1 %}
|
|
|
|
- {% if iCurrentRowWidth <= 12 %}
|
|
|
|
- {% include '' ~ brick.GetTileTemplatePath with {brick: brick} %}
|
|
|
|
- {% endif %}
|
|
|
|
|
|
+ {% include '' ~ brick.GetTileTemplatePath with {brick: brick} %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</section>
|
|
</section>
|
|
- {% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|