{% if newsList %}
    <div class="col-md-8">
        <div id="actu2Slider" class="flexslider">
            <ul class="slides">
                {% for news in newsList %}
                    <li>
                        <a href="{{ path( 'ez_urlalias', {'locationId': news.contentInfo.mainLocationId} ) }}" title="{{ ez_content_name(news)|raw  }}">
                            <div class="bloc-actu2">
                                <figure>{{ ez_render_field( news, "image", { 'template': 'AyalineEzActualitesCollectivitesBundle:fields:news_ezobjectrelation.html.twig', 'parameters': { 'alias': 'news_home_large' }} ) }}</figure>
                                <div class="accroche">
                                    {% if rootContent.fields.actualite_gauche_intitule_accueil is defined and not ez_is_field_empty(rootContent,"actualite_gauche_intitule_accueil") %}
                                        <h2>{{ ez_render_field(rootContent, 'actualite_gauche_intitule_accueil') }}</h2>
                                    {% endif %}
                                    <h3>{{ ez_content_name(news)|raw }}</h3>
                                </div>
                                <span class="icon-plus"></span>
                            </div>
                        </a>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>
{% endif %}
{% if newsList_droite %}
    <div class="col-md-4">
        {% if rootContent.fields.actualite_droite_intitule_accueil is defined and not ez_is_field_empty( rootContent, "actualite_droite_intitule_accueil" ) %}
            <div class="content-rotate-bloc">
                <div class="rotate-bloc">
                    <h2>{{ ez_render_field(rootContent, 'actualite_droite_intitule_accueil') }}</h2>
                </div>
                <div class="all-actus-wrap">
                    <a href="{{ path( 'ez_urlalias', {'locationId': racine_actualite} ) }}" class="all-actus" title="Actualités"> Toutes les actualités</a>
                </div>

            </div>
        {% endif %}
        <div class="actu-wrapper scrollbar-macosx">
            <div class="bloc-right-actu">
                <div class="actu-list">
                    <ul>
                        {% for news in newsList_droite %}
                            <li>
                                <a href="{{ path( 'ez_urlalias', {'locationId': news.contentInfo.mainLocationId} ) }}"
                                   title="Actu 1">
                                    <h3>{{ ez_content_name(news)|raw }}</h3>
                                    <p>
                                        {% if news.getFieldValue( 'summary' ).text %}
                                            {{ ez_render_field( news, "summary", { 'template': 'AyalineEzActualitesCollectivitesBundle:fields:news_eztext.html.twig', 'parameters':{ 'truncate': charLimit } } ) }}
                                        {% else %}
                                            {{ ez_render_field( news, "description", { 'template': 'AyalineEzActualitesCollectivitesBundle:fields:news_ezxmltext.html.twig', 'parameters':{ 'truncate': charLimit } } ) }}
                                        {% endif %}
                                        <span class="icon-plus"></span>
                                    </p>
                                </a>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        </div>
    </div>
{% endif %}