mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-26 13:38:58 +00:00
Countdown timer now accepts is now minute-precise
This commit is contained in:
parent
8d3fa9441f
commit
3ecdfe257d
@ -408,6 +408,7 @@ class Posts {
|
||||
$day_end = $array_date_end[0];
|
||||
$month_end = $array_date_end[1];
|
||||
$year_end = $array_date_end[2];
|
||||
$time_end = $post->get_time_end();
|
||||
}
|
||||
|
||||
//Process user page posts
|
||||
@ -444,6 +445,7 @@ class Posts {
|
||||
"jour_fin" => isset($day_end) ? $day_end : null,
|
||||
"mois_fin" => isset($month_end) ? $month_end : null,
|
||||
"annee_fin" => isset($year_end) ? $year_end : null,
|
||||
"time_end" => isset($time_end) ? $time_end : null,
|
||||
|
||||
//Weblink page
|
||||
"url_page" => $post->has_link_url() ? $post->get_link_url() : null,
|
||||
@ -707,7 +709,8 @@ class Posts {
|
||||
//Countdown timer - specific
|
||||
if($entry['annee_fin'] != 0)
|
||||
$post->set_time_end(strtotime($entry["annee_fin"]."/".$entry['mois_fin']."/".$entry["jour_fin"]));
|
||||
|
||||
if($entry["time_end"] != 0)
|
||||
$post->set_time_end($entry["time_end"]);
|
||||
|
||||
//Web link
|
||||
$post->set_link_url($entry["url_page"] != null ? $entry["url_page"] : "");
|
||||
|
@ -433,6 +433,7 @@ CREATE TABLE `texte` (
|
||||
`annee_fin` varchar(255) DEFAULT NULL,
|
||||
`mois_fin` varchar(255) DEFAULT NULL,
|
||||
`jour_fin` varchar(255) DEFAULT NULL,
|
||||
`time_end` int(11) DEFAULT NULL,
|
||||
`url_page` varchar(255) DEFAULT NULL,
|
||||
`titre_page` varchar(255) DEFAULT NULL,
|
||||
`description_page` longtext,
|
||||
|
Loading…
Reference in New Issue
Block a user