<?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">
            <?php /*<div class="fb-page" data-href="<?php echo get_option( 'u99_rs_facebook', true ); ?>" data-tabs="timeline" data-width="500" data-height="550" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"></div>*/?>
            <div class="carousel-item-inner"></div>
            <div class="marca-sitio" style="background-image: url('<?php echo get_option( 'u99_rs_logo' , true ); ?>');"></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">
            <?php /*<a class="twitter-timeline" data-height="550" data-theme="light" href="<?php echo get_option( 'u99_rs_twitter', true ); ?>?ref_src=twsrc%5Etfw"></a>*/?>
            <div class="carousel-item-inner"></div>
            <div class="marca-sitio" style="background-image: url('<?php echo get_option( 'u99_rs_logo' , true ); ?>');"></div>
            <div class="carousel-caption d-md-block">
                <h5>Twitter</h5>
            </div>
        </div>
        <?php
        $countTimelineItems++;
    }
?>
