Diferencia entre revisiones de «Wikiquote:Frase del día»

Contenido eliminado Contenido añadido
Línea 96:
## Version 1.2 by davidmartindel (http://es.wikiquote.org/wiki/Usuario_Discusión:Davidmartindel) under GPL license
$semana = date("D");
$semanaArray = array( "Mon" => "lunes", "Tue" => "martes", "Wed" => "miercolesmiércoles", "Thu" => "jueves", "Fri" => "viernes", "Sat" => "sábado", "Sun" => "domingo", );
$title="Plantilla:Frase-".$semanaArray[$semana];
$title="{"."{".$title."}"."}";
Línea 116:
$texto_final=utf8_decode( $texto_final);
$texto_final=str_replace ('/wiki/', 'http://es.wikiquote.org/wiki/' ,$texto_final );
$texto_final=str_replace ('a href=', 'a target="_blank" href=' ,$texto_final );
$texto_final=str_replace ('/w/index.php?title=', 'http://es.wikiquote.org/w/index.php?title=' ,$texto_final );
 
//mostramos en pantalla la frase