[kronolith] Adding icons
Jan Schneider
jan at horde.org
Sat Jul 23 04:44:48 PDT 2005
Zitat von Arelowo Alao <aalao at ncmec.org>:
> Is their anyway to alter the Kronolith.php file to also add icons to the
> tabs. I think this is the function I need to alter
Try prefixing the tab title, e.g. _("Day") with the HTML code for the image.
> function tabs()
>
> {
>
> require_once 'Horde/UI/Tabs.php';
>
> require_once 'Horde/Variables.php';
>
> $tabs = &new Horde_UI_Tabs('view',
> Variables::getDefaultVariables());
>
> $tabs->preserve('timestamp', Kronolith::currentTimestamp());
>
>
>
> $tabs->addTab(_("Day"), Horde::applicationUrl('day.php'),
> 'day');
>
> $tabs->addTab(_("Work Week"),
> Horde::applicationUrl('workweek.php'), 'workweek');
>
> $tabs->addTab(_("Week"), Horde::applicationUrl('week.php'),
> 'week');
>
> $tabs->addTab(_("Month"), Horde::applicationUrl('month.php'),
> 'month');
>
>
>
> echo $tabs->render(basename($_SERVER['PHP_SELF']) == 'index.php'
> ? $GLOBALS['prefs']->getValue('defaultview') : str_replace('.php', '',
> basename($_SERVER['PHP_SELF'])));
>
> }
>
> --
> Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>
>
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the kronolith
mailing list