2011-06-24 18:29:55 +02:00
|
|
|
<?php
|
|
|
|
$items = $this->pl->getContents();
|
|
|
|
if (count($items)) : ?>
|
2011-06-24 23:00:59 +02:00
|
|
|
<?php $i = 0; ?>
|
2011-06-24 18:29:55 +02:00
|
|
|
<?php foreach($items as $item) : ?>
|
2012-02-29 16:23:41 +01:00
|
|
|
<li class="ui-state-default" id="spl_<?php echo $item["id"] ?>" unqid="<?php echo $item["CcFiles"]["gunid"]."_".$item["id"]; ?>">
|
2011-02-08 00:44:42 +01:00
|
|
|
<div class="list-item-container">
|
2012-02-14 21:43:27 +01:00
|
|
|
<a href="javascript:void(0);" class="big_play" onClick="open_audio_preview(
|
|
|
|
'<?php echo $item["CcFiles"]["gunid"].".".pathinfo($item["CcFiles"]["filepath"],PATHINFO_EXTENSION);?>', '<?php echo $i ?>');">
|
2012-02-11 00:37:10 +01:00
|
|
|
<span class="ui-icon ui-icon-play"></span></a>
|
2011-02-08 00:44:42 +01:00
|
|
|
|
|
|
|
<div class="text-row top">
|
|
|
|
<span class="spl_playlength"><?php echo $item["cliplength"] ?></span>
|
2011-03-21 20:01:43 +01:00
|
|
|
<span class="spl_cue ui-state-default"></span>
|
2011-02-08 00:44:42 +01:00
|
|
|
<span class="spl_title"><?php echo $item["CcFiles"]['track_title'] ?></span>
|
|
|
|
</div>
|
|
|
|
<div class="text-row">
|
|
|
|
<span class="spl_artist"><?php echo $item["CcFiles"]['artist_name'] ?></span>
|
2012-01-17 17:35:31 +01:00
|
|
|
<span class="spl_artist"><?php echo ($item["CcFiles"]['file_exists'])?"":"<img src='/css/images/warning-icon.png'>" ?></span>
|
2011-05-31 22:49:01 +02:00
|
|
|
<span class="spl_offset"><?php echo $item["offset"]?></span>
|
2011-02-08 00:44:42 +01:00
|
|
|
</div>
|
2011-11-29 15:30:05 +01:00
|
|
|
<?php //create the crossfade icon.
|
|
|
|
if ($i < count($items) -1):
|
|
|
|
?>
|
2011-02-08 00:44:42 +01:00
|
|
|
<div id="fade_<?php echo $i ?>" class="spl_fade_control ui-state-default"></div>
|
|
|
|
<?php endif; ?>
|
2012-02-04 15:52:31 +01:00
|
|
|
<span id="remove_<?php echo $item["id"] ?>" class="ui-icon ui-icon-closethick"></span>
|
2011-02-08 00:44:42 +01:00
|
|
|
</div>
|
|
|
|
|
2011-11-29 15:30:05 +01:00
|
|
|
<div id="cues_<?php echo $i ?>" class="cue-edit clearfix" style="display: none">
|
|
|
|
<?php echo $this->partial('playlist/set-cue.phtml', array(
|
2012-02-04 19:27:26 +01:00
|
|
|
'id' => $item["id"],
|
2011-11-29 15:30:05 +01:00
|
|
|
'cueIn' => $item['cuein'],
|
|
|
|
'cueOut' => $item['cueout'],
|
|
|
|
'origLength' => $item["CcFiles"]['length'])); ?>
|
|
|
|
</div>
|
|
|
|
|
2011-02-08 00:44:42 +01:00
|
|
|
|
2011-11-29 15:30:05 +01:00
|
|
|
<?php //create a fade editor box
|
|
|
|
//(fadeout of current position + fade in of next position)
|
|
|
|
if($i < count($items) -1):
|
|
|
|
?>
|
|
|
|
<div id="crossfade_<?php echo $i ?>-<?php echo $i+1 ?>" class="crossfade clearfix" style="display: none">
|
|
|
|
<?php echo $this->partial('playlist/set-fade.phtml', array(
|
2012-02-05 23:38:12 +01:00
|
|
|
'item1' => $items[$i]['id'],
|
|
|
|
'item2' => $items[$i+1]['id'],
|
2011-11-29 15:30:05 +01:00
|
|
|
'fadeOut' => $items[$i]['fadeout'],
|
|
|
|
'fadeIn' => $items[$i+1]['fadein'])); ?>
|
|
|
|
</div>
|
2011-02-08 00:44:42 +01:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<?php $i = $i+1; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
2011-01-16 22:00:44 +01:00
|
|
|
<?php else : ?>
|
2011-11-29 15:30:05 +01:00
|
|
|
<li class="spl_empty">Empty playlist</li>
|
2011-01-16 22:00:44 +01:00
|
|
|
<?php endif; ?>
|