From 12719a9c86389daef0e8f5fbc42b3903b94a930e Mon Sep 17 00:00:00 2001 From: chankalan Date: Thu, 23 Sep 2021 15:46:57 +0200 Subject: [PATCH] fonction radiolive plus utile --- libreavous_fonctions.php | 52 ++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/libreavous_fonctions.php b/libreavous_fonctions.php index 78ee777..77d4be9 100644 --- a/libreavous_fonctions.php +++ b/libreavous_fonctions.php @@ -207,29 +207,29 @@ function titre_chronique_court($titre) { } -function radiolive() { - $dateetheure= time(); - - $h1=strtotime("15:15:00"); - $h2=strtotime(date ('H:i:s',$dateetheure)); - - $radio = ''; - - if((date("w", $dateetheure ) == 2) && ($h2 >= $h1) && (date("G", $dateetheure ) < 17)) { -// $radio = 'live'; - - $radio = ' -
-
-

Écoutez le direct (mardi 15h30 à 17h)

- -
-
'; - } - - return $radio; - -} +// function radiolive() { +// $dateetheure= time(); +// +// $h1=strtotime("15:15:00"); +// $h2=strtotime(date ('H:i:s',$dateetheure)); +// +// $radio = ''; +// +// if((date("w", $dateetheure ) == 2) && ($h2 >= $h1) && (date("G", $dateetheure ) < 17)) { +// // $radio = 'live'; +// +// $radio = ' +//
+//
+//

Écoutez le direct (mardi 15h30 à 17h)

+// +//
+//
'; +// } +// +// return $radio; +// +// }