register('postWidgetText', array( 'title' => __('Post widget text'), 'url' => 'plugin.php?p=postWidgetText', 'small-icon' => 'index.php?pf=postWidgetText/icon.png', 'large-icon' => 'index.php?pf=postWidgetText/icon-big.png', 'permissions' => $core->auth->check( 'usage,contentadmin', $core->blog->id ), 'active_cb' => array( 'postWidgetTextDashboard', 'active' ) )); } /** * Favorites selection. * * @param string $request Requested page * @param array $params Requested parameters */ public static function active($request, $params) { return $request == 'plugin.php' && isset($params['p']) && $params['p'] == 'postWidgetText'; } }