Page 1 of 1

Horizontal menu

Posted: Thu Sep 23, 2004 1:42 pm
by leen
Hello all,

I've created a patch for adding a horizontal menu capability to dhtmlmenu. This involves a small diff and an introduction of 2 files from phplayersmenu (down-arrow.png and layersmenu-horizontal_menu.ihtml). This does not break the current situation, but just adds an extra option to dhtmlmenu:

Code: Select all

{dhtmlmenu horizontal=1}
Without the 'horizontal' parameter a vertical menu is created.

Here's the diff: http://cc22149-a.groni1.gr.home.nl/~lee ... rmenu.diff.

Assuming phplayersmenu-3.2.0/, cmsmadesimple-0.6.3/, and hormenu.diff are in the same directory, apply with e.g.:

Code: Select all

cd cmsmadesimple-0.6.3
patch -p1 < ../hormenu.diff
cp -a ../phplayersmenu-3.2.0/menuimages/down-arrow.png phplayers/menuimages/
cp -a ../phplayersmenu-3.2.0/menuimages/layersmenu-horizontal_menu.ihtml phplayers/templates/
I really hope this can go into cvs ;).

Cheers,

Leen

Horizontal menu

Posted: Thu Sep 23, 2004 1:50 pm
by Ted
Thank you very much for the easy submission. It's in svn and works like a charm.

Horizontal menu

Posted: Thu Sep 23, 2004 2:42 pm
by leen
Gee, that was fast! Thanks. Hmm, looks like you forgot to copy arrow-down.png? ;)

BTW, would you be so kind to get rid of those executables that are not executables? ;) Just execute this in the trunk:

Code: Select all

find -perm +1 -type f | egrep -v '\.(sh|pl)$' | xargs -i svn propdel svn:executable '{}'
That finds files with the executable bit set, filters out perl and shell scripts, and removes the svn:executable property from the remaining files. I checked, the remaining files are not supposed to be executable.

Cheers,

Leen

Horizontal menu

Posted: Thu Sep 23, 2004 2:54 pm
by Ted
I've been using svn for a like a year now, and I still have a lot to learn. Thanks for that.

Horizontal menu

Posted: Thu Sep 23, 2004 3:08 pm
by leen
, so do I. First I tried to change the file permissions in the trunk with chmod, but 'svn status' showed no change. Then I did some RTFM, found out about the properties (again), and the rest was simple. ;P

Cheers,

Leen

Horizontal menu

Posted: Thu Sep 23, 2004 3:57 pm
by leen
I missed one file:

Code: Select all

svn propset svn:executable '' release-cleanup.sh
Cheers,

Leen

Horizontal menu

Posted: Mon Nov 08, 2004 8:07 am
by MV
Where or what is the style settings for the horizontal menu? Is it the same as the verticle menu in the stylesheet of Edit Template?

Horizontal menu

Posted: Tue Nov 09, 2004 8:38 am
by leen
MV wrote:Where or what is the style settings for the horizontal menu?
In the phplayers/layersmenu-cms.css stylesheet. The selectors applying to the horizontal menu are clearly recognizable. The other selectors are either for the vertical menu, or are common to both.

Cheers,

Leen