source: branches/rsr.v5.1/web/app/out/dist/content/artistes/artistes.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 1.3 KB
Line 
1<h2>Les artistes</h2>
2<div class="bloc_content">
3
4  <ul class="artiste_mini_blocs">
5  <?php foreach($env->out["artistes"] as $id => $artiste) : ?>
6    <li>
7      <a href="<?= $env->url(array("e" => "artistes", "artiste" => $id)) ?>">
8        <?php
9
10          $img_src = $artiste["image"];
11          if($img_src) :
12          if(($thumb = $env->data->img_thumb($img_src, 94, 100, $env->path("uploads")."thumbs/")) !== false)
13          { $thumb["thumb_file"] = $env->path("uploads")."thumbs/".$thumb["thumb_file"];
14            $margin_top = floor((110 - $thumb["thumb_height"]) / 2);
15          }
16          else
17          { $thumb = array
18            ( "thumb_file" => $img_src,
19              "thumb_width" => 94,
20              "thumb_height" => 100
21            );
22            $margin_top = 5;
23          }
24
25        ?>
26        <span class="image">
27          <img src="<?= $thumb["thumb_file"] ?>"
28               width="<?= $thumb["thumb_width"] ?>"
29               height="<?= $thumb["thumb_height"] ?>"
30               style="margin-top:<?= $margin_top ?>px" alt="" />
31        </span>
32        <?php endif; ?>
33        <span class="nom"><?= $artiste["nom"] ?></span>
34        <span class="style"><?= $artiste["style"] ?></span>
35      </a>
36    </li>
37  <?php endforeach; ?>
38  </ul>
39  <div class="clear"><!-- --></div>
40
41</div>
Note: See TracBrowser for help on using the repository browser.