notes widget

This commit is contained in:
friendica
2013-12-09 15:27:46 -08:00
parent b5f73d01c5
commit f85cba10eb
5 changed files with 52 additions and 2 deletions

View File

@@ -135,3 +135,17 @@ function widget_follow($args) {
));
}
function widget_notes($arr) {
if(! local_user())
return '';
$text = htmlspecialchars(get_pconfig(local_user(),'notes','text'));
$o = replace_macros(get_markup_template('notes.tpl'), array(
'$banner' => t('Notes'),
'$text' => $text,
'$save' => t('Save'),
));
return $o;
}