Changed the date format

master
pecesama 2007-04-04 06:39:21 +00:00
parent 469e397185
commit e0f94f88a1
1 changed files with 8 additions and 8 deletions

View File

@ -48,54 +48,54 @@
if ($tumble->contarRegistros()>0) { if ($tumble->contarRegistros()>0) {
while($register = mysql_fetch_array($rs)) { while($register = mysql_fetch_array($rs)) {
$formatedDate = date("M d", strtotime($register["date"]));
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/"; $permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
switch ($tumble->getType($register["id_post"])) { switch ($tumble->getType($register["id_post"])) {
case "1": case "1":
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $register["title"], $register["description"], $conf->urlGelato); $output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_regular_post"); $template->cargarPlantilla($input, $output, "template_regular_post");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
break; break;
case "2": case "2":
$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $register["url"], "", $register["description"], $conf->urlGelato); $output = array($formatedDate, $permalink, $register["url"], "", $register["description"], $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_photo"); $template->cargarPlantilla($input, $output, "template_photo");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
break; break;
case "3": case "3":
$input = array("{Date_Added}", "{Permalink}", "{Quote}", "{Source}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Quote}", "{Source}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $register["description"], $register["title"], $conf->urlGelato); $output = array($formatedDate, $permalink, $register["description"], $register["title"], $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_quote"); $template->cargarPlantilla($input, $output, "template_quote");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
break; break;
case "4": case "4":
$input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato); $output = array($formatedDate, $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_url"); $template->cargarPlantilla($input, $output, "template_url");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
break; break;
case "5": case "5":
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato); $output = array($formatedDate, $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_conversation"); $template->cargarPlantilla($input, $output, "template_conversation");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
break; break;
case "6": case "6":
$input = array("{Date_Added}", "{Permalink}", "{Video}", "{Caption}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Video}", "{Caption}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $tumble->getVideoPlayer($register["url"]), $register["description"], $conf->urlGelato); $output = array($formatedDate, $permalink, $tumble->getVideoPlayer($register["url"]), $register["description"], $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_video"); $template->cargarPlantilla($input, $output, "template_video");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
break; break;
case "7": case "7":
$input = array("{Date_Added}", "{Permalink}", "{Mp3}", "{Caption}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Mp3}", "{Caption}", "{URL_Tumble}");
$output = array($register["date"], $permalink, $tumble->getMp3Player($register["url"]), $register["description"], $conf->urlGelato); $output = array($formatedDate, $permalink, $tumble->getMp3Player($register["url"]), $register["description"], $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_mp3"); $template->cargarPlantilla($input, $output, "template_mp3");
$template->mostrarPlantilla(); $template->mostrarPlantilla();