2012-08-08 21:29:09 +02:00
|
|
|
<?php
|
2012-08-09 16:47:43 +02:00
|
|
|
if (isset($this->obj)) {
|
|
|
|
$contents = $this->obj->getContents();
|
|
|
|
$count = count($contents);
|
|
|
|
}
|
2012-08-08 21:29:09 +02:00
|
|
|
?>
|
2012-09-19 23:14:22 +02:00
|
|
|
<div class="btn-toolbar spl-no-top-margin clearfix">
|
2012-09-14 21:49:39 +02:00
|
|
|
<div class="btn-group pull-left">
|
|
|
|
<button id="spl_new" class="btn dropdown-toggle" data-toggle="dropdown" aria-disabled="false">
|
2012-11-15 16:59:06 +01:00
|
|
|
<? echo _("New")?> <span class="caret"></span>
|
2012-09-14 21:49:39 +02:00
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
2012-11-13 21:10:07 +01:00
|
|
|
<li id='lib-new-pl'><a href="#"><? echo _("New Playlist") ?></a></li>
|
|
|
|
<li id='lib-new-bl'><a href="#"><? echo _("New Smart Block") ?></a></li>
|
|
|
|
<li id='lib-new-ws'><a href="#"><? echo _("New Webstream") ?></a></li>
|
2012-09-14 21:49:39 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2012-07-25 17:00:46 +02:00
|
|
|
<?php if (isset($this->obj)) : ?>
|
2013-01-23 18:09:21 +01:00
|
|
|
<div class='btn-group pull-right'>
|
|
|
|
<button class="btn btn-inverse" title='<?php echo _("Empty playlist content") ?>' type="button" id="pl-bl-clear-content"><? echo _("Clear") ?></button>
|
|
|
|
</div>
|
2012-11-13 23:31:30 +01:00
|
|
|
<div class='btn-group pull-right'>
|
2012-11-20 22:40:02 +01:00
|
|
|
<button class="btn btn-inverse" title='<?php echo _("Shuffle playlist") ?>' type="button" id="playlist_shuffle_button"><? echo _("Shuffle") ?></button>
|
2012-11-13 23:31:30 +01:00
|
|
|
</div>
|
2012-09-14 21:49:39 +02:00
|
|
|
<div class='btn-group pull-right'>
|
2012-11-20 22:40:02 +01:00
|
|
|
<button class="btn btn-inverse" title='<?php echo _("Save playlist") ?>' type="button" id="save_button"><? echo _("Save") ?></button>
|
2012-09-14 21:49:39 +02:00
|
|
|
</div>
|
|
|
|
<div class='btn-group pull-right'>
|
2012-11-13 21:10:07 +01:00
|
|
|
<button id="spl_delete" class="btn" role="button" aria-disabled="false"><? echo _("Delete") ?></button>
|
2012-09-14 21:49:39 +02:00
|
|
|
</div>
|
|
|
|
<div class='btn-group pull-right'>
|
|
|
|
<a href="#" id="spl_crossfade" class="btn crossfade-main-button" style="display:<?php echo $count > 0 ?"block;":"none;"?>">
|
2012-11-13 21:10:07 +01:00
|
|
|
<i class='crossfade-main-icon'></i><span class="ui-button-text"><? echo _("Playlist crossfade") ?></span>
|
2012-09-14 21:49:39 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2012-03-29 15:34:58 +02:00
|
|
|
<?php endif; ?>
|
2012-09-14 21:49:39 +02:00
|
|
|
</div>
|
2012-03-29 15:34:58 +02:00
|
|
|
|
2012-07-25 17:00:46 +02:00
|
|
|
<?php if (isset($this->obj)) : ?>
|
2012-07-25 18:44:37 +02:00
|
|
|
<input id="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"></input>
|
|
|
|
<input id="obj_lastMod" type="hidden" value="<?php echo $this->obj->getLastModified('U'); ?>"></input>
|
2012-07-25 17:00:46 +02:00
|
|
|
<input id='obj_type' type='hidden' value='playlist'></input>
|
2012-03-29 15:34:58 +02:00
|
|
|
<div class="playlist_title">
|
2012-08-09 20:12:30 +02:00
|
|
|
<h3 id="obj_name">
|
2012-07-25 17:00:46 +02:00
|
|
|
<a id="playlist_name_display" contenteditable="true"><?php echo $this->obj->getName(); ?></a>
|
2012-03-29 15:34:58 +02:00
|
|
|
</h3>
|
2012-08-09 20:12:30 +02:00
|
|
|
<h4 id="obj_length"><?php echo $this->length; ?></h4>
|
2012-03-29 15:34:58 +02:00
|
|
|
</div>
|
2012-08-09 23:23:52 +02:00
|
|
|
<div id='sp-success' class='success' style='display:none'></div>
|
2012-03-29 15:34:58 +02:00
|
|
|
|
|
|
|
<fieldset class="toggle closed" id="fieldset-metadate_change">
|
2012-11-13 21:37:24 +01:00
|
|
|
<legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span><? echo _("View / edit description"); ?></legend>
|
2012-03-29 15:34:58 +02:00
|
|
|
<dl class="zend_form">
|
2012-11-13 21:10:07 +01:00
|
|
|
<dt id="description-label"><label for="description"><? echo _("Description") ?></label></dt>
|
2012-03-29 15:34:58 +02:00
|
|
|
<dd id="description-element">
|
2012-07-25 17:00:46 +02:00
|
|
|
<textarea cols="80" rows="24" id="description" name="description"><?php echo $this->obj->getDescription(); ?></textarea>
|
2012-03-29 15:34:58 +02:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</fieldset>
|
2012-07-10 21:25:29 +02:00
|
|
|
|
2012-07-25 17:00:46 +02:00
|
|
|
<?php //echo $this->form; ?>
|
2012-03-29 15:34:58 +02:00
|
|
|
|
|
|
|
<div id="crossfade_main" class="crossfade-main clearfix" style="display:none;">
|
2012-08-13 20:53:21 +02:00
|
|
|
<span class="ui-icon ui-icon-closethick sp-closethick-center"></span>
|
2012-03-29 15:34:58 +02:00
|
|
|
<dl id="spl_editor-main" class="inline-list">
|
2012-11-13 21:37:24 +01:00
|
|
|
<dt><? echo _("Fade in: "); ?><span class='spl_cue_hint'>(ss.t)</span></dt>
|
2012-03-29 15:34:58 +02:00
|
|
|
<dd><span contenteditable="true" class="spl_text_input spl_main_fade_in">00</span></dd>
|
|
|
|
<dd class="edit-error"></dd>
|
2012-11-13 21:37:24 +01:00
|
|
|
<dt><? echo _("Fade out: "); ?><span class='spl_cue_hint'>(ss.t)</span></dt>
|
2012-04-13 21:49:16 +02:00
|
|
|
<dd><span contenteditable="true" class="spl_text_input spl_main_fade_out">00</span></dd>
|
2012-03-29 15:34:58 +02:00
|
|
|
<dd class="edit-error"></dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="" style="clear:both; float:none; width:100%;">
|
|
|
|
<ul id="spl_sortable">
|
2012-08-08 21:29:09 +02:00
|
|
|
<?php $this->contents = $contents;
|
|
|
|
echo $this->render('playlist/update.phtml') ?>
|
2012-03-29 15:34:58 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php else : ?>
|
2012-11-13 21:10:07 +01:00
|
|
|
<div><? echo _("No open playlist") ?></div>
|
2012-04-13 21:49:16 +02:00
|
|
|
<?php endif; ?>
|