From f85cba10eb3d976d715c7a80fe69fe15d9dc468c Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Dec 2013 15:27:46 -0800 Subject: notes widget --- include/widgets.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index 632f85436..2e8169bd7 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -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; +} -- cgit v1.2.3