contents;
$isSmartBlock = ($this->obj instanceof Application_Model_Block);
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
if ($isSmartBlock && $this->showPoolCount) { ?>
poolCount) {
echo $this->poolCount;
echo ngettext(" track matches your search criteria.", " tracks match your search criteria.", $this->poolCount);
} else {
echo "No track match the search criteria";
}
?>
poolCount > 0) { ?>
obj->isStatic())) {
echo _("This is only a preview of possible content generated by the smart block based upon the above criteria.");
}
?>
isStatic();
$fileUrl = null;
} else if ($item['type'] == 1) {
$fileUrl = null;
} 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']);
$nextFileUrl = $nextAudiofile->getFileUrl();
}
?>
" unqid="">
" data-mime-type="">
">
" blocktype="">
" id="expand_block_">
" id="expand_block_">
" class="ui-icon ui-icon-closethick">
partial('playlist/set-cue.phtml', array(
'id' => $item["id"],
'cueIn' => $item['cuein'],
'cueOut' => $item['cueout'],
'cueInSec' => $item['cueInSec'],
'cueOutSec' => $item['cueOutSec'],
'uri' => $fileUrl,
'origLength' => $item['orig_length']
)); ?>
$items[$i]['id'],
'fadeOut' => $items[$i]['fadeout'],
'fadeIn' => $items[$i + 1]['fadein'],
'item1Type' => $items[$i]['type'],
'cueIn1' => $items[$i]['cueInSec'],
'cueOut1' => $items[$i]['cueOutSec'],
'item1Url' => $fileUrl
);
$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']
);
if (isset($nextFileUrl)) {
$vars = $vars + $item2;
}
echo $this->partial('playlist/set-fade.phtml', $vars);
?>
_info" class="smart-block-info expand-block-separate">
obj instanceof Application_Model_Block) {
if ($this->obj->isStatic()) {
echo _("Choose some search criteria above and click Generate to create this playlist.");
} else {
echo _("A track list will be generated when you schedule this smart block into a show.");
}
} else {
echo _("Drag tracks here from your library to add them to the playlist");
}
?>