* @category Widget
* @package GNU Social
* @author Max Shinn <trombonechamp@gmail.com>
- * @copyright 2010 Free Software Foundation, Inc.
+ * @copyright 2011 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
*/
switch ($cls)
{
case 'BioAction':
+ case 'NewresponseAction':
include_once $dir . '/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
break;
case 'ProfilefieldsAdminPanelAction':
include_once $dir . '/classes/GNUsocialProfileExtensionField.php';
include_once $dir . '/classes/GNUsocialProfileExtensionResponse.php';
include_once $dir . '/lib/profiletools.php';
+ include_once $dir . '/lib/noticetree.php';
return true;
}
{
$m->connect(':nickname/bio', array('action' => 'bio'));
$m->connect('admin/profilefields', array('action' => 'profilefieldsAdminPanel'));
+ $m->connect('notice/respond', array('action' => 'newresponse'));
return true;
}
$action->cssLink('/plugins/GNUsocialProfileExtensions/res/style.css');
}
+ function onEndShowScripts($action)
+ {
+ $action->script('plugins/GNUsocialProfileExtensions/js/profile.js');
+ }
+
function onEndAdminPanelNav($nav)
{
if (AdminPanelAction::canAdmin('profilefields')) {
_('The user\'s extended profile'), $nav->action->trimmed('action') == 'bio', 'nav_bio');
}
+ //Why the heck is this shoved into this plugin!?!? It deserves its own!
+ function onShowStreamNoticeList($notice, $action, &$pnl)
+ {
+ $pnl = new NoticeTree($notice, $action);
+ return false;
+ }
+
}