Ok, so I got it working. Cludged a little of
the code from here together with some of Kyttias' code.
PHP Code:
$profile = $mysidia->user->getprofile();
$owned = new OwnedAdoptable($profile->getFavpetID());
$profile->getFavpetID();
$Name = $owned->getName();
$Type = $owned->getType();
$texta = new Paragraph;
$texta->add(new Comment("
<br>
<img src='{$owned->getImage()}'>
<br>
{$Name} the {$Type}
<br>
<a href='{$mysidia->path->getAbsolute()}myadopts/manage/{$owned->getAdoptID()}'>View</a> | <a href='{$mysidia->path->getAbsolute()}account/activepet'>Change</a>
"));
$moduleContainer->add($texta);