diff options
author | root <root@bawker.net> | 2014-05-10 10:55:50 -0700 |
---|---|---|
committer | root <root@bawker.net> | 2014-05-10 10:55:50 -0700 |
commit | 80796c78f5326c670893476fe8e9024c30ebffcc (patch) | |
tree | 9be350288804ab8fa46e2ce10043c91e5c97672f /mod/events.php | |
parent | 711719ce0ce340fbcda7559bf20582e85e4b1e3d (diff) | |
parent | 481b4c21c9ab6e7e6df8f65ef97135fb5807d7fd (diff) | |
download | volse-hubzilla-80796c78f5326c670893476fe8e9024c30ebffcc.tar.gz volse-hubzilla-80796c78f5326c670893476fe8e9024c30ebffcc.tar.bz2 volse-hubzilla-80796c78f5326c670893476fe8e9024c30ebffcc.zip |
Merge branch 'master' of https://github.com/chriswinstead/red
Diffstat (limited to 'mod/events.php')
-rwxr-xr-x | mod/events.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mod/events.php b/mod/events.php index d243f61ba..8bf8c6ce1 100755 --- a/mod/events.php +++ b/mod/events.php @@ -158,8 +158,17 @@ function events_content(&$a) { } + $plaintext = true; + + if(feature_enabled(local_user(),'richtext')) + $plaintext = false; + + $htpl = get_markup_template('event_head.tpl'); - $a->page['htmlhead'] .= replace_macros($htpl,array('$baseurl' => $a->get_baseurl())); + $a->page['htmlhead'] .= replace_macros($htpl,array( + '$baseurl' => $a->get_baseurl(), + '$editselect' => (($plaintext) ? 'none' : 'textareas') + )); $o =""; // tabs @@ -400,7 +409,6 @@ function events_content(&$a) { if($orig_event['event_xchan']) $sh_checked .= ' disabled="disabled" '; - $tpl = get_markup_template('event_form.tpl'); $sdt = ((x($orig_event)) ? $orig_event['start'] : 'now'); $fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now'); @@ -439,6 +447,7 @@ function events_content(&$a) { 'deny_gid' => $channel['channel_deny_gid'] ); + $tpl = get_markup_template('event_form.tpl'); $o .= replace_macros($tpl,array( |