diff options
author | Sem <sembrestels@riseup.net> | 2012-08-10 14:31:17 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-10 14:31:17 +0200 |
commit | a27489bc198343d76376a6b16e4bcd81fd9a85ae (patch) | |
tree | 9274328c6d6a757d43d7e5931d7c6e7e7f61700e | |
parent | fd1af50b7497bd3313152c99dbafae9aa9d393ca (diff) | |
download | elgg-a27489bc198343d76376a6b16e4bcd81fd9a85ae.tar.gz elgg-a27489bc198343d76376a6b16e4bcd81fd9a85ae.tar.bz2 |
Added default options and replaced brief description by full description when fewer fields.
-rw-r--r-- | activate.php | 4 | ||||
-rw-r--r-- | views/default/forms/event_calendar/edit.php | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/activate.php b/activate.php new file mode 100644 index 000000000..3be14d287 --- /dev/null +++ b/activate.php @@ -0,0 +1,4 @@ +<?php + +elgg_set_plugin_setting('listing_format', 'full', 'event_calendar'); +elgg_set_plugin_setting('fewer_fields', 'yes', 'event_calendar');
\ No newline at end of file diff --git a/views/default/forms/event_calendar/edit.php b/views/default/forms/event_calendar/edit.php index 2ba744fc4..33849962c 100644 --- a/views/default/forms/event_calendar/edit.php +++ b/views/default/forms/event_calendar/edit.php @@ -87,10 +87,18 @@ $body .= elgg_view("input/text",array('name' => 'venue','class'=>'event-calendar $body .= '</p>'; $body .= '<p class="event-calendar-description">'.$prefix['venue'].elgg_echo('event_calendar:venue_description').'</p>'; -$body .= '<p><label>'.elgg_echo("event_calendar:brief_description_label").'</label>'; -$body .= elgg_view("input/text",array('name' => 'description','class'=>'event-calendar-medium-text','value'=>$brief_description)); -$body .= '</p>'; -$body .= '<p class="event-calendar-description">'.$prefix['brief_description'].elgg_echo('event_calendar:brief_description_description').'</p>'; +if ($event_calendar_fewer_fields != 'yes') { + $body .= '<p><label>'.elgg_echo("event_calendar:brief_description_label").'</label>'; + $body .= elgg_view("input/text",array('name' => 'description','class'=>'event-calendar-medium-text','value'=>$brief_description)); + $body .= '</p>'; + $body .= '<p class="event-calendar-description">'.$prefix['brief_description'].elgg_echo('event_calendar:brief_description_description').'</p>'; + +} else { + $body .= '<p><label>'.elgg_echo("event_calendar:long_description_label").'</label>'; + $body .= elgg_view("input/longtext",array('name' => 'long_description','class'=>'event-calendar-long-text','value'=>$long_description)); + $body .= '</p>'; + $body .= '<p class="event-calendar-description">'.$prefix['long_description'].elgg_echo('event_calendar:long_description_description').'</p>'; +} $body .= '<p><label>'.elgg_echo("event_calendar:event_tags_label").'</label>'; $body .= elgg_view("input/tags",array('name' => 'tags','class'=>'event-calendar-medium-text','value'=>$event_tags)); |