function Display() { $contenidoTpl = $this->_loadTemplate(); $contenido = ""; $contenido_extra = ""; if ($this->img_path != "") { $img = new Imagen($this->img_path); $contenidoTpl = str_replace("#IMG-PROF#", $img->Display(), $contenidoTpl); } else { $contenidoTpl = str_replace("#IMG-PROF#", "", $contenidoTpl); } if ($this->extra_class != null) { $contenidoTpl = str_replace("#EXTRA-CLASS#", $this->extra_class, $contenidoTpl); } else { $contenidoTpl = str_replace("#EXTRA-CLASS#", "", $contenidoTpl); } if ($this->link != null) { $contenido = $this->link->Display() . "<br/>"; } $contenido .= $this->txt; if ($this->extra_contenido != null) { $contenido_extra = $this->extra_contenido; } if ($this->foot != null) { $contenido .= "<br/>" . $this->foot->Display(); } $contenidoTpl = str_replace("#CONTENIDO#", $contenido, $contenidoTpl); $contenidoTpl = str_replace("#EXTRA-CONTENIDO#", $contenido_extra, $contenidoTpl); return $contenidoTpl; }
function Display() { $html = $this->_loadTemplate(); $codigo_interior = ""; foreach ($this->contenido as $comp) { $codigo_interior .= is_object($comp) ? $comp->Display() : $comp; } if ($this->is_new) { $imgNew = new Imagen(IMAGEN_NEW, TITLE_NEW); $codigo_interior .= $imgNew->Display(); } if ($this->is_hot) { $imgHot = new Imagen(IMAGEN_HOT, TITLE_HOT); $codigo_interior .= $imgHot->Display(); } if ($this->is_hit) { $imgHit = new Imagen(IMAGEN_HIT, TITLE_HIT); $codigo_interior .= $imgHit->Display(); } $codigo_interior .= $this->extra_text; $html = str_replace("#CONTENIDO#", $codigo_interior, $html); return $html; }
function Display() { $html = $this->_loadTemplate(); $html = str_replace("#HREF#", $this->href, $html); $html = str_replace("#CLASE#", $this->clase, $html); $html = str_replace("#CLASE#", "", $html); //Por si no le seteamos una clase $html_interior = ""; if ($this->img) { switch ($this->img_pos) { case LEFT_SIDE: $html_interior .= $this->img->Display(); $html_interior .= parent::Display(); break; case TOP_SIDE: $html_interior .= $this->img->Display(); $html_interior .= "<br/>" . parent::Display(); break; case RIGHT_SIDE: $html_interior .= parent::Display(); $html_interior .= $this->img->Display(); break; case BOTTOM_SIDE: $html_interior .= parent::Display(); $html_interior .= "<br/>" . $this->img->Display(); break; } } else { $html_interior .= parent::Display(); } $html = str_replace("#CONTENIDO#", $html_interior, $html); $html .= $this->extra_text; if ($this->is_new) { $imgNew = new Imagen(IMAGEN_NEW, TITLE_NEW); $html .= $imgNew->Display(); if ($this->_soportaXHTML()) { $html .= "<div class=\"clear\" ></div>"; } else { $html .= "<br/>"; } } if ($this->is_hot) { $imgHot = new Imagen(IMAGEN_HOT, TITLE_HOT); $html .= $imgHot->Display(); //if(!$this->_soportaXHTML()) { $html .= "<br/>"; //} } if ($this->is_hit) { $imgHit = new Imagen(IMAGEN_HIT, TITLE_HIT); $html .= $imgHit->Display(); if ($this->_soportaXHTML()) { $html .= "<div class=\"clear\" ></div>"; } else { $html .= "<br/>"; } } return $html; }
function Display() { global $msisdn; //Esto es chancho, lo sé... pido perdón... :( global $ua; global $db; if ($msisdn != "" || IDEAS == 1) { $contenidoTpl = $this->_loadTemplate(); /* if(!$this->force_si) { $url_descarga = urlWapPushAncel($msisdn, $this->idCont, false, servicio3G(), $this->nombre_wap); } else { $url_descarga = $this->href_si; } */ $url_descarga = $this->href_si; $html = str_replace("#RESPUESTASI#", $url_descarga, $contenidoTpl); if (IDEAS == 1) { //Para el caso de IDEAS, se debe obtener el ID del tipo de contenidos de WAZZUP en lugar del de Ideas $datos_ideas = obtenerDatosCont($db, $this->idCont); $tipo_ideas = $datos_ideas['tipo_ideas']; $this->tipo = $datos_ideas['tipo']; } //echo $this->tipo.".."; if (soportaContenidoPorTipo($db, $ua, $this->tipo)) { if ($this->idCont != 0) { if (IDEAS == 1) { $datos = obtenerDatosCompra($tipo_ideas, $this->idCont); } else { $datos = obtenerDatosCompra($this->tipo, $this->idCont); if (TIGO_CO == 1) { $oPrecio = new PreciosContenidos($db); $precio_contenido = $oPrecio->devolverPrecio("tigo_co", $this->idCont); } else { $precio_contenido = $datos["precio"]; } } if ($datos['nombre_cont'] == "Juego" && !check_game_compat($db, $ua, $this->idCont)) { $html = "Este contenido no es compatible con\t su móvil."; } else { $datos_cont = obtenerDatosContenido(null, $this->idCont, $datos['nombre_cont'] == "Juego"); if ($datos_cont['screenshots'] && $this->show_preview) { $imgPreview = new Imagen("getimage.php?path=http://www.wazzup.com.uy/" . $datos_cont['screenshots'], $datos_cont['nombre']); $html = str_replace("#IMG_PREVIEW#", $imgPreview->Display(), $html); } else { $html = str_replace("#IMG_PREVIEW#", "", $html); } $html = str_replace("#NOMBRE_CONTENIDO#", $datos_cont['nombre'], $html); } } $html = str_replace("#IMG_PREVIEW#", "", $html); $html = str_replace("#RESPUESTANO#", $this->href_no, $html); if (TIGO_CO == 1) { $html = str_replace("#PRECIO#", $precio_contenido, $html); } else { $version_wap = $this->_soportaXHTML() ? "xhtml" : "wml"; $precio = isset($datos["precio_{$version_wap}"]) ? $datos["precio_{$version_wap}"] : $datos['precio']; $html = str_replace("#PRECIO#", $precio, $html); } $html = str_replace("#NOMBRETIPO#", $datos['nombre_cont'], $html); } else { $html = "Este contenido no está disponible para su móvil."; } } else { $html = <<<HTML \t\t\t\tEl contenido no se puede descargar en este momento, por favor intentelo más tarde HTML; } return $html; }
function Display() { global $msisdn; //Esto es chancho, lo sé... pido perdón... :( global $ua; global $db; if ($msisdn != "" || IDEAS == 1) { $contenidoTpl = $this->_loadTemplate(); $url_descarga = $this->href_si; $html = str_replace("#RESPUESTASI#", $url_descarga, $contenidoTpl); if (IDEAS == 1) { //Para el caso de IDEAS, se debe obtener el ID del tipo de contenidos de WAZZUP en lugar del de Ideas $datos_ideas = obtenerDatosCont($db, $this->idCont); $tipo_ideas = $datos_ideas['tipo_ideas']; $this->tipo = $datos_ideas['tipo']; } //echo $this->tipo.".."; if (soportaContenidoPorTipo($db, $ua, $this->tipo)) { if ($this->idCont != 0) { $datos = obtenerDatosCompra($this->tipo, $this->idCont); //Nuevo super-multi-loco sistema para obtener precio de los contenidos $id_wap = obtenerIDInteraccionWap($db, NOMBRE_MCM, OPERADORA_MCM); $pc = new BillingContenido($db, $this->idCont, $id_wap); $pc->ProcesarWap(); $precio_contenido = $pc->ObtenerPrecio(); if ($precio_contenido == "") { //Si no tenemos un precio seteado para el precio, lo buscamos como lo haciamos antes. if (IDEAS == 1) { $datos = obtenerDatosCompra($tipo_ideas, $this->idCont); } else { $datos = obtenerDatosCompra($this->tipo, $this->idCont); if (TIGO_CO == 1) { $oPrecio = new PreciosContenidos($db); $precio_contenido = $oPrecio->devolverPrecio("tigo_co", $this->idCont); } else { $precio_contenido = $datos["precio"]; } } } if ($datos['nombre_cont'] == "Juego" && !check_game_compat($db, $ua, $this->idCont)) { $html = "Este contenido no est�� disponible para su m�vil."; } else { $datos_cont = obtenerDatosContenido(null, $this->idCont, $datos['nombre_cont'] == "Juego"); if ($datos_cont['screenshots'] && $this->show_preview) { $imgPreview = new Imagen("getimage.php?path=http://www.wazzup.com.uy/" . $datos_cont['screenshots'], $datos_cont['nombre']); $html = str_replace("#IMG_PREVIEW#", $imgPreview->Display(), $html); } else { $html = str_replace("#IMG_PREVIEW#", "", $html); } $html = str_replace("#NOMBRE_CONTENIDO#", $datos_cont['nombre'], $html); } } $html = str_replace("#IMG_PREVIEW#", "", $html); $html = str_replace("#RESPUESTANO#", $this->href_no, $html); if (TIGO_CO == 1) { $html = str_replace("#PRECIO#", $precio_contenido, $html); } else { $version_wap = $this->_soportaXHTML() ? "xhtml" : "wml"; $precio = isset($datos["precio_{$version_wap}"]) ? $datos["precio_{$version_wap}"] : $datos['precio']; $html = str_replace("#PRECIO#", $precio, $html); } $html = str_replace("#NOMBRETIPO#", $datos['nombre_cont'], $html); } else { $html = "Este contenido no está disponible para su móvil."; } } else { $html = <<<HTML \t\t\t\tEl contenido no se puede descargar en este momento, por favor intentelo más tarde HTML; } return $html; }