Jump to content

Recommended Posts

Благодаря данной разработке появится возможность создавать меню (в несколько уровней) всего за пару щелчков мышки. После установки модуля способ вывода меню станет похожий на построение дерева категорий.

 

Цена: 15$

 

Скрин:

post-347-0-31621800-1410536040_thumb.jpg

 

Установка:

Распаковать архив на сайт и пройти по ссылке http://ваш.сайт/install.php

 

Пример кода для вывода меню:

    <!-- Меню -->
    <ul id="menu">
    {function name="general_menu"}
        {foreach $pages as $p}
            {if $p->menu_id == 1}
            <li {if $page && $page->id == $p->id}class="selected"{/if}>
                <a data-page="{$p->id}" href="{$p->url}">{$p->name|escape}</a>
                {if $p->child}
                    {call name="general_menu" pages=$p->child assign="submenu"}
                    {if $submenu}<ul>{$submenu}</ul>{/if}
                {/if}
            </li>
            {/if}
        {/foreach}
    {/function}
    {general_menu pages=$pages}
    </ul>
    <!-- Меню (The End) -->
Edited by yr4ik
Link to post
Share on other sites
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...