diff options
author | friendica <info@friendica.com> | 2014-05-08 19:59:26 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-08 19:59:26 -0700 |
commit | 22b79207f9c30ce54d65e134303bd179ea21b377 (patch) | |
tree | 157f733bebbde8e5365461e770f6825f25eb30f9 /mod | |
parent | 4cf684a701fcf175bf2104bef66f91ac7549818f (diff) | |
download | volse-hubzilla-22b79207f9c30ce54d65e134303bd179ea21b377.tar.gz volse-hubzilla-22b79207f9c30ce54d65e134303bd179ea21b377.tar.bz2 volse-hubzilla-22b79207f9c30ce54d65e134303bd179ea21b377.zip |
event form hard-wired tinymce=on, made selectable
Diffstat (limited to 'mod')
-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( |