Skip to content

Commit

Permalink
save wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ahilles107 committed Mar 23, 2015
1 parent a9921ad commit a868d8e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $this->headLink( array( 'type' => 'text/css', 'href' => $this->baseUrl('/admin-s
<div class="clear"></div>

<?php echo $this->action( 'wizard-theme-settings', 'themes', 'admin', array( 'format' => 'adv', 'id' => $this->themeId ) ) ?>

<?php echo $this->action( 'wizard-theme-playlists', 'themes', 'admin', array('id' => $this->themeId ) ) ?>
<div class="themeSettingsTabs">

<?php echo $this->action( 'wizard-theme-template-settings', 'themes', 'admin', array( 'format' => 'adv', 'id' => $this->themeId ) ) ?>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
$translator = \Zend_Registry::get('container')->getService('translator');
?>
<div class="articleTypes">
<form id="" method="post" action="#">
<fieldset>
<legend><?php echo $translator->trans('Theme playlists', array(), 'themes') ?></legend>
<?php dump($this->theme, $this->themePlaylists); ?>
<ul>
<?php foreach($this->themePlaylists['list'] as $themePlaylist) { ?>
<li class="playlist">
<h4><span><?php echo $themePlaylist['@attributes']['name'] ?></span></h4>
<ul>
<li><?php echo $translator->trans('Max items', array(), 'themes') ?>: <?php echo $themePlaylist['@attributes']['maxItems'] ?></li>
<?php if (!empty($themePlaylist['@attributes']['notes'])){ ?>
<li><?php echo $translator->trans('Notes', array(), 'themes') ?>: <?php echo $themePlaylist['@attributes']['notes'] ?>
</li>
<?php } ?>
<?php if (count($themePlaylist['template']) > 0){ ?>
<ul>
<?php foreach($themePlaylist['template'] as $template) { ?>
<li><?php echo $template['@attributes']['file'] ?></li>
<?php } ?>
</ul>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
</fieldset>
</form>
</div>

0 comments on commit a868d8e

Please sign in to comment.