aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-06 21:49:07 -0700
committerFriendika <info@friendika.com>2011-06-06 21:49:07 -0700
commitfcb4316c2943d881eeb4d77bb6e3e51815bb59d6 (patch)
tree4eac0c324a6c6cd320563189e1d67fd7fa03c963 /mod/events.php
parentbbc65f98328cd0a4732af5a52bec586a868255ba (diff)
downloadvolse-hubzilla-fcb4316c2943d881eeb4d77bb6e3e51815bb59d6.tar.gz
volse-hubzilla-fcb4316c2943d881eeb4d77bb6e3e51815bb59d6.tar.bz2
volse-hubzilla-fcb4316c2943d881eeb4d77bb6e3e51815bb59d6.zip
tinymce for event fields
Diffstat (limited to 'mod/events.php')
-rw-r--r--mod/events.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/mod/events.php b/mod/events.php
index da076313a..3888d6fe3 100644
--- a/mod/events.php
+++ b/mod/events.php
@@ -158,19 +158,23 @@ function events_content(&$a) {
}
if($mode === 'edit' || $mode === 'new') {
+ $htpl = get_markup_template('profed_head.tpl');
+ $a->page['htmlhead'] .= replace_macros($htpl,array('$baseurl' => $a->get_baseurl()));
+
$tpl = get_markup_template('event_form.tpl');
$year = datetime_convert('UTC', date_default_timezone_get(), 'now', 'Y');
-
+ $month = datetime_convert('UTC', date_default_timezone_get(), 'now', 'm');
+ $day = datetime_convert('UTC', date_default_timezone_get(), 'now', 'd');
$o .= replace_macros($tpl,array(
'$post' => $a->get_baseurl() . '/events',
'$e_text' => t('Event details'),
- '$s_text' => t('Starting date/time:'),
- '$s_dsel' => datesel('start',$year+5,$year,false,$year,0,0),
+ '$s_text' => t('Start: year-month-day hour:minute'),
+ '$s_dsel' => datesel('start',$year+5,$year,false,$year,$month,$day),
'$s_tsel' => timesel('start',0,0),
- '$f_text' => t('Finish date/time:'),
- '$f_dsel' => datesel('start',$year+5,$year,false,$year,0,0),
+ '$f_text' => t('Finish: year-month-day hour:minute'),
+ '$f_dsel' => datesel('start',$year+5,$year,false,$year,$month,$day),
'$f_tsel' => timesel('start',0,0),
'$d_text' => t('Description:'),
'$d_orig' => '',