Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (34 sloc) 1.92 KB
<h3><?= $release->artist ?>: <?= l($release->title, $release->url) ?></h3>
<?= l(theme('image', array('path' => $release->art_url, 'alt' => t('Image of !release_title cover art', array('!release_title' => check_plain($release->title))), 'title' => t('!release_title cover art', array('!release_title' => check_plain($release->title))))), $release->url, array('html' => true)); ?>
<p>Release date: <?= date('j F Y', strtotime($release->bandcamp_release_date['und'][0]['value'])); ?></p>
<?php if($release->tracks): ?>
<table>
<thead>
<tr>
<th>Track number</th>
<th>Title</th>
<th>Artist</th>
<th>Image</th>
<th>Details.</th>
</tr>
</thead>
<tbody>
<?php foreach($release->tracks as $track): ?>
<tr>
<td><?= check_plain($track->bandcamp_track_number['und'][0]['value']) ?></td>
<td><?= check_plain($track->title) ?></td>
<td><?= $track->artist ?></td>
<td><?= l(theme('image', array('path' => $track->small_art_url, 'alt' => t('Image of track_title art', array('track_title' => $track->title)), 'title' => t('track_title art', array('track_title' => $track->title)))), $track->large_art_url, array('html' => true)) ?></td>
<td>
<div><strong>Duration:</strong> <?= $track->duration ?> </div>
<div><strong>URL:</strong> <?= $track->track_url ?></div>
<?php if(isset($track->credits)): ?><div><strong>Credits:</strong> <?= $track->credits; ?></div><?php endif; ?>
<?php if(isset($track->about)): ?><div><strong>About:</strong> <?= $track->about; ?></div><?php endif; ?>
<?php if(isset($track->lyrics)): ?><div><strong>Lyrics:</strong> <?= $track->lyrics; ?></div><?php endif; ?>
<?php if(isset($track->downloadable)): ?><div><strong>Downloadable?:</strong> <?= $track->downloadable; ?></div><?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>