diff --git a/newscoop/application/modules/admin/controllers/ThemesController.php b/newscoop/application/modules/admin/controllers/ThemesController.php index c00e79f41d..165f77835d 100644 --- a/newscoop/application/modules/admin/controllers/ThemesController.php +++ b/newscoop/application/modules/admin/controllers/ThemesController.php @@ -311,6 +311,16 @@ public function wizardThemeSettingsAction() $this->view->themeForm = $themeForm; } + public function wizardThemePlaylistsAction() + { + $playlistsService = \Zend_Registry::get('container')->getService('playlists'); + $theme = $this->getThemeService()->findById($this->_request->getParam('id')); + $path = __DIR__.'/../../../../themes/'.$theme->getPath().'theme.xml'; + + $this->view->themePlaylists = $playlistsService->loadThemePlaylists($path); + $this->view->theme = $theme; + } + /** * see Admin_ThemesController::outputEditAction() */ diff --git a/newscoop/application/modules/admin/views/scripts/themes/advanced-theme-settings.phtml b/newscoop/application/modules/admin/views/scripts/themes/advanced-theme-settings.phtml index db3075b404..3cea320944 100644 --- a/newscoop/application/modules/admin/views/scripts/themes/advanced-theme-settings.phtml +++ b/newscoop/application/modules/admin/views/scripts/themes/advanced-theme-settings.phtml @@ -13,7 +13,7 @@ $this->headLink( array( 'type' => 'text/css', 'href' => $this->baseUrl('/admin-s
action( 'wizard-theme-settings', 'themes', 'admin', array( 'format' => 'adv', 'id' => $this->themeId ) ) ?> - + action( 'wizard-theme-playlists', 'themes', 'admin', array('id' => $this->themeId ) ) ?>