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 +++++++++++---------- view/tpl/design_tools.tpl | 7 +++++++ 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 view/tpl/design_tools.tpl 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') + )); } diff --git a/view/tpl/design_tools.tpl b/view/tpl/design_tools.tpl new file mode 100644 index 000000000..eb082dc37 --- /dev/null +++ b/view/tpl/design_tools.tpl @@ -0,0 +1,7 @@ +
+

{{$title}}

+
  • {{$blocks}}
  • +
  • {{$menus}}
  • +
  • {{$layout}}
  • +
  • {{$pages}}
  • +
    -- cgit v1.2.3