diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-05-01 15:45:42 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-05-01 15:45:42 +0200 |
commit | fa80a5c113582dc757de33199df610e0ef8503aa (patch) | |
tree | 2ed01ec5dbe3386e47312bcfa88dd30ccc4fafc1 /include | |
parent | 84d93cca6e2ac0b552a6f5c570fbcfce766200a1 (diff) | |
download | volse-hubzilla-fa80a5c113582dc757de33199df610e0ef8503aa.tar.gz volse-hubzilla-fa80a5c113582dc757de33199df610e0ef8503aa.tar.bz2 volse-hubzilla-fa80a5c113582dc757de33199df610e0ef8503aa.zip |
make weblink and attach button hideable and some minor fixes
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php index ba9d551a7..ea5be221f 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1138,6 +1138,14 @@ function status_editor($a, $x, $popup = false) { if(x($x, 'hide_location')) $geotag = $setloc = $clearloc = ''; + $weblink = t('Insert web link'); + if(x($x, 'hide_weblink')) + $weblink = ''; + + $writefiles = perm_is_allowed($x['profile_uid'], get_observer_hash(), 'write_storage'); + if(x($x, 'hide_attach')) + $writefiles = false; + $mimeselect = ''; if(array_key_exists('mimetype', $x) && $x['mimetype']) { if($x['mimetype'] != 'text/bbcode') @@ -1213,14 +1221,14 @@ function status_editor($a, $x, $popup = false) { '$pagetitle' => (x($x,'pagetitle') ? $x['pagetitle'] : ''), '$id_select' => $id_select, '$id_seltext' => t('Post as'), - '$writefiles' => perm_is_allowed($x['profile_uid'], get_observer_hash(), 'write_storage'), + '$writefiles' => $writefiles, '$bold' => t('Bold'), '$italic' => t('Italic'), '$underline' => t('Underline'), '$quote' => t('Quote'), '$code' => t('Code'), '$attach' => t('Attach file'), - '$weblink' => t('Insert web link'), + '$weblink' => $weblink, '$setloc' => $setloc, '$voting' => t('Toggle voting'), '$feature_voting' => $feature_voting, |