<?php
    if($facebookLink){
        $idCarousel = 'carouselTimelineItem_'.$countTimelineItems;
        $listaContenido[$idCarousel] = array(
            'sitio_id' => get_current_blog_id(),
            'post_id' => '-1',
            'tipo' => 'noticias',
            'fuente' =>'facebook'
        );
        ?>
        <div id="<?php echo $idCarousel; ?>" class="carousel-item <?php if ($countTimelineItems===0){echo "active";} ?> tarjeta-timeline">
            <div class="carousel-item-inner"></div>
            <div class="carousel-caption d-md-block">
                <h5>Facebook</h5>
            </div>
        </div>
        <?php
        $countTimelineItems++;
    }
?>
<?php
    if($twitterLink){
        $idCarousel = 'carouselTimelineItem_'.$countTimelineItems;
        $listaContenido[$idCarousel] = array(
            'sitio_id' => get_current_blog_id(),
            'post_id' => '-1',
            'tipo' => 'noticias',
            'fuente' =>'twitter'
        );
        ?>
        <div id="<?php echo $idCarousel; ?>" class="carousel-item <?php if ($countTimelineItems===0){echo "active";} ?> tarjeta-timeline">
            <div class="carousel-item-inner"></div>
            <div class="carousel-caption d-md-block">
                <h5>Twitter</h5>
            </div>
        </div>
        <?php
        $countTimelineItems++;
    }
?>
