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 ) ) ?>
action( 'wizard-theme-template-settings', 'themes', 'admin', array( 'format' => 'adv', 'id' => $this->themeId ) ) ?> diff --git a/newscoop/application/modules/admin/views/scripts/themes/wizard-theme-playlists.phtml b/newscoop/application/modules/admin/views/scripts/themes/wizard-theme-playlists.phtml new file mode 100644 index 0000000000..8a1d2325f6 --- /dev/null +++ b/newscoop/application/modules/admin/views/scripts/themes/wizard-theme-playlists.phtml @@ -0,0 +1,32 @@ +getService('translator'); +?> +
+
+
+ trans('Theme playlists', array(), 'themes') ?> + theme, $this->themePlaylists); ?> +
    + themePlaylists['list'] as $themePlaylist) { ?> +
  • +

    +
      +
    • trans('Max items', array(), 'themes') ?>:
    • + +
    • trans('Notes', array(), 'themes') ?>: +
    • + + 0){ ?> +
        + +
      • + +
      + +
    +
  • + +
+
+
+
\ No newline at end of file