frio: first part for event template work

This commit is contained in:
rabuzarus 2016-06-12 18:23:10 +02:00
commit 0af572ffba
8 changed files with 537 additions and 3 deletions

View file

@ -67,9 +67,9 @@ function events_post(&$a) {
$action = ($event_id == '') ? 'new' : "event/" . $event_id;
$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
if(strcmp($finish,$start) < 0 && !$nofinish) {
if(strcmp($finish,$start) < 0 && !$nofinish) {
notice( t('Event can not end before it has started.') . EOL);
if(intval($_REQUEST['preview'])) {
if(intval($_REQUEST['preview'])) {
echo( t('Event can not end before it has started.'));
killme();
}
@ -462,6 +462,12 @@ function events_content(&$a) {
'$events' => $events,
// eignene
"today" => t("today"),
"month" => t("month"),
"week" => t("week"),
"day" => t("day"),
));