Move achievements on, but just a tad.

This commit is contained in:
Thomas Willingham 2014-09-02 02:34:04 +01:00
parent 393b3bb213
commit ab031664fa
2 changed files with 22 additions and 10 deletions

View file

@ -1,6 +1,9 @@
<?php <?php
function achievements_content(&$a) { function achievements_content(&$a) {
// This doesn't work, so
if (! is_developer())
return;
if(argc() > 1) if(argc() > 1)
$which = argv(1); $which = argv(1);
@ -28,6 +31,9 @@ function achievements_content(&$a) {
return; return;
} }
$newmembertext = t('Some blurb about what to do when you\'re new here');
// By default, all badges are false // By default, all badges are false
$contactbadge = false; $contactbadge = false;
$profilebadge = false; $profilebadge = false;
@ -70,15 +76,12 @@ function achievements_content(&$a) {
if($r) if($r)
$keywordsbadge = 1; $keywordsbadge = 1;
// FIXME - stick ths in a template, and make it look pretty. return replace_macros(get_markup_template("achievements.tpl"), array(
$o .= "Template not implemented"; '$newmembertext' => $newmembertext,
$o .= "If this is one, you get the profile badge" . $profilebadge . "<br>"; '$profilebadge' => $profilebadge,
$o .= "If this is one, you get the contact badge" . $contactbadge . "<br>"; '$contactbadge' => $contactbadge,
$o .= "If this is one you get the keywords badge" . $keywordsbadge . "<br>"; '$keywordsbadge' => $keywordsbadge,
$o .= "I haven't done the top level posts badge yet" . $toplevelpostsbadge . "<br>"; '$channelsbadge' => $channelsbadge
$o .= "I haven't done the number of channels badge yet" . $channelsbadge; ));
return $o;
} }

View file

@ -0,0 +1,9 @@
<div class="generic-content-wrapper">
<p>{{$newmembertext}}</p>
<div id="profile-badge" class="badges"><img src="images/smiley-thumbsup.gif"></div>
<div id="contact-badge" class="badges"><img src="images/smiley-thumbsup.gif"></div>
<div id="keywords-badge" class="badges"><img src="images/smiley-thumbsup.gif"></div>
<div id="channels-badge" class="badges"><img src="images/smiley-thumbsup.gif"></div>
</div>