From ab031664facfb640a8a6589fb9abe018549ad173 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Tue, 2 Sep 2014 02:34:04 +0100 Subject: Move achievements on, but just a tad. --- mod/achievements.php | 23 +++++++++++++---------- view/tpl/achievements.tpl | 9 +++++++++ 2 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 view/tpl/achievements.tpl diff --git a/mod/achievements.php b/mod/achievements.php index 1910def73..1d0018b08 100644 --- a/mod/achievements.php +++ b/mod/achievements.php @@ -1,6 +1,9 @@ 1) $which = argv(1); @@ -28,6 +31,9 @@ function achievements_content(&$a) { return; } + $newmembertext = t('Some blurb about what to do when you\'re new here'); + + // By default, all badges are false $contactbadge = false; $profilebadge = false; @@ -70,15 +76,12 @@ function achievements_content(&$a) { if($r) $keywordsbadge = 1; -// FIXME - stick ths in a template, and make it look pretty. - $o .= "Template not implemented"; - $o .= "If this is one, you get the profile badge" . $profilebadge . "
"; - $o .= "If this is one, you get the contact badge" . $contactbadge . "
"; - $o .= "If this is one you get the keywords badge" . $keywordsbadge . "
"; - $o .= "I haven't done the top level posts badge yet" . $toplevelpostsbadge . "
"; - $o .= "I haven't done the number of channels badge yet" . $channelsbadge; - - -return $o; + return replace_macros(get_markup_template("achievements.tpl"), array( + '$newmembertext' => $newmembertext, + '$profilebadge' => $profilebadge, + '$contactbadge' => $contactbadge, + '$keywordsbadge' => $keywordsbadge, + '$channelsbadge' => $channelsbadge +)); } diff --git a/view/tpl/achievements.tpl b/view/tpl/achievements.tpl new file mode 100644 index 000000000..67fde6211 --- /dev/null +++ b/view/tpl/achievements.tpl @@ -0,0 +1,9 @@ +
+

{{$newmembertext}}

+ +
+
+
+
+ +
-- cgit v1.2.3