My Mastery Tools
As you complete more destinations, you will earn more mastery tools which you will be able to use to help in your recovery.
Mastery tools you've earned so far:
2,
// 'Breathing Skill' => 2,
// 'Muscle Relaxation Skill' => 2,
// 'Positive Imagery Skill' => 2,
'Relaxation Exercises' => 2,
'Professional Help Goal Sheet' => 4,
'Triggers Log' => 5,
'Social Support Plan' => 6,
'Social Support Map' => 6
);
$filenames = array ('Relaxation Log' => 'relaxationLog.html',
// 'Breathing Skill' => 'breathing-1.html',
// 'Muscle Relaxation Skill' => 'muscle-1.html',
// 'Positive Imagery Skill' => 'imagery-1.html',
'Relaxation Exercises' => 'relaxationText.html',
'Professional Help Goal Sheet' => 'goalsheet.html',
'Triggers Log' => 'TriggersLog.pdf',
'Social Support Plan' => 'socialplan.html',
'Social Support Map' => 'socialmap.html'
);
$modnames = array(2 => 'relaxation',
3 => 'selftalk',
4 => 'selfhelp',
5 => 'triggers',
6 => 'socialsupport',
7 => 'unhelpful');
$notEarned = array();
echo '';
foreach ($modules as $item => $key)
{
if(percentComplete($key)>0)
{
if ($modnames[$key]=='triggers') {
echo '- '.$item.'
';
} else {
echo '- '.$item.'
';
}
}
else
{
array_push($notEarned, $item);
}
}
echo "
Mastery Tools yet to be earned:
";
if(empty($notEarned))
{
echo '- Congratulations! You have earned all Mastery Tools!
';
}
else
{
foreach ($notEarned as $noItem)
{
echo '- '.$noItem.'
';
}
}
?>