/** * Muestra el top de VideoTones * * @param unknown_type $id_top * @return unknown */ function displayTopVideoTones($id_top) { $ids_tops = $this->array_contenidos[$id_top]; // array con los id a mostrar if (!$this->array_titulos_tops[$id_top]) { // $extraparam = "SECCION_SIN_TITULO"; $seccionTop = new Seccion ($this->array_titulos_tops[$id_top], $this->getStyle($this->array_align_items[$id_top]), $this->getStyle($this->array_font_size[$id_top]), $extraparam); } else { $seccionTop = new Seccion ($this->array_titulos_tops[$id_top], $this->getStyle($this->array_align_items[$id_top]), $this->getStyle($this->array_font_size[$id_top])); } $listaTop = new ListaLinks(); if ($this->array_style_items[$id_top] != "BULLETS") $listaTop->SetStyle($this->getStyle($this->array_style_items[$id_top])); foreach ($ids_tops as $id) { $datos = obtenerDatosContenido($this->db, $id); $cat = $datos['categoria']; $id = $datos['id']; if ($this->operadora == "claro" || $this->operadora == "porta") { $href = "hacer_descarga.php?xxx={$this->array_xxx[$id]}&b=h&step=2{$this->universal_push}&cat=$cat&tipoCat=65&id=".$id."&b=h"; } else { $href = "videos.php?xxx={$this->array_xxx[$id]}&b=h&step=2{$this->universal_push}&cat=$cat&tipoCat=65&id=".$id."&b=h"; } $ruta = $datos['screenshots']; $carpeta = calcularCarpeta($id); ($this->array_textos_links_dl[$id_top] != "") ? $nombre = $this->array_textos_links_dl[$id_top] : $nombre = $this->escape4Wap($datos['nombre']); ($this->array_subtexto[$id_top] == "1") ? $autor = "<br/> ".$this->escape4Wap($datos["autor"]) : $autor = ""; if ($this->array_style_items[$id_top] == "BULLETS") { $link = new MenuItem("images/bullet.gif", $nombre, $href); } else { if ($this->array_show_preview[$id_top] == "1") { if (file_exists("getimage.php")) $link = new Link($href, $nombre, "getimage.php?path=http://www.wazzup.com.uy/$ruta", TOP_SIDE, null, $autor); else $link = new Link($href, $nombre, "http://www.wazzup.com.uy/$ruta", TOP_SIDE, null, $autor); } else { $link = new Link($href, $nombre, null, null, null, $autor); } } switch($this->array_marcas[$id]){ case 'new': $link->setNew(true); break; case 'hot': $link->setHot(true); break; case 'hit': $link->setHit(true); break; } $listaTop->AddComponent($link); } $seccionTop->AddComponent ($listaTop); $this->html .= $seccionTop->Display(); if (($this->array_text_notitle[$id_top] != "")) { $seccionVerMas = new Seccion ("", $this->getStyle($this->array_align_notitle[$id_top]), $this->getStyle($this->array_font_size[$id_top]), SECCION_SIN_TITULO); $seccionVerMas->AddComponent (new Link ("videos.php?step=0{$this->universal_push}&tipoCat=65", $this->array_text_notitle[$id_top])); $this->html .= $seccionVerMas->Display(); } if ($this->debug == "2") $this->logMyDebug(); return $this->html; }