aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-09 18:54:50 -0800
committerfriendica <info@friendica.com>2013-12-09 18:54:50 -0800
commit251720bfd32541901b9e845651dbc037b34065e2 (patch)
tree89d4415f1c2340cf0a5b4fadd1b6d900cbe0e360 /include
parentd13f693f85b9528559130ed642e3128607e1967c (diff)
downloadvolse-hubzilla-251720bfd32541901b9e845651dbc037b34065e2.tar.gz
volse-hubzilla-251720bfd32541901b9e845651dbc037b34065e2.tar.bz2
volse-hubzilla-251720bfd32541901b9e845651dbc037b34065e2.zip
turn private notes into a feature
Diffstat (limited to 'include')
-rw-r--r--include/features.php1
-rw-r--r--include/widgets.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/features.php b/include/features.php
index c5ab95a34..05206106a 100644
--- a/include/features.php
+++ b/include/features.php
@@ -23,6 +23,7 @@ function get_features() {
array('content_expire', t('Content Expiration'), t('Remove posts/comments and/or private messages at a future time')),
array('multi_profiles', t('Multiple Profiles'), t('Ability to create multiple profiles')),
array('webpages', t('Web Pages'), t('Provide managed web pages on your channel')),
+ array('private_notes', t('Private Notes'), t('Enables a tool to store notes and reminders')),
array('prettyphoto', t('Enhanced Photo Albums'), t('Enable photo album with enhanced features')),
//FIXME - needs a description, but how the hell do we explain this to normals?
array('sendzid', t('Extended Identity Sharing'), t(' ')),
diff --git a/include/widgets.php b/include/widgets.php
index 2e8169bd7..3534c3978 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -140,6 +140,9 @@ function widget_follow($args) {
function widget_notes($arr) {
if(! local_user())
return '';
+ if(! feature_enabled(local_user(),'private_notes'))
+ return '';
+
$text = htmlspecialchars(get_pconfig(local_user(),'notes','text'));
$o = replace_macros(get_markup_template('notes.tpl'), array(