","",$og_description);
$og_description = str_replace(" "," ",$og_description);
$og_description = str_replace("\n","",$og_description);
$og_description = str_replace('"',"'",$og_description);
$og_description = str_replace("“","'",$og_description);
$og_description = str_replace("”","'",$og_description);
$og_description = str_replace("…","...",$og_description);
$og_description = strip_tags($og_description);
$og_description = htmlentities($og_description);
////////// OG VIDEO //////////
$og_video = '';
if (isset($elnodo['contenido'])) $og_video = $elnodo['contenido'];
$og_hayvideo = '';
if (strpos($og_video,'iframe') !== FALSE && strpos($og_video,'www.youtube.com') !== FALSE) {
// Limpiar todo, menos el id del primer vídeo (iframe) si tiene
$cod = new Codigo ();
$eliframe = $cod->sacar_video($og_video); // limpia el texto y resto de VÍDEOS, se queda con el primer VÍDEO (iframe)
unset($cod);
$og_video = $eliframe;
$og_video = str_replace('"',"'",$og_video);
// Si el VÍDEO exite y es de YOUTUBE sacamos el ID
if (isset($og_video) && $og_video != '' && strpos($og_video,'iframe') !== FALSE && strpos($og_video,'www.youtube.com') !== FALSE) {
// Sacamos el ID del vídeo YOUTUBE
$id = new Codigo ();
$elid = $id->sacarid_video($og_video); // limpia el texto y resto de VÍDEOS, se queda con el primer VÍDEO (iframe)
unset($id);
if (isset($elid) && $elid != '') {
$og_hayvideo = "https://www.youtube.com/v/".$elid; // Cuando compartíamos en Twitter con el VÍDEO en miniatura
$og_video = ''; // Por ahora sólo compartimos en Twitter con IMAGEN (omitimos VÍDEOS)
$og_image = "http://img.youtube.com/vi/".$elid."/0.jpg"; // Para sacar la miniatura de la IMAGEN del VÍDEO
$og_image = str_replace("?rel=0","",$og_image);
}
}
} else {
$og_video = '';
}
if ($og_hayvideo != '' && $og_description == '') {
$og_description = "Vídeo";
}
// Si hay FOTOS cogemos la de la FOTO antes que la del VÍDEO (si tiene)
if (isset($cuantas_fotos) && $cuantas_fotos > 0) {
$og_image = $URLbase_redes."imagenes/".$lista_fotos[0]['url'];
}
//DATOS REDES
$izenburuaarg = $elnodo['titulo'];
$aurreizenburuaarg = $titu_paginab;
$aurreizenburuaarg = str_replace("\"","",$aurreizenburuaarg);$izenburuaarg = str_replace("\"","",$izenburuaarg);
$aurreizenburuaarg = str_replace('"',"",$aurreizenburuaarg);$izenburuaarg = str_replace('"',"",$izenburuaarg);
$aurreizenburuaarg = str_replace('"',"",$aurreizenburuaarg);$izenburuaarg = str_replace('"',"",$izenburuaarg);
$aurreizenburuaarg = str_replace("\.","",$aurreizenburuaarg);$izenburuaarg = str_replace("\.","",$izenburuaarg);
$aurreizenburuaarg = str_replace(" ","+",$aurreizenburuaarg);$izenburuaarg = str_replace(" ","+",$izenburuaarg);
$aurreizenburuaarg = str_replace("á","a",$aurreizenburuaarg);$izenburuaarg = str_replace("á","a",$izenburuaarg);
$aurreizenburuaarg = str_replace("Á","A",$aurreizenburuaarg);$izenburuaarg = str_replace("Á","A",$izenburuaarg);
$aurreizenburuaarg = str_replace("é","e",$aurreizenburuaarg);$izenburuaarg = str_replace("é","e",$izenburuaarg);
$aurreizenburuaarg = str_replace("É","e",$aurreizenburuaarg);$izenburuaarg = str_replace("É","e",$izenburuaarg);
$aurreizenburuaarg = str_replace("í","i",$aurreizenburuaarg);$izenburuaarg = str_replace("í","i",$izenburuaarg);
$aurreizenburuaarg = str_replace("Í","I",$aurreizenburuaarg);$izenburuaarg = str_replace("Í","I",$izenburuaarg);
$aurreizenburuaarg = str_replace("ó","o",$aurreizenburuaarg);$izenburuaarg = str_replace("ó","o",$izenburuaarg);
$aurreizenburuaarg = str_replace("Ó","O",$aurreizenburuaarg);$izenburuaarg = str_replace("Ó","O",$izenburuaarg);
$aurreizenburuaarg = str_replace("ú","u",$aurreizenburuaarg);$izenburuaarg = str_replace("ú","u",$izenburuaarg);
$aurreizenburuaarg = str_replace("Ú","u",$aurreizenburuaarg);$izenburuaarg = str_replace("Ú","u",$izenburuaarg);
$aurreizenburuaarg = str_replace("ñ","n",$aurreizenburuaarg);$izenburuaarg = str_replace("ñ","n",$izenburuaarg);
$aurreizenburuaarg = str_replace("Ñ","N",$aurreizenburuaarg);$izenburuaarg = str_replace("Ñ","N",$izenburuaarg);
$aurreizenburuaarg = str_replace("¿","",$aurreizenburuaarg);$izenburuaarg = str_replace("¿","",$izenburuaarg);
$aurreizenburuaarg = str_replace("-","",$aurreizenburuaarg);$izenburuaarg = str_replace("-","",$izenburuaarg);
$aurreizenburuaarg = str_replace("","",$aurreizenburuaarg);$izenburuaarg = str_replace("","",$izenburuaarg);
$aurreizenburuaarg = str_replace("&","",$aurreizenburuaarg);$izenburuaarg = str_replace("&","",$izenburuaarg);
$aurreizenburuaarg = str_replace("º","o",$aurreizenburuaarg);$izenburuaarg = str_replace("º","o",$izenburuaarg);
$aurreizenburuaarg = str_replace("º","o",$aurreizenburuaarg);$izenburuaarg = str_replace("º","o",$izenburuaarg);
// FACEBOOK
$loturaarg = $URLbase_redes_especial."nodo.php?ID=".$nodoa."&lang=".$idioma;
// SACAR URLS AMIGABLES
$url_redes_es = $elnodo['url1'];
$url_redes_eu = $elnodo['url2'];
$url_redes_en = $elnodo['url3'];
$url_redes_fr = $elnodo['url4'];
if ($idioma == 1) $url_amigable_redes = $url_redes_es;
if ($idioma == 2) $url_amigable_redes = $url_redes_eu;
if ($idioma == 3) $url_amigable_redes = $url_redes_en;
if ($idioma == 4) $url_amigable_redes = $url_redes_fr;
$loturaarg = $URLbase_redes_especial.$url_amigable_redes."?partekatu";
$og_loturaarg = $URLbase_redes.$url_amigable_redes."?partekatu";
$imagen_redes = '';
if ($cuantas_fotos > 0) $imagen_redes = $lista_fotos[0]['url'];
if ($cuantas_fotos == 0) $imagen_redes = $URLbase_redes."images/logotipo.jpg";
$urlbase_facebook = "http://www.facebook.com/sharer/";
if ($cuantas_fotos > 0) {
if ($imagen_redes == $lista_fotos[0]['url']) { // NO PÁGINA concreta
$loturafacebook = $urlbase_facebook."sharer.php?u=".$loturaarg;
}
if ($imagen_redes != $lista_fotos[0]['url']) { // PÁGINA concreta
$loturafacebook = $urlbase_facebook."sharer.php?u=".$loturaarg;
}
}
if ($cuantas_fotos == 0) {
$loturafacebook = $urlbase_facebook."sharer.php?u=".$loturaarg;
}
// WHATSAPP
$loturawhatsapp = "whatsapp://send?text=" . $loturaarg;
// TWITTER (URL reducida: cont-ID.htm/eduk-ID.htm/conti-ID.htm)
if ($idioma == 1) $loturaargtweet = $URLbase_redes_especial."cont-".$nodoa.".htm";
if ($idioma == 2) $loturaargtweet = $URLbase_redes_especial."eduk-".$nodoa.".htm";
if ($idioma == 3) $loturaargtweet = $URLbase_redes_especial."conti-".$nodoa.".htm";
//$izenburuatwi = $loturaarg . "+ - " . $izenburuaarg;
$izenburuatwi = $loturaargtweet; // Sólo el ENLACE de TWITTER (sin TÍTULO y URL AMIGABLE reducida: cont-ID.htm/eduk-ID.htm/conti-ID.htm)
// PINTEREST
if ($cuantas_fotos > 0) {
if ($imagen_redes == $lista_fotos[0]['url']) { // NO PÁGINA concreta
$loturapinit = "http://www.pinterest.com/pin/create/button/?url=".$loturaarg."?spref%3Dpi&description=".$izenburuaarg."&media=".$URLbase_redes_especial."imagenes%2F".$imagen_redes;
}
if ($imagen_redes != $lista_fotos[0]['url']) { // PÁGINA concreta
$loturapinit = "http://www.pinterest.com/pin/create/button/?url=".$loturaarg."?spref%3Dpi&description=".$izenburuaarg."&media=".$URLbase_redes_especial.$imagen_redes;
}
}
if ($cuantas_fotos == 0) {
$loturapinit = "http://www.pinterest.com/pin/create/button/?url=".$loturaarg."?spref%3Dpi&description=".$izenburuaarg."&media=".$URLbase_redes_especial.$imagen_redes;
}
//FIN REDES
////SI HAY NODO
} //if (count($elnodo) != 0) {
//SI NO HAY NODO
if (count($elnodo) == 0) {
$og_description = '';
$titu_pagina = 'OOOOOOPS!';
} //if (count($elnodo) == 0) {
$mostrar_calendario = 1; //para que carge o no jquery calendario
include_once 'includes/head-nodo.php';
// RECOGER VISITA
$el_usuario = '0000';
if (isset($_SESSION['usuario_basque_'.$site.''])) $el_usuario = $_SESSION['usuario_basque_'.$site.''];
$el_site = $site;
$la_url = $_SERVER["REQUEST_URI"];
$visitador = new Usuario();
$visitador->bisita_jaso($el_site,$el_usuario,$la_url,$idioma);
unset($visitador);
// FIN RECOGER VISITA
include_once 'includes/ayuda.php';
include_once 'includes/header.php';
?>
if ($todo_ancho == 0) { //AGOSTO 2021, SI NO TODO ANCHO ?>
} //if ($todo_ancho == 0) { //AGOSTO 2021, SI NO TODO ANCHO ?>
if ($todo_ancho == 1) { //AGOSTO 2021, SI TODO ANCHO ?>
} //if ($todo_ancho == 0) { //AGOSTO 2021, SI TODO ANCHO ?>
if (count($elnodo) == 0) { // Si NO hay NODO ?>
= $titu_pagina ?> //echo $URLbase ?>
= $txt_no_contenidos ?>
} // Si NO hay NODO ?>
if (count($elnodo) != 0) { // Si hay NODO ?>
style="margin-left:0" } ?>>
style="padding-left:0;padding-right:0" } ?>>
if ($tipo != 2) { //si no es pagina ?>
•
= strtoupper($elnodo['antetitulo']) ?>
} //if ($tipo != 2) { //si no es pagina ?>
= $elnodo['titulo'] ?>
if ($mota != 9) { //SI NO ES INDICADOR ?>
} //if ($mota != 9) { //SI NO ES INDICADOR ?>
if (isset($elnodo['descripcion']) && $elnodo['descripcion'] != '') { // Si tiene DESCRIPCION ?>
= $elnodo['descripcion'] ?>
} // Si tiene DESCRIPCION ?>
if ($mota != 9) { //SI NO ES INDICADOR ?>
if ($cuantas_fotos > 0) { ?>
if ($cuantas_fotos > 1) { // Si hay varias FOTOS (más de 1) -> BOTONES ?>
if ($cuantas_fotos > 1) { // Si hay varias FOTOS (más de 1) -> NÚMEROS ?>
echo 1 ?> / echo $cuantas_fotos ?>
} // Si hay varias FOTOS (más de 1) -> NÚMEROS ?>
if ($lista_fotos[0]['texto'] != '') { // Si la FOTO tiene TEXTO (PIE DE FOTO) ?>
= $lista_fotos[0]['texto'] ?>
} // Si la FOTO tiene TEXTO (PIE DE FOTO) ?>
} //if ($cuantas_fotos > 0) { ?>
} //if ($mota != 9) //SI NO ES INDICADOR ?>
//VIDEO meter la clase adecuada
$el_contenido = $elnodo['contenido'];
$es_video = 0;
if (strpos($el_contenido, 'iframe') !== FALSE && strpos($el_contenido,'www.youtube.com') !== FALSE) $es_video = 1;
if ($es_video == 1) {
if (strpos($el_contenido, '
') !== FALSE) { //VIENE
de editor HTML
$el_contenido = str_replace('
';
}
}
//SI INDICADOR METER LA CLASE ADECUADA, PARA IFRAME RESPONSIVE
if ($mota == 9) {
$el_contenido = '
'.$el_contenido.'
';
}
?>
= $el_contenido ?>
if (count($lista_enlaces) > 0) { ?>
foreach ($lista_enlaces as $elenlace) { // Por cada ENLACE ?>
$eltitu_url = $elenlace['titulo'];
$el_url = $elenlace['url'];
$la_clase = $elenlace['url_clase'];
$target_txt = $elenlace['url_target'];
?>
} //if (count($elnodo) != 0) { ////SI HAY NODO ?>
if ($todo_ancho == 0) { //AGOSTO 2021, SI NO TODO ANCHO ?>
include_once 'includes/indice.php'; ?>
} //if ($todo_ancho == 0) { //AGOSTO 2021, SI NO TODO ANCHO ?>