Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu improved #130

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Menu improved #130

wants to merge 3 commits into from

Conversation

Voomra
Copy link
Contributor

@Voomra Voomra commented Aug 10, 2013

Сделано несколько маленьких исправлений, которые позволяют создавать вложенные меню встроенными средствами.
(google) Made a few small patches that allow you to create nested menus built-in.

Example:

default menu:
  1) Home [link: ""; class: ""]
  2) New Menu [link: "#"; class: "nmenu"]
sub1 menu:
  1) Item 1 [link: ""; class: ""]
  2) Item 2 [link: "#"; class: "itm2"]
sub2 menu:
  1) s-Item 1 [link: ""; class: ""]
  2) s-Item 2 [link: ""; class: ""]
<ul id="menu">
    <?php
        Menu:get('', array('nmenu' => '<ul style="display: none;">'.
            Menu::getAsString('', array('itm2' => '<ul style="display: none;">'.
                Menu::getAsString('sub2').
            '</ul>')).
        '</ul>')) ?>
</ul>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant