This commit is contained in:
Thomas Willingham 2013-09-29 16:40:15 +01:00
parent 4f83a1c152
commit 9212fd0ecc
2 changed files with 17 additions and 9 deletions

View File

@ -1835,16 +1835,17 @@ function json_decode_plus($s) {
function design_tools() { function design_tools() {
// FIXME - this should be a template $channel = $channel = get_app()->get_channel();
$who = $channel['channel_address'];
$o = '<div class="widget design-tools">'; return replace_macros(get_markup_template('design_tools.tpl'), array(
$o .= '<h3>' . t('Design') . '</h3>'; '$title' => t('Design'),
$o .= '<a href="blocks">' . t('Blocks') . '</a>' . EOL; '$who' => $who,
$o .= '<a href="menu">' . t('Menus') . '</a>' . EOL; '$blocks' => t('Blocks'),
$o .= '<a href="layout">' . t('Layouts') . '</a>' . EOL; '$menus' => t('Menus'),
$o .= '<a href="webpages">' . t('Pages') . '</a>' . EOL; '$layout' => t('Layouts'),
$o .= '</div>'; '$pages' => t('Pages')
return $o; ));
} }

View File

@ -0,0 +1,7 @@
<div id="design-tools" class="widget design-tools">
<h3>{{$title}}</h3>
<li><a href="blocks/{{$who}}">{{$blocks}}</a></li>
<li><a href="menu">{{$menus}}</a></li>
<li><a href="layouts/{{$who}}">{{$layout}}</a></li>
<li><a href="webpages/{{$who}}">{{$pages}}</a></li>
</div>