- $o = replace_macros($tpl, array(
- '$baseurl' => System::baseUrl(),
- '$tabs' => $tabs,
- '$title' => t('Events'),
- '$view' => t('View'),
- '$previous' => array(System::baseUrl()."/events/$prevyear/$prevmonth", t('Previous'),'',''),
- '$next' => array(System::baseUrl()."/events/$nextyear/$nextmonth", t('Next'),'',''),
- '$calendar' => cal($y,$m,$links, ' eventcal'),
-
- '$events' => $events,
-
- "today" => t("today"),
- "month" => t("month"),
- "week" => t("week"),
- "day" => t("day"),
- "list" => t("list"),
- ));
-
- if (x($_GET,'id')){ echo $o; killme(); }
+ $o = replace_macros($tpl, [
+ '$baseurl' => System::baseUrl(),
+ '$tabs' => $tabs,
+ '$title' => L10n::t('Events'),
+ '$view' => L10n::t('View'),
+ '$previous' => [System::baseUrl() . "/events/$prevyear/$prevmonth", L10n::t('Previous'), '', ''],
+ '$next' => [System::baseUrl() . "/events/$nextyear/$nextmonth", L10n::t('Next'), '', ''],
+ '$calendar' => Temporal::getCalendarTable($y, $m, $links, ' eventcal'),
+ '$events' => $events,
+ "today" => L10n::t("today"),
+ "month" => L10n::t("month"),
+ "week" => L10n::t("week"),
+ "day" => L10n::t("day"),
+ "list" => L10n::t("list"),
+ ]);
+
+ if (x($_GET, 'id')) {
+ echo $o;
+ killme();
+ }