public function getfoaf()
 {
     $options = litepublisher::$options;
     $posts = tposts::i();
     $postscount = $posts->archivescount;
     $manager = litepublisher::$classes->commentmanager;
     $result = tfoaf::getparam('name', $this->nick);
     foreach (array('nick', 'dateOfBirth', 'gender', 'icqChatID', 'aimChatID', 'jabberID', 'msnChatID', 'yahooChatID', 'mbox') as $name) {
         $result .= tfoaf::getparam($name, $this->data[$name]);
     }
     $result .= '<foaf:img rdf:resource="' . tfoaf::escape($this->img) . '" />';
     $result .= tfoaf::getparam('homepage', litepublisher::$site->url . '/');
     $result .= '<foaf:weblog ' . 'dc:title="' . tfoaf::escape(litepublisher::$site->name) . '" ' . 'rdf:resource="' . tfoaf::escape(litepublisher::$site->url) . '/" />' . '<foaf:page>' . '<foaf:Document rdf:about="' . tfoaf::escape(litepublisher::$site->url . $this->url) . '">' . '<dc:title>' . tfoaf::escape(litepublisher::$site->name) . ' Profile</dc:title>' . '<dc:description>Full profile, including information such as interests and bio.</dc:description>' . '</foaf:Document>' . '</foaf:page>' . '<lj:journaltitle>' . tfoaf::escape(litepublisher::$site->name) . '</lj:journaltitle>' . '<lj:journalsubtitle>' . tfoaf::escape(litepublisher::$site->description) . '</lj:journalsubtitle>' . '<ya:blogActivity>' . '<ya:Posts>' . '<ya:feed ' . 'dc:type="application/rss+xml" ' . 'rdf:resource="' . tfoaf::escape(litepublisher::$site->url) . '/rss.xml" />' . "<ya:posted>{$postscount}</ya:posted>" . '</ya:Posts>' . '</ya:blogActivity>' . '<ya:blogActivity>' . '<ya:Comments>' . '<ya:feed ' . 'dc:type="application/rss+xml" ' . 'rdf:resource="' . tfoaf::escape(litepublisher::$site->url) . '/comments.xml"/>' . "<ya:posted>{$postscount}</ya:posted>" . "<ya:received>{$manager->count}</ya:received>" . '</ya:Comments>' . '</ya:blogActivity>';
     if ($this->bio != '') {
         $result .= '<ya:bio>' . tfoaf::escape($this->bio) . '</ya:bio>';
     }
     $result .= $this->GetFoafOpenid();
     $result .= $this->GetFoafCountry();
     $result .= $this->GetFoafInterests();
     return $result;
 }