--- /dev/null
+<?php
+
+$block_name = _("People you might know");
+
+/**
+ * $Id: friends.php 1019 2008-10-31 08:18:10Z duck $
+ *
+ * @package Folks
+ * @author Duck <duck@obala.net>
+ */
+class Horde_Block_Folks_know extends Horde_Block {
+
+ var $_app = 'folks';
+
+ /**
+ * The title to go in this block.
+ *
+ * @return string The title text.
+ */
+ function _title()
+ {
+ return _("People you might know");
+ }
+
+ /**
+ * The content to go in this block.
+ *
+ * @return string The content
+ */
+ function _content()
+ {
+ require_once dirname(__FILE__) . '/../base.php';
+ require_once FOLKS_BASE . '/lib/Friends.php';
+
+ $friends_driver = Folks_Friends::singleton();
+ $list = $friends_driver->getPossibleFriends(20);
+ if ($list instanceof PEAR_Error) {
+ return $list;
+ }
+
+ // Prepare actions
+ $actions = array(
+ array('url' => Horde::applicationUrl('edit/friends/add.php'),
+ 'id' => 'user',
+ 'name' => _("Add friend")),
+ array('url' => Horde::applicationUrl('user.php'),
+ 'id' => 'user',
+ 'name' => _("View profile")));
+ if ($GLOBALS['registry']->hasInterface('letter')) {
+ $actions[] = array('url' => $GLOBALS['registry']->callByPackage('letter', 'compose', ''),
+ 'id' => 'user_to',
+ 'name' => _("Send message"));
+ }
+
+ Horde::addScriptFile('stripe.js', 'horde', true);
+
+ ob_start();
+ require FOLKS_TEMPLATES . '/block/users.php';
+ return ob_get_clean();
+ }
+}
\ No newline at end of file