turn private notes into a feature
This commit is contained in:
parent
d13f693f85
commit
251720bfd3
@ -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('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('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('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')),
|
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?
|
//FIXME - needs a description, but how the hell do we explain this to normals?
|
||||||
array('sendzid', t('Extended Identity Sharing'), t(' ')),
|
array('sendzid', t('Extended Identity Sharing'), t(' ')),
|
||||||
|
@ -140,6 +140,9 @@ function widget_follow($args) {
|
|||||||
function widget_notes($arr) {
|
function widget_notes($arr) {
|
||||||
if(! local_user())
|
if(! local_user())
|
||||||
return '';
|
return '';
|
||||||
|
if(! feature_enabled(local_user(),'private_notes'))
|
||||||
|
return '';
|
||||||
|
|
||||||
$text = htmlspecialchars(get_pconfig(local_user(),'notes','text'));
|
$text = htmlspecialchars(get_pconfig(local_user(),'notes','text'));
|
||||||
|
|
||||||
$o = replace_macros(get_markup_template('notes.tpl'), array(
|
$o = replace_macros(get_markup_template('notes.tpl'), array(
|
||||||
|
Reference in New Issue
Block a user