}
}
- function display_user_html_compact_preview($username) {
+ function display_user_html_compact_preview($username, $title = false) {
global $gfwww;
require_once $gfwww.'include/user_profile.php';
</head>
<body>';
$compact = true;
- $html .= user_personal_information($user_obj, $compact);
+ $html .= user_personal_information($user_obj, $compact, $title);
$html .= '</body>
</html>';
// if want direct compact-preview rendering
case 'application/x-fusionforge-compact+html' : {
$params['content_type'] = 'text/html';
- $params['content'] = $this->display_user_html_compact_preview($username);
+ $title = _('Compact preview of local user');
+ $params['content'] = $this->display_user_html_compact_preview($username, $title);
break;
}
}
$username = getStringFromRequest('user');
-echo $pluginCompatPreview->display_user_html_compact_preview($username);
+$title = _('OSLC Compact preview of user');
+echo $pluginCompatPreview->display_user_html_compact_preview($username, $title);
// Local Variables:
// mode: php
* @param boolean $compact
* @return string HTML
*/
-function user_personal_information($user, $compact = false) {
+function user_personal_information($user, $compact = false, $title = false) {
$user_id = $user->getID();
if($compact) {
$html = '<table>';
+ if($title) {
+ $html .= '<tr>
+ <td>'. $title . '</td>
+ </tr>';
+ }
} else {
$html = '<table width="100%" cellpadding="2" cellspacing="2" border="0">';
}