[kronolith] hover time suggestion

Payton payton at repligen.com
Thu Dec 18 05:45:49 PST 2003


Alright. I added it to the shared calendar section as well. Since there 
aren't already tooltips (that I can see) for tasks and meetings, I'm not 
sure how to set it for those. 
-Payton

On Wed, 17 Dec 2003, Jan Schneider wrote:

> Zitat von Payton <payton at repligen.com>:
> 
> > I'm not the best at tweaking horde code, but here is a patch to perform
> > what I suggested. It modifies the file kronolith/lib/Driver.php.
> 
> That looks good, but you should also include the time into the events from
> the other sources.
> 
> Jan.
> 
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
> 
-------------- next part --------------
*** Driver.php	Thu Dec 18 08:41:41 2003
--- Driver.php.modified	Thu Dec 18 08:41:27 2003
*************** class Kronolith_Event {
*** 1270,1282 ****
                  $url = Util::addParameter($url, 'remoteCal=' . $this->remoteCal);
                  $url = Util::addParameter($url, 'timestamp=' . $timestamp);
                  $url = Horde::applicationUrl($url);
!                 $link .= Horde::linkTooltip($url, $this->getTitle(), 'event', '', '', $this->description);
              } elseif (isset($this->eventID)) {
                  $url = Util::addParameter('viewevent.php', 'eventID=' . $this->eventID);
                  $url = Util::addParameter($url, 'calendar=' . $this->getCalendar());
                  $url = Util::addParameter($url, 'timestamp=' . $timestamp);
                  $url = Horde::applicationUrl($url);
!                 $link .= Horde::linkTooltip($url, $this->title, 'event', '', '', $this->description);
              } elseif (isset($this->taskID)) {
                  $link .= Horde::link(Horde::url($GLOBALS['registry']->link('tasks/show', array('task' => $this->taskID, 'tasklist' => $this->tasklistID))), $this->title, 'event');
              } elseif (isset($this->meetingID)) {
--- 1270,1283 ----
                  $url = Util::addParameter($url, 'remoteCal=' . $this->remoteCal);
                  $url = Util::addParameter($url, 'timestamp=' . $timestamp);
                  $url = Horde::applicationUrl($url);
! 		$link .= Horde::linkTooltip($url, $this->getTitle(), 'event', '', '', $event_time.($this->description?' : '.$this->description:''));
              } elseif (isset($this->eventID)) {
                  $url = Util::addParameter('viewevent.php', 'eventID=' . $this->eventID);
                  $url = Util::addParameter($url, 'calendar=' . $this->getCalendar());
                  $url = Util::addParameter($url, 'timestamp=' . $timestamp);
                  $url = Horde::applicationUrl($url);
! 		$event_time = date($prefs->getValue('twentyFour') ? ' G:i' : ' g:i a', $this->getStartTimestamp());
!                 $link .= Horde::linkTooltip($url, $this->title, 'event', '', '', $event_time.($this->description?' : '.$this->description:''));
              } elseif (isset($this->taskID)) {
                  $link .= Horde::link(Horde::url($GLOBALS['registry']->link('tasks/show', array('task' => $this->taskID, 'tasklist' => $this->tasklistID))), $this->title, 'event');
              } elseif (isset($this->meetingID)) {


More information about the kronolith mailing list