layout()->content ?>
diff --git a/airtime_mvc/application/views/scripts/playlist/_playlist.phtml b/airtime_mvc/application/views/scripts/playlist/_playlist.phtml
index 086cf1c17..92937300d 100644
--- a/airtime_mvc/application/views/scripts/playlist/_playlist.phtml
+++ b/airtime_mvc/application/views/scripts/playlist/_playlist.phtml
@@ -6,15 +6,15 @@ if (isset($this->obj)) {
?>
obj)) : ?>
-
-
-
-
+
+
+
+
-
- escape($this->obj->getName()); ?>
+
@@ -25,23 +25,18 @@ if (isset($this->obj)) {
-
- escape($this->obj->getName()); ?>
+
+ escape($this->obj->getName()); ?>
- length; ?>
+ length; ?>
- obj)) : ?>
-
-
-
-
-
-
-
-
-
-
- ">
-
-
-
-
+
form; ?>
@@ -62,6 +57,11 @@ if (isset($this->obj)) {
contents = $contents;
echo $this->render('playlist/update.phtml') ?>
+
+
diff --git a/airtime_mvc/application/views/scripts/playlist/_smart-block.phtml b/airtime_mvc/application/views/scripts/playlist/_smart-block.phtml
index 63aa24155..f9b6e267d 100644
--- a/airtime_mvc/application/views/scripts/playlist/_smart-block.phtml
+++ b/airtime_mvc/application/views/scripts/playlist/_smart-block.phtml
@@ -4,41 +4,25 @@ if (isset($this->obj)) {
$count = count($contents);
}
?>
-
obj)) : ?>
-
-
-
-
+
+
+
-
-
+ - - unsavedName)) echo $this->unsavedName; - else echo $this->escape($this->obj->getName()); - ?> - -
-length; ?>
-
+
+
+
+
+
+
-
-
- form; ?>
-
-
-
- + + unsavedName)) echo $this->unsavedName; + else echo $this->escape($this->obj->getName()); + ?> + +
+length; ?>
+
-
+
-
- contents = $contents;
- echo $this->render('playlist/update.phtml') ?>
-
-
+ contents = $contents;
+ echo $this->render('playlist/update.phtml') ?>
+
+
diff --git a/airtime_mvc/application/views/scripts/playlist/playlist.phtml b/airtime_mvc/application/views/scripts/playlist/playlist.phtml
index 4970d6f13..8d8d0be4f 100644
--- a/airtime_mvc/application/views/scripts/playlist/playlist.phtml
+++ b/airtime_mvc/application/views/scripts/playlist/playlist.phtml
@@ -42,10 +42,10 @@ if (isset($this->obj)) {
+
+
-
- escape($this->obj->getName()); ?>
+
diff --git a/airtime_mvc/application/views/scripts/playlist/smart-block.phtml b/airtime_mvc/application/views/scripts/playlist/smart-block.phtml
index b97f5cf55..9ad40d990 100644
--- a/airtime_mvc/application/views/scripts/playlist/smart-block.phtml
+++ b/airtime_mvc/application/views/scripts/playlist/smart-block.phtml
@@ -39,7 +39,7 @@ if (isset($this->obj)) {
- escape($this->obj->getName()); ?>
+
+ escape($this->obj->getName()); ?>
- length; ?>
+ length; ?>
-
+
diff --git a/airtime_mvc/application/views/scripts/playlist/update.phtml b/airtime_mvc/application/views/scripts/playlist/update.phtml
index 0171efafa..c774f2efc 100644
--- a/airtime_mvc/application/views/scripts/playlist/update.phtml
+++ b/airtime_mvc/application/views/scripts/playlist/update.phtml
@@ -13,13 +13,13 @@ if ($item['type'] == 2) {
else if ($item['type'] == 1) {
$fileUrl = null;
}
-else if ($item['type'] == 0) {
- $audiofile = Application_Model_StoredFile::RecallById($item['item_id']);
- $fileUrl = $audiofile->getFileUrl();
+else if ($item['type'] == 0) {
+ $audiofile = Application_Model_StoredFile::RecallById($item['item_id']);
+ $fileUrl = $audiofile->getFileUrl();
}
if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {
- $nextAudiofile = Application_Model_StoredFile::RecallById($items[$i+1]['item_id']);
+ $nextAudiofile = Application_Model_StoredFile::RecallById($items[$i+1]['item_id']);
$nextFileUrl = $nextAudiofile->getFileUrl();
}
?>
@@ -79,7 +79,7 @@ if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {
'id' => $item["id"],
'cueIn' => $item['cuein'],
'cueOut' => $item['cueout'],
- 'cueInSec' => $item['cueInSec'],
+ 'cueInSec' => $item['cueInSec'],
'cueOutSec' => $item['cueOutSec'],
'uri' => $fileUrl,
'origLength' => $item['orig_length'])); ?>
@@ -99,18 +99,18 @@ if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {
'fadeOut' => $items[$i]['fadeout'],
'fadeIn' => $items[$i+1]['fadein'],
'item1Type' => $items[$i]['type'],
- 'cueIn1' => $items[$i]['cueInSec'],
+ 'cueIn1' => $items[$i]['cueInSec'],
'cueOut1' => $items[$i]['cueOutSec'],
'item1Url' => $fileUrl
);
- $item2 = array(
+ $item2 = array(
'item2Url' => $nextFileUrl,
- 'item2' => $items[$i+1]['id'],
- 'item2Type' => $items[$i+1]['type'],
- 'offset' => $items[$i]['trackSec'] - $items[$i+1]['trackoffset'],
- 'cueIn2' => $items[$i+1]['cueInSec'],
- 'cueOut2' => $items[$i+1]['cueOutSec']
+ 'item2' => $items[$i+1]['id'],
+ 'item2Type' => $items[$i+1]['type'],
+ 'offset' => $items[$i]['trackSec'] - $items[$i+1]['trackoffset'],
+ 'cueIn2' => $items[$i+1]['cueInSec'],
+ 'cueOut2' => $items[$i+1]['cueOutSec']
);
if (isset($nextFileUrl)) {
@@ -129,13 +129,10 @@ if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {
-
+
unsavedName)) echo $this->unsavedName;
@@ -47,7 +47,7 @@ if (isset($this->obj)) {
?>
- length; ?>
+ length; ?>
obj instanceof Application_Model_Block) {
- echo _("Empty smart block");
- } else {
- echo _("Empty playlist");
- }
+ echo _("Drag tracks here from your library to add them to the "
+ . ($this->obj instanceof Application_Model_Block ? "smart block" : "playlist"));
?>
-
+
diff --git a/airtime_mvc/application/views/scripts/show-builder/index.phtml b/airtime_mvc/application/views/scripts/show-builder/index.phtml
index a50a7c2d7..a9f051926 100644
--- a/airtime_mvc/application/views/scripts/show-builder/index.phtml
+++ b/airtime_mvc/application/views/scripts/show-builder/index.phtml
@@ -5,37 +5,32 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+csrf ?>
-
-
-
-
-
-