Ejemplo n.º 1
0
$notempty = 0;
for ($i = 0; $i != $limit; $i++) {
    if (isset($podcasts[$i])) {
        echo "<li id=\"time" . $i . "\"";
        if ($podcasts[$i]->duration > 1) {
            echo " class=\"large\"";
        }
        echo ">";
        $podcasts[$i]->toItem($date);
        $first = true;
        $notempty = $podcasts[$i]->duration - 1;
        echo "</li>\n";
    } else {
        if ($first && $notempty == 0) {
            echo "<li id=\"time" . $i . "\">";
            Podcast::emptyToItem($i);
            echo "</li>\n";
        } else {
            if ($notempty != 0) {
                $notempty = $notempty - 1;
            }
        }
    }
}
if ($aujourdhui) {
    if ($limit != $now + 1) {
        echo '<li class="suspension"><p title="Patientez un peu, le podcast sera bientôt en ligne...">...</p></li>';
    }
    echo '<li id="directlink"><p onclick="play_live(true, true)"';
    echo ' onmouseover="document.getElementById(\'direct\').style.display=\'block\';"  onmouseout="document.getElementById(\'direct\').style.display=\'none\';" >direct</p>';
    echo "<div id=\"direct\" class=\"time_popup\">Écouter la radio en direct</div>";