[6] | 1 | <?php if($env->out["downloads"]) : ?> |
---|
| 2 | |
---|
| 3 | <?php if($env->out["album"]) : ?> |
---|
| 4 | <div class="album"> |
---|
| 5 | <h3>Album : <?= $env->out["album"]["titre"] ?></h3> |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | <?php if($env->out["album"]["image"]) : ?> |
---|
| 10 | <p> |
---|
| 11 | <?php |
---|
| 12 | |
---|
| 13 | $img_src = $env->out["album"]["image"]; |
---|
| 14 | if(($thumb = $env->data->img_thumb($img_src, 150, 150, $env->path("uploads")."thumbs/")) !== false) |
---|
| 15 | { $thumb["thumb_file"] = $env->path("uploads")."thumbs/".$thumb["thumb_file"]; |
---|
| 16 | } |
---|
| 17 | else |
---|
| 18 | { $thumb = array |
---|
| 19 | ( "thumb_file" => $img_src, |
---|
| 20 | "thumb_width" => 150, |
---|
| 21 | "thumb_height" => 150 |
---|
| 22 | ); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | ?> |
---|
| 26 | |
---|
| 27 | <img src="<?= $thumb["thumb_file"] ?>" |
---|
| 28 | width="<?= $thumb["thumb_width"] ?>" |
---|
| 29 | height="<?= $thumb["thumb_height"] ?>" |
---|
| 30 | alt="<?= str_replace("\"", "\\\"", $env->out["album"]["titre"]) ?>" /> |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | </p> |
---|
| 34 | <?php endif; ?> |
---|
| 35 | <p id="album_date"><?= $env->out["album"]["date_creation"] ?></p> |
---|
| 36 | <div class="dleft"> |
---|
| 37 | <?php if($env->out["album"]["url"]) : ?> |
---|
| 38 | <a href="<?= $env->url(array("e" => "downalbum", "album" => $env->out["album"]["id"])) ?>" title="Télécharger l'album"> |
---|
| 39 | <img src="<?= $env->out_file("icons/download.png") ?>" alt="Télécharger l'album" /> |
---|
| 40 | </a> |
---|
| 41 | <?php endif; ?> |
---|
| 42 | <a href="<?= |
---|
| 43 | $env->url |
---|
| 44 | ( array |
---|
| 45 | ( "e" => "artiste_downloads", |
---|
| 46 | "artiste" => $_GET[$env->param("artiste")], |
---|
| 47 | "album" => $env->out["album"]["id"], |
---|
| 48 | "format" => "m3u" |
---|
| 49 | ), |
---|
| 50 | "backend.php" |
---|
| 51 | ) |
---|
| 52 | ?>" title="Tout écouter" > |
---|
| 53 | <img src="<?= $env->out_file("icons/ecouter.png") ?>" alt="Tout écouter" /> |
---|
| 54 | </a> |
---|
| 55 | </div> |
---|
| 56 | <div class="dright"> |
---|
| 57 | <a class="thickbox" href="<?= $env->url(array("e" => "popup_info", "action" => "downloads")) ?>&KeepThis=true&TB_iframe=true&height=500&width=600" title="Ecouter et télécharger sur RSR"> |
---|
| 58 | <img src="<?= $env->out_file("icons/aide.png") ?>" alt="Aide sur l'écoute" /> |
---|
| 59 | </a> |
---|
| 60 | </div> |
---|
| 61 | <div style="clear: both"> </div> |
---|
| 62 | <?= $env->out["album"]["description"] ?> |
---|
| 63 | </div> |
---|
| 64 | <?php else : ?> |
---|
| 65 | <div class="album"> |
---|
| 66 | <h3>Tous les downloads</h3> |
---|
| 67 | <div class="dleft"> |
---|
| 68 | <br /> |
---|
| 69 | <a href="<?= |
---|
| 70 | $env->url |
---|
| 71 | ( array |
---|
| 72 | ( "e" => "artiste_downloads", |
---|
| 73 | "artiste" => $_GET[$env->param("artiste")], |
---|
| 74 | "format" => "m3u" |
---|
| 75 | ), |
---|
| 76 | "backend.php" |
---|
| 77 | ) |
---|
| 78 | ?>" title="Tout écouter" > |
---|
| 79 | <img src="<?= $env->out_file("icons/ecouter.png") ?>" alt="Tout écouter" /> |
---|
| 80 | </a> |
---|
| 81 | </div> |
---|
| 82 | <div class="dright"> |
---|
| 83 | <br /> |
---|
| 84 | <a class="thickbox" href="<?= $env->url(array("e" => "popup_info", "action" => "downloads")) ?>&KeepThis=true&TB_iframe=true&height=500&width=600" title="Ecouter et télécharger sur RSR"> |
---|
| 85 | <img src="<?= $env->out_file("icons/aide.png") ?>" alt="Aide sur l'écoute" /> |
---|
| 86 | </a> |
---|
| 87 | </div> |
---|
| 88 | <div style="clear: both"> </div> |
---|
| 89 | </div> |
---|
| 90 | <?php endif; ?> |
---|
| 91 | |
---|
| 92 | <?php require $env->out_file("views/downloads.php"); ?> |
---|
| 93 | |
---|
| 94 | <?php else: ?> |
---|
| 95 | <br /> |
---|
| 96 | <?php if($_GET[$env->param("album")]) : ?> |
---|
| 97 | <p>Aucun download dans cet album pour le moment.</p> |
---|
| 98 | <?php else : ?> |
---|
| 99 | <p>Aucun download pour le moment.</p> |
---|
| 100 | <?php endif; ?> |
---|
| 101 | |
---|
| 102 | <?php endif; ?> |
---|
| 103 | <br /> |
---|
| 104 | <br /> |
---|