From 9212fd0ecc4f740704279ea896a0105e48dc70fa Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sun, 29 Sep 2013 16:40:15 +0100 Subject: Issue #117 --- include/text.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index be5e2338d..afd46f396 100755 --- a/include/text.php +++ b/include/text.php @@ -1835,16 +1835,17 @@ function json_decode_plus($s) { function design_tools() { -// FIXME - this should be a template - - $o = '
'; - $o .= '

' . t('Design') . '

'; - $o .= '' . t('Blocks') . '' . EOL; - $o .= '' . t('Menus') . '' . EOL; - $o .= '' . t('Layouts') . '' . EOL; - $o .= '' . t('Pages') . '' . EOL; - $o .= '
'; - return $o; +$channel = $channel = get_app()->get_channel(); +$who = $channel['channel_address']; + +return replace_macros(get_markup_template('design_tools.tpl'), array( + '$title' => t('Design'), + '$who' => $who, + '$blocks' => t('Blocks'), + '$menus' => t('Menus'), + '$layout' => t('Layouts'), + '$pages' => t('Pages') + )); } -- cgit v1.2.3