getFichaObra(); if(count($aObra)==0){ header("location:index.php"); } $aObras = $oObras->getListadoObrasFicha($aObra['idSocio']); $oActividades = new Actividades(); $tiene_representaciones = $oActividades->getRepresentacionesObra($idObra); $oSocios = new Socios($aObra['idSocio']); $aDatosSocio = $oSocios->getDatosContacto(); $aFederacion = $oSocios->getFederacion(); $oNoticias = new Noticias(); $oTags = new Tags(); $aIdObrasRel = $oTags->tagsRelacionados($aObra['tags'] , TAG_OBRAS); $aIdSociosRel = $oTags->tagsRelacionados($aObra['tags'] , TAG_SOCIOS); $aIdNoticiasRel = $oTags->tagsRelacionados($aObra['tags'] , TAG_NOTICIAS); $aNoticiasRelacionadas = $oNoticias->getNoticiasRelacionadas($aIdNoticiasRel, 0); $aObrasRelacionadas = $oObras->getObrasRelacionadas($aIdObrasRel, $idObra); $aSociosRelacionados = $oSocios->getSociosRelacionados($aIdSociosRel, 0); if ($en_debug) { echo "
tags: ".$aObra['tags']."
"; } if ($en_debug) { echo "Noticias: ";print_r( $aNoticiasRelacionadas); echo "
Noticias:";print_r($aIdNoticiasRel); echo "
Socios:";print_r($aIdSociosRel); echo "
Obras:";print_r($aIdObrasRel); } $miga_pan = ""; if(strlen($aFederacion['nombre_normal'])>0) $miga_pan .= "".$aFederacion['nombre_normal']." / "; $miga_pan .= "".$aObra['nombre_normal']." / ".$aObra['titulo']; // ---- asigno al Smarty ---------------------- $smarty = new Smarty; require_once './include_global.php'; $smarty->assign('css_adicional', "\n \n \n \n \n "); $smarty->assign('titulo', $aObra['titulo']); $smarty->assign('menu_seleccionado', 3); $smarty->assign('submenu_seleccionado', 3); $smarty->assign('obra', $aObra); $smarty->assign('obras', $aObras); $smarty->assign('contacto', $aDatosSocio); $smarty->assign('miga_pan', $miga_pan); $smarty->assign('tiene_representaciones', $tiene_representaciones); $smarty->assign('noticiasRelacionadas' , $aNoticiasRelacionadas); $smarty->assign('obrasRelacionadas' , $aObrasRelacionadas); $smarty->assign('sociosRelacionados' , $aSociosRelacionados); //como el bloque de redes sociales y enlace es comun para socios y obras lo meto en una variable $smarty->assign('enlace', $aObra['enlace']); $smarty->display('cabecero.tpl'); $smarty->display('cabecero_socios.tpl'); $smarty->display('contenidos_relacionados.tpl'); $smarty->display('in_columna_535.tpl'); $smarty->display('submenu_socios.tpl'); $smarty->display('img_cartelera.tpl'); $smarty->display('miga_pan_cartelera.tpl'); $smarty->display('in_columna_237_socio.tpl'); $smarty->display('img_ficha_obra.tpl'); $smarty->display('fin_div.tpl'); $smarty->display('in_col_izq_socio.tpl'); $smarty->display('ficha_obra.tpl'); $smarty->display('fin_div.tpl'); $smarty->display('contacto_obra.tpl'); $smarty->display('cartelera_grupo.tpl'); $smarty->display('fin_div.tpl'); $smarty->display('consultas_horizontal.tpl'); $smarty->display('pie.tpl'); ?>