source: trunk/web/app/out/dist/views/artiste_colonne.php

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

mise a jour du trunk

File size: 8.5 KB
Line 
1      <div id="artiste_logo">
2      <a href="<?= $env->url(array("e" => "artistes", "artiste" => $env->out["artiste"]["id"], "page" => "presentation")) ?>">
3
4
5
6      <?php if($env->out["artiste"]["image"]) : ?>
7
8      <?php
9
10        $img_src = $env->out["artiste"]["image"];
11        if(($thumb = $env->data->img_thumb($img_src, 240, 190, $env->path("uploads")."thumbs/")) !== false)
12        { $thumb["thumb_file"] = $env->path("uploads")."thumbs/".$thumb["thumb_file"];
13          $margin_top = floor((190 - $thumb["thumb_height"]) / 2);
14        }
15        else
16        { $thumb = array
17          ( "thumb_file" => $img_src,
18            "thumb_width" => 240,
19            "thumb_height" => 190
20          );
21          $margin_top = 0;
22        }
23
24      ?>
25
26        <img src="<?= $thumb["thumb_file"] ?>"
27             width="<?= $thumb["thumb_width"] ?>"
28             height="<?= $thumb["thumb_height"] ?>"
29             style="margin-top:<?= $margin_top ?>px"
30             alt="<?= str_replace("\"", "\\\"", $env->out["artiste"]["nom"]) ?>" />
31
32      <?php else : ?>
33        <span><?= $env->out["artiste"]["nom"] ?></span>
34      <?php endif; ?>
35
36
37
38      </a>
39      </div>
40
41      <div id="artiste_infos">
42        <br />
43        <?php $PRE = false; if($env->out["artiste"]["style"]) : ?>
44          <?= $env->out["artiste"]["style"] ?>
45        <?php $PRE = true; endif; ?>
46        <?php if($env->out["artiste"]["pays"]) : ?>
47          <?php if($PRE) : ?> - <?php endif; ?>
48          <?= $env->out["artiste"]["pays"] ?>
49        <?php $PRE = true; endif; ?>
50          <?php if($PRE) : ?> <br /> <?php endif; ?>
51        <?php if($env->out["artiste"]["site"]) : ?>
52          <a href="<?= $env->out["artiste"]["site"] ?>">site web</a>
53        <?php $PRE = true; endif; ?>
54        <?php if(!$env->out["artiste"]["hide_email"]) : ?>
55          <?php if($PRE) : ?> - <?php endif; ?>
56          <?= $env->data->encode_email($env->out["artiste"]["email_contact"]) ?>
57        <?php elseif($env->out["artiste"]["contact_form"] && $env->out["artiste"]["email_contact"]) : ?>
58          <?php if($PRE) : ?> - <?php endif; ?>
59          <a href="<?= $env->url(array("e" => "artistes", "artiste" => $env->out["artiste"]["id"], "page" => "contact")) ?>">contact</a>
60        <?php endif; ?>
61      </div>
62
63<?php
64
65  if
66  (    $env->out["artiste"]["lien_facebook"]
67    || $env->out["artiste"]["lien_flickr"]
68    || $env->out["artiste"]["lien_twitter"]
69    || $env->out["artiste"]["lien_youtube"]
70  ) :
71
72?>
73      <br />
74      <div id="reseaux_sociaux">
75      <?php if($env->out["artiste"]["lien_facebook"]) : ?>
76        <a href="<?= $env->out["artiste"]["lien_facebook"] ?>"
77           title="<?= $env->out["artiste"]["nom"] ?> sur Facebook"><img src="<?= $this->out_file("icons/social/facebook_32.png") ?>"
78           alt="<?= $env->out["artiste"]["nom"] ?> sur Facebook" /></a>
79      <?php endif; ?>
80      <?php if($env->out["artiste"]["lien_flickr"]) : ?>
81        <a href="<?= $env->out["artiste"]["lien_flickr"] ?>"
82           title="<?= $env->out["artiste"]["nom"] ?> sur Flickr"><img src="<?= $this->out_file("icons/social/flickr_32.png") ?>"
83           alt="<?= $env->out["artiste"]["nom"] ?> sur Flickr" /></a>
84      <?php endif; ?>
85      <?php if($env->out["artiste"]["lien_twitter"]) : ?>
86        <a href="<?= $env->out["artiste"]["lien_twitter"] ?>"
87           title="<?= $env->out["artiste"]["nom"] ?> sur Twitter"><img src="<?= $this->out_file("icons/social/twitter_32.png") ?>"
88           alt="<?= $env->out["artiste"]["nom"] ?> sur Twitter" /></a>
89      <?php endif; ?>
90      <?php if($env->out["artiste"]["lien_youtube"]) : ?>
91        <a href="<?= $env->out["artiste"]["lien_youtube"] ?>"
92           title="<?= $env->out["artiste"]["nom"] ?> sur Blip.Tv"><img src="<?= $this->out_file("icons/social/blip_32.png") ?>"
93           alt="<?= $env->out["artiste"]["nom"] ?> sur Blip.Tv" /></a>
94      <?php endif; ?>
95      </div>
96<?php endif;?>
97
98      <br />
99      <div class="bloc">
100        <h2>Ecoutes - T&eacute;l&eacute;chargements</h2>
101        <div class="bloc_content">
102          <ul id="download_list">
103            <li>
104              <a class="all"
105                 href="<?= $env->url
106                           ( array
107                             ( "e" => "artistes",
108                               "artiste" => $_GET[$env->param("artiste")],
109                               "page" => "downloads"
110                             )
111                           ) ?>">
112                Voir tous les titres
113              </a>
114            </li>
115            <?php if($env->out["albums"]) : ?>
116            <li>
117              <span class="titre">Albums :</span>
118
119      <div class="artiste_albums">
120        <?php
121
122          $nba = 0;
123          foreach($env->out["albums"] as $id_album => $album) : $nba++;
124          $date_creation = explode("-", $album["date_creation"]);
125          $date_creation = $date_creation[0];
126
127        ?>
128        <a class="artiste_album_link"
129           title="<?= str_replace("\"", "\\\"", $album["titre"]." (".$date_creation.")") ?>"
130           href="<?= $env->url
131                     ( array
132                       ( "e" => "artistes",
133                         "artiste" => $_GET[$env->param("artiste")],
134                         "page" => "downloads",
135                         "album" => $id_album
136                       )
137                     ) ?>">
138
139
140
141          <?php if($album["image"]) : ?>
142
143          <?php
144
145            $img_src = $album["image"];
146            if(($thumb = $env->data->img_thumb($img_src, 90, 100, $env->path("uploads")."thumbs/")) !== false)
147            { $thumb["thumb_file"] = $env->path("uploads")."thumbs/".$thumb["thumb_file"];
148              $margin_top = floor((100 - $thumb["thumb_height"]) / 2);
149            }
150            else
151            { $thumb = array
152              ( "thumb_file" => $img_src,
153                "thumb_width" => 90,
154                "thumb_height" => 100
155              );
156              $margin_top = 0;
157            }
158
159          ?>
160
161          <img src="<?= $thumb["thumb_file"] ?>"
162               width="<?= $thumb["thumb_width"] ?>"
163               height="<?= $thumb["thumb_height"] ?>"
164               style="margin: <?= $margin_top ?>px 0px <?= $margin_top ?>px 0px;"
165               alt="<?= str_replace("\"", "\\\"", $album["titre"]) ?>" />
166
167          <!-- img src="<?= $album["image"] ?>" alt="<?= str_replace("\"", "\\\"", $album["titre"]) ?>" / -->
168
169          <?php endif; ?>
170
171          <span><?= $album["titre"] ?> (<?= $date_creation ?>)</span>
172          <span class="clear"><!-- --></span>
173
174        </a>
175        <?php if($nba % 2 == 0) : ?>
176        <div class="clear"><!-- --></div>
177        <?php endif; ?>
178        <?php endforeach; ?>
179        <div class="clear"><!-- --></div>
180      </div>
181
182            </li>
183            <?php endif; ?>
184          </ul>
185        </div>
186      </div>
187
188<?php
189
190  if
191  (    $env->out["artiste"]["identifiant_paypal"]
192    || $env->out["artiste"]["lien_boutique"]
193  ) :
194
195?>
196      <br />
197      <div id="soutenir_artiste">
198  <a class="thickbox info_mini_right" href="<?= $env->url(array("e" => "popup_info", "action" => "soutenir_artiste")) ?>&amp;KeepThis=true&amp;TB_iframe=true&amp;height=400&amp;width=600" title="Soutenir un artiste">
199    <img src="<?= $env->out_file("icons/aide.png") ?>" alt="Soutenir un artiste" />
200  </a>
201        <h3>Soutenir l'artiste</h3>
202
203<?php if($env->out["artiste"]["identifiant_paypal"]) : ?>
204        <div id="don_artiste">
205
206<span>Don</span>
207<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
208  <input type="hidden" name="cmd" value="_donations" />
209  <input type="hidden" name="business" value="<?= $env->out["artiste"]["identifiant_paypal"] ?>" />
210  <input type="hidden" name="lc" value="FR" />
211  <input type="hidden" name="no_note" value="0" />
212  <input type="hidden" name="no_shipping" value="2" />
213  <input type="hidden" name="currency_code" value="EUR" />
214  <input type="hidden" name="return" value="http://<?= $_SERVER["HTTP_HOST"].$env->url(array()) ?>" />
215  <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted" />
216  <input type="image" src="<?= $env->out_file("icons/paypal.png") ?>" name="submit" alt="Faire un don avec PayPal" />
217  <img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1" />
218</form>
219
220        </div>
221<?php endif; ?>
222<?php if($env->out["artiste"]["lien_boutique"]) : ?>
223        <div id="lien_boutique_artiste">
224
225<span>Achat</span>
226<a href="<?= $env->out["artiste"]["lien_boutique"] ?>"><img src="<?= $env->out_file("icons/cart.png") ?>" /></a>
227
228        </div>
229<?php endif; ?>
230        <div class="clear"><!-- --></div>
231
232      </div>
233<?php endif;?>
Note: See TracBrowser for help on using the repository browser.