aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-09 15:27:46 -0800
committerfriendica <info@friendica.com>2013-12-09 15:27:46 -0800
commitf85cba10eb3d976d715c7a80fe69fe15d9dc468c (patch)
tree45280620e820e72a9a1876fada5333f4d8b5d35c /include
parentb5f73d01c57bce1758eb7abd3ede327218be5404 (diff)
downloadvolse-hubzilla-f85cba10eb3d976d715c7a80fe69fe15d9dc468c.tar.gz
volse-hubzilla-f85cba10eb3d976d715c7a80fe69fe15d9dc468c.tar.bz2
volse-hubzilla-f85cba10eb3d976d715c7a80fe69fe15d9dc468c.zip
notes widget
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php14
1 files changed, 14 insertions, 0 deletions
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;
+}