{if !empty($sociaux)}
{assign var="nbColRs" value=(12/count($sociaux))/2}
{assign var="nbColRsX2" value=((12/count($sociaux))*2)/2}

{if count($sociaux) == 5}
    {assign var="nbColRs" value=2}
    {assign var="nbColRsX2" value=4}
{/if}

{foreach from=$sociaux item=sociau}
    {if $sociau->isVisible}
        <div class="col-xs-2 col-sm-{$nbColRsX2} col-md-{$nbColRs} rs-items">
            <div class="rs-item">
                <a href="{$sociau->url}">
                    <img src="{$sociau->image}" alt="{$sociau->url}">
                </a>
            </div>
        </div>
    {/if}
{/foreach}
{/if}
