SAAS-1158: Station podcast on Radio Page design implementation
added pagination to the station rss episodes list
This commit is contained in:
parent
4c3e05d5f0
commit
ea9f0c8929
3 changed files with 93 additions and 42 deletions
|
@ -64,12 +64,15 @@ class IndexController extends Zend_Controller_Action
|
|||
$episodes[$e]["CcFiles"]["length"] = $length[0];
|
||||
}
|
||||
|
||||
$this->view->episodes = json_encode($episodes);
|
||||
$episodePages = array_chunk($episodes, 10);
|
||||
|
||||
$this->view->episodes = json_encode($episodePages, JSON_FORCE_OBJECT);
|
||||
$this->view->displayRssTab = (!Application_Model_Preference::getStationPodcastPrivacy());
|
||||
|
||||
$stationPodcast = PodcastQuery::create()->findOneByDbId($stationPodcastId);
|
||||
$url = $stationPodcast->getDbUrl();
|
||||
$this->view->stationPodcastRssUrl = $url;
|
||||
|
||||
}
|
||||
|
||||
public function mainAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue