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