Пример #1
0
    static function html($obj)
    {
        $from = new \mixi\profile\obj($obj->from);
        try {
            $from->load();
            $url = $from->url();
            return <<<ENDLINE
<p><img src='{$from->profile_picture1}' alt='{$from->nickname}'s picture'><br><a href="{$url}">{$from->nickname}</a><br>{$obj->message_order} ({$obj->datetime})<br><a href='mailto:{$obj->from}@dsmob.com'>Contact Writer</a></p>
<div>{$obj->contents}</div>
ENDLINE;
        } catch (\Exception $e) {
            return "<p>Someone posted a message here but their profile is not yet available.  They were probably deleted.  You can check here: show_friend.pl?id={$obj->from}&from=navi</p> <div>{$obj->contents}</div>";
        }
    }