diff options
author | hubzilla <git@macgirvin.com> | 2016-08-14 21:24:24 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 21:24:24 +1000 |
commit | d1cb925b5902e01eb1580921260faf3362279249 (patch) | |
tree | 36b38379936da4c70d300443fb8176e2fe48ec50 /include/conversation.php | |
parent | 993b182f811a6e7f3287c9554b00abd72517954d (diff) | |
parent | 229cc2ac431cdcef80cc45a42178fe7a1e4233e4 (diff) | |
download | volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.tar.gz volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.tar.bz2 volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.zip |
Merge pull request #482 from anaqreon/nocomment
Added an optional post editor button to toggle comments
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index b53498d20..7d1473fe2 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1121,6 +1121,10 @@ function status_editor($a, $x, $popup = false) { $feature_voting = feature_enabled($x['profile_uid'], 'consensus_tools'); if(x($x, 'hide_voting')) $feature_voting = false; + + $feature_nocomment = feature_enabled($x['profile_uid'], 'disable_comments'); + if(x($x, 'disable_comments')) + $feature_nocomment = false; $feature_expire = ((feature_enabled($x['profile_uid'], 'content_expire') && (! $webpage)) ? true : false); if(x($x, 'hide_expire')) @@ -1190,6 +1194,8 @@ function status_editor($a, $x, $popup = false) { '$modalerrorlist' => t('Error getting album list'), '$modalerrorlink' => t('Error getting photo link'), '$modalerroralbum' => t('Error getting album'), + '$nocomment_enabled' => t('Comments enabled'), + '$nocomment_disabled' => t('Comments disabled'), )); $tpl = get_markup_template('jot.tpl'); @@ -1239,6 +1245,10 @@ function status_editor($a, $x, $popup = false) { '$voting' => t('Toggle voting'), '$feature_voting' => $feature_voting, '$consensus' => 0, + '$nocommenttitle' => t('Disable comments'), + '$nocommenttitlesub' => t('Toggle comments'), + '$feature_nocomment' => $feature_nocomment, + '$nocomment' => 0, '$clearloc' => $clearloc, '$title' => ((x($x, 'title')) ? htmlspecialchars($x['title'], ENT_COMPAT,'UTF-8') : ''), '$placeholdertitle' => ((x($x, 'placeholdertitle')) ? $x['placeholdertitle'] : t('Title (optional)')), |