[horde] Collapsable menu and logo - patch
Oliver Kuhl
okuhl at netcologne.de
Wed Jul 27 08:15:00 PDT 2005
Hi,
sad there was no response till know. I simply added a screenshot - maybe
the patch could make it into the official source. ;-)
Regards,
Ollie.
Oliver Kuhl wrote:
> Hi,
>
> the icons for the collapsable menu are a bit in the way if you add a
> logo 140x40 pixels large as proposed in the settings. I simply moved the
> collapse-icon from the upper menu row down directly above the first
> menu-entry. Its now placed on the right - just take a look at it.
>
> Now the logo fits and collapsing still works. It looks much better I
> think, because now there is no collapse-icon "in" the logo. :-)
>
> Regards,
> Ollie.
>
>
> ------------------------------------------------------------------------
>
> Index: sidebar.inc
> ===================================================================
> RCS file: /home/cvs/netmailv3/templates/portal/sidebar.inc,v
> retrieving revision 1.1
> diff -u -r1.1 sidebar.inc
> --- sidebar.inc 14 Jul 2005 13:21:14 -0000 1.1
> +++ sidebar.inc 18 Jul 2005 08:29:45 -0000
> @@ -1,7 +1,6 @@
> <div id="expandedSidebar" style="overflow:hidden; padding:0; margin:0">
> <div id="menu" style="overflow:hidden; padding:0; margin:0">
> <?php if (!empty($conf['logo']['image']) || !Util::getFormData('mozbar')): ?>
> - <span style="float:left"><?php if (!$is_mozbar) echo Horde::link('#', _("Collapse Sidebar"), '', '', 'toggleMenuFrame(); return false;', _("Collapse Sidebar")) . Horde::img('hide_panel.png') . '</a>' ?></span>
> <span style="float:left"<?php if (empty($conf['logo']['image'])) echo ' id="themelogo"' ?>>
> <?php
> if (!empty($conf['logo']['image'])) {
> @@ -21,6 +20,7 @@
> <div class="clear"> </div>
> <?php endif; ?>
> </div>
> + <span style="float:right"><?php if (!$is_mozbar) echo Horde::link('#', _("Collapse Sidebar"), '', '', 'toggleMenuFrame(); return false;', _("Collapse Sidebar")) . Horde::img('hide_panel.png') . '</a>' ?></span>
> <div id="sidebarPanel">
> <?php $tree->renderTree() ?>
> </div>
> @@ -28,8 +28,8 @@
>
> <div id="hiddenSidebar">
> <div id="menu">
> - <?php echo Horde::link('#', _("Expand Sidebar"), '', '', 'toggleMenuFrame(); return false;', _("Expand Sidebar")) . Horde::img('show_panel.png') . '</a>' ?>
> </div>
> + <?php echo Horde::link('#', _("Expand Sidebar"), '', '', 'toggleMenuFrame(); return false;', _("Expand Sidebar")) . Horde::img('show_panel.png') . '</a>' ?>
> </div>
>
> <script language="Javascript" type="text/javascript">
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menu_collapse.png
Type: image/png
Size: 13915 bytes
Desc: not available
Url : http://lists.horde.org/archives/horde/attachments/20050727/21b1e336/menu_collapse-0001.png
More information about the horde
mailing list