return '<img src="' . $img . '" style="width:100%;"><br>'; } } } function py_cva() { $ret = ''; $ret .= '<img src="' . 'http://py.cvamedios.com/images/uh.jpg' . '" style="width:100%;"><br>'; $ret .= '<img src="' . 'http://py.cvamedios.com/images/abc.jpg' . '" style="width:100%;"><br>'; $ret .= '<img src="' . 'http://py.cvamedios.com/images/5dias.jpg' . '" style="width:100%;"><br>'; $ret .= '<img src="' . 'http://py.cvamedios.com/images/lnpy.jpg' . '" style="width:100%;"><br>'; return $ret; } function show() { $tapas = array($this->ejes_(), $this->newseum('PAR_UH'), $this->py_5dias(), $this->py_lanacion(), $this->py_cva(), $this->newseum('WSJ'), $this->newseum('DC_WP'), $this->kiosko('uk/ft_uk'), $this->newseum('NY_NYT')); foreach ($tapas as $tapa) { echo $tapa . "\n"; } } } $tapas = new tapas(); if (isset($_GET['d'])) { $tapas->days_before($_GET['d']); } $tapas->show(); ?> </body> </html>