in the timeObjects data array.
This saves an extra API call for each object and also allows us to not
set a link if one is not desired.
'id' => $friend,
'start' => date('Y-m-d\TH:i:s', $born),
'end' => date('Y-m-d\TH:i:s', $born + 1),
- 'params' => array('user' => $friend));
+ 'params' => array('user' => $friend),
+ 'link' => Folks::getUrlFor('user', $friend, true));
}
return $objects;
$link = '';
$event_title = $this->getTitle();
- if (isset($this->external)) {
- $link = $registry->link($this->external . '/show', $this->external_params);
+ if (isset($this->external) && !empty($this->external_link)) {
+ $link = $this->external_link;
$link = Horde::linkTooltip(Horde::url($link), '', 'event-tentative', '', '', String::wrap($this->description));
} elseif (isset($this->eventID) && $this->hasPermission(PERMS_READ)) {
$link = Horde::linkTooltip($this->getViewUrl(array('datetime' => $datetime->strftime('%Y%m%d%H%M%S'), 'url' => $from_url), $full),
$this->external = $this->_api;
$this->external_params = $event['params'];
$this->external_icon = !empty($event['icon']) ? $event['icon'] : null;
+ $this->external_link = !empty($event['link']) ? $event['link'] : null;
$this->title = $event['title'];
$this->description = isset($event['description']) ? $event['description'] : '';
$this->start = $eventStart;
--- /dev/null
+<?php
+@define('KRONOLITH_BASE', dirname(__FILE__));
+include_once KRONOLITH_BASE . '/lib/base.php';
+include KRONOLITH_TEMPLATES . '/common-header.inc';
+include KRONOLITH_TEMPLATES . '/menu.inc';
+
+Kronolith_Imple::factory('TagAutoCompleter',
+ array('triggerId' => 'tags'));
+?>
+
+<input id="tags" name="tags" />
\ No newline at end of file