|
|
@@ -48,54 +48,54 @@
|
|
48
|
48
|
|
|
49
|
49
|
if ($tumble->contarRegistros()>0) {
|
|
50
|
50
|
while($register = mysql_fetch_array($rs)) {
|
|
51
|
|
-
|
|
|
51
|
+ $formatedDate = date("M d", strtotime($register["date"]));
|
|
52
|
52
|
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
|
53
|
53
|
switch ($tumble->getType($register["id_post"])) {
|
|
54
|
54
|
case "1":
|
|
55
|
55
|
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
|
56
|
|
- $output = array($register["date"], $permalink, $register["title"], $register["description"], $conf->urlGelato);
|
|
|
56
|
+ $output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato);
|
|
57
|
57
|
|
|
58
|
58
|
$template->cargarPlantilla($input, $output, "template_regular_post");
|
|
59
|
59
|
$template->mostrarPlantilla();
|
|
60
|
60
|
break;
|
|
61
|
61
|
case "2":
|
|
62
|
62
|
$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{URL_Tumble}");
|
|
63
|
|
- $output = array($register["date"], $permalink, $register["url"], "", $register["description"], $conf->urlGelato);
|
|
|
63
|
+ $output = array($formatedDate, $permalink, $register["url"], "", $register["description"], $conf->urlGelato);
|
|
64
|
64
|
|
|
65
|
65
|
$template->cargarPlantilla($input, $output, "template_photo");
|
|
66
|
66
|
$template->mostrarPlantilla();
|
|
67
|
67
|
break;
|
|
68
|
68
|
case "3":
|
|
69
|
69
|
$input = array("{Date_Added}", "{Permalink}", "{Quote}", "{Source}", "{URL_Tumble}");
|
|
70
|
|
- $output = array($register["date"], $permalink, $register["description"], $register["title"], $conf->urlGelato);
|
|
|
70
|
+ $output = array($formatedDate, $permalink, $register["description"], $register["title"], $conf->urlGelato);
|
|
71
|
71
|
|
|
72
|
72
|
$template->cargarPlantilla($input, $output, "template_quote");
|
|
73
|
73
|
$template->mostrarPlantilla();
|
|
74
|
74
|
break;
|
|
75
|
75
|
case "4":
|
|
76
|
76
|
$input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
|
|
77
|
|
- $output = array($register["date"], $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);
|
|
|
77
|
+ $output = array($formatedDate, $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);
|
|
78
|
78
|
|
|
79
|
79
|
$template->cargarPlantilla($input, $output, "template_url");
|
|
80
|
80
|
$template->mostrarPlantilla();
|
|
81
|
81
|
break;
|
|
82
|
82
|
case "5":
|
|
83
|
83
|
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}");
|
|
84
|
|
- $output = array($register["date"], $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato);
|
|
|
84
|
+ $output = array($formatedDate, $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato);
|
|
85
|
85
|
|
|
86
|
86
|
$template->cargarPlantilla($input, $output, "template_conversation");
|
|
87
|
87
|
$template->mostrarPlantilla();
|
|
88
|
88
|
break;
|
|
89
|
89
|
case "6":
|
|
90
|
90
|
$input = array("{Date_Added}", "{Permalink}", "{Video}", "{Caption}", "{URL_Tumble}");
|
|
91
|
|
- $output = array($register["date"], $permalink, $tumble->getVideoPlayer($register["url"]), $register["description"], $conf->urlGelato);
|
|
|
91
|
+ $output = array($formatedDate, $permalink, $tumble->getVideoPlayer($register["url"]), $register["description"], $conf->urlGelato);
|
|
92
|
92
|
|
|
93
|
93
|
$template->cargarPlantilla($input, $output, "template_video");
|
|
94
|
94
|
$template->mostrarPlantilla();
|
|
95
|
95
|
break;
|
|
96
|
96
|
case "7":
|
|
97
|
97
|
$input = array("{Date_Added}", "{Permalink}", "{Mp3}", "{Caption}", "{URL_Tumble}");
|
|
98
|
|
- $output = array($register["date"], $permalink, $tumble->getMp3Player($register["url"]), $register["description"], $conf->urlGelato);
|
|
|
98
|
+ $output = array($formatedDate, $permalink, $tumble->getMp3Player($register["url"]), $register["description"], $conf->urlGelato);
|
|
99
|
99
|
|
|
100
|
100
|
$template->cargarPlantilla($input, $output, "template_mp3");
|
|
101
|
101
|
$template->mostrarPlantilla();
|