[horde] Another action for a click on a menu button
Mário Gamito
gamito at netual.pt
Wed Sep 15 06:50:13 PDT 2004
Hi,
For starters, sorry for the attachment.
The icon i want to click in *IMP* is the lock with "Password" written below.
I see nothing helpful in imp/templates/login/login.inc
I think that the structure of the menu is defined in horde/lib/Menu.php
in the code following my signature.
Strangely, the $html variable ends with an </a>, but i can't see the
opening <a href=....>
Any ideas ?
Warm Regards,
Mário Gamito
function createItem($url, $text, $icon = '', $icon_path = null, $target
= '', $onclick = null, $cell_class = null, $link_class = 'menuitem')
{
global $conf, $prefs;
$html = '<td align="center" nowrap="nowrap" valign="';
$html .= ($prefs->getValue('menu_view') == 'icon') ? 'middle' :
'bottom';
$html .= '"';
$html .= (!empty($cell_class)) ? " class=\"$cell_class\">" : '>';
$html .= Horde::link($url, $text, $link_class, $target, $onclick);
if (!empty($icon) && ($prefs->getValue('menu_view') == 'icon'
|| $prefs->getValue('menu_view') == 'both')) {
$html .= Horde::img($icon, "alt=\"$text\"" .
($prefs->getValue('menu_view') == 'icon' ? 'hspace="5" vspace="5"' :
''), $icon_path);
if ($prefs->getValue('menu_view') == 'both') {
$html .= '<br />';
}
}
if ($prefs->getValue('menu_view') != 'icon') {
$html .= $text;
}
$html .= "</a> </td>\n";
return $html;
(...)
function printItem($url, $text, $icon = '', $icon_path = null,
$target = '', $onclick = null, $cell_class = null, $link
_class = 'menuitem')
{
echo Menu::createItem($url, $text, $icon, $icon_path, $target,
$onclick, $cell_class, $link_class);
}
More information about the horde
mailing list