2011-06-24 18:29:55 +02:00
|
|
|
<?php
|
2012-07-25 17:00:46 +02:00
|
|
|
$items = $this->obj->getContents();
|
2011-06-24 18:29:55 +02:00
|
|
|
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"]; ?>">
|
2012-03-15 12:08:29 +01:00
|
|
|
<div class="list-item-container">
|
|
|
|
|
|
|
|
<?php if ($item["CcFiles"]['file_exists']):?>
|
2012-03-06 00:59:31 +01:00
|
|
|
<div class="big_play" audioFile="<?php echo $item["CcFiles"]["gunid"].".".pathinfo($item["CcFiles"]['filepath'], PATHINFO_EXTENSION); ?>">
|
|
|
|
<span class="ui-icon ui-icon-play"></span>
|
|
|
|
</div>
|
2012-03-15 12:08:29 +01:00
|
|
|
<?php else: ?>
|
|
|
|
<div class="big_play ui-state-hover">
|
|
|
|
<span class="ui-icon ui-icon-alert"></span>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
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">
|
2012-03-15 12:08:29 +01:00
|
|
|
<span class="spl_artist"><?php echo $item["CcFiles"]['artist_name'] ?></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; ?>
|