'var' => 'KronolithCore.attendeesAc'))
->attach();
+if ($conf['maps']['driver']) {
+ Kronolith::initEventMap($conf['maps']);
+}
+
Kronolith::header();
+
echo "<body class=\"kronolithAjax\">\n";
+
require KRONOLITH_TEMPLATES . '/index/index.inc';
Horde::includeScriptFiles();
Horde::outputInlineScript();
-/* Maps must be initialized after scripts are output, to avoid having them
- * included in the monolithic javascript file, which breaks loading the hordemap
- * dependencies. */
-if ($conf['maps']['driver']) {
- Kronolith::initEventMap($conf['maps']);
-}
-
echo "</body>\n</html>";
'markerImage' => (string)Horde_Themes::img('map/marker.png', 'horde'),
'markerBackground' => (string)Horde_Themes::img('map/marker-shadow.png', 'horde'),
'useMarkerLayer' => true,
- 'language' => $language);
+ 'language' => $language,
+ );
foreach ($params['providers'] as $layer) {
switch ($layer) {
break;
}
}
-
+ $params['jsuri'] = $GLOBALS['registry']->get('jsuri', 'horde') . '/hordemap/';
Horde::addScriptFile('hordemap/map.js', 'horde');
$js = 'HordeMap.initialize(' . Horde_Serialize::serialize($params, HORDE_SERIALIZE::JSON) . ');';
Horde::addinlineScript($js);