webpage content-type -- needs cleaning up and a security check once all the important bits are in place.
This commit is contained in:
@@ -1009,9 +1009,16 @@ function status_editor($a,$x,$popup=false) {
|
||||
$geotag = (($x['allow_location']) ? replace_macros(get_markup_template('jot_geotag.tpl'), array()) : '');
|
||||
|
||||
$plaintext = true;
|
||||
|
||||
if(feature_enabled(local_user(),'richtext'))
|
||||
$plaintext = false;
|
||||
|
||||
if(intval($x['plaintext']))
|
||||
$plaintext = true;
|
||||
|
||||
if(intval($x['mimeselect']))
|
||||
$mimeselect = mimetype_select($x['profile_uid']);
|
||||
|
||||
$tpl = get_markup_template('jot-header.tpl');
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros($tpl, array(
|
||||
@@ -1079,6 +1086,7 @@ function status_editor($a,$x,$popup=false) {
|
||||
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
||||
'$lockstate' => $x['lockstate'],
|
||||
'$acl' => $x['acl'],
|
||||
'$mimeselect' => $mimeselect,
|
||||
'$showacl' => ((array_key_exists('showacl',$x)) ? $x['showacl'] : 'yes'),
|
||||
'$bang' => $x['bang'],
|
||||
'$profile_uid' => $x['profile_uid'],
|
||||
|
||||
Reference in New Issue
Block a user