Modified smartblock form to allow preview of tracks meeting criteria for dynamic smartblocks
This commit is contained in:
parent
6bca9c8a6d
commit
6bdb570338
4 changed files with 17 additions and 8 deletions
|
@ -1,9 +1,12 @@
|
|||
<?php
|
||||
$items = $this->contents;
|
||||
$isStaticSmartBlock = ($this->obj instanceof Application_Model_Block && $this->obj->isStatic());
|
||||
$isSmartBlock = ($this->obj instanceof Application_Model_Block);
|
||||
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
|
||||
if (count($items) && ($isStaticSmartBlock || $isPlaylist)) : ?>
|
||||
if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
|
||||
<?php $i = 0; ?>
|
||||
<?php if (!($this->obj->isStatic())) {
|
||||
echo _("</br>This is only a preview of possible content generated by the smart block based upon the above criteria.");}
|
||||
?>
|
||||
<?php foreach($items as $item) :
|
||||
$staticBlock = null;
|
||||
$nextFileUrl = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue