It would go in like this (following the example in step 2):
PHP Code:
public function index(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$status = $mysidia->user->getstatus();
$document->setAlign(new Align("center", "middle"));
$document->setTitle("Achievements");
$document->add(new Paragraph());
$document->add(new Comment("<h2> Unlocked </h2>"));
if($status->fullpantry == "unlocked"){
$document->add(new Comment("
<div class=\"s_panel sc_item\">
<img rel='tooltip' title='<em>Achievement Description<em>' src='InsertImageHere'/}>
<br/>
<b>Achievement Name</b>
<br/>
</div>", FALSE));
}
$document->add(new Paragraph());
$document->add(new Comment("<h2> Locked </h2>"));
if($status->fullpantry == "locked"){
$document->add(new Comment("
<div class=\"s_lockedpanel sc_item\">
<img rel='tooltip' title='<em>Own 10 or more adoptables to unlock<em>' src='InsertImageHere'/}>
<br/>
<b>???</b>
<br/>
</div>", FALSE));
}
if($status->OwnCertainAdopt == "locked"){
$document->add(new Comment("
<div class=\"s_lockedpanel sc_item\">
<img rel='tooltip' title='<em>Own InsertSpeciesHere to unlock<em>' src='IMAGE'/}>
<br/>
<b>???</b>
<br/>
</div>", FALSE));
}