Skip to content

vincent-chapron/WidgetMenuBundle

 
 

Repository files navigation

Victoire Menu Bundle

Need to add a menu in a victoire website ? Get this listing bundle and so on

First you need to have a valid Symfony2 Victoire edition. Then you just have to run the following composer command :

php composer.phar require friendsofvictoire/menu-widget

Do not forget to add the bundle in your AppKernel !

    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                ...
                new Victoire\Widget\MenuBundle\VictoireWidgetMenuBundle(),
            );

            return $bundles;
        }
    }

You can then use this widget menu in any web site. To get a full responsive menu, you can add these lines in your layout :

<header id="header">
    <nav class="container">
        <div id="header-logo" class="vic-mini-slot">
            {{ cms_slot_widgets('header_logo') }}
        </div>

        <button id="header-links-list-trigger" class="hidden-md hidden-lg"><i class="fa fa-bars"></i></button>

        <div id="header-linkList" class="vic-mini-slot">
            {{ cms_slot_widgets('header_nav') }}
        </div>
    </nav>
</header>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 45.0%
  • HTML 20.1%
  • JavaScript 19.3%
  • CSS 15.6%