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( diff --git a/view/css/mod_events.css b/view/css/mod_events.css new file mode 100644 index 000000000..657eff082 --- /dev/null +++ b/view/css/mod_events.css @@ -0,0 +1,3 @@ +#event-desc-textarea, #event-location-textarea { + width: 400px; +} \ No newline at end of file diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl index da4dda82e..eaf3f74fe 100755 --- a/view/tpl/event_form.tpl +++ b/view/tpl/event_form.tpl @@ -36,6 +36,7 @@