smartgravity / grav-theme-bones

A Grav theme built with Foundation.
MIT License
28 stars 8 forks source link

Add "langswitcher" plugin if:enabled option to mobile menu #13

Closed benblee closed 8 years ago

benblee commented 8 years ago

Add "langswitcher" plugin if:enabled option to mobile menu

       <div class="off-canvas position-{{ theme_config.mobilemenu_position }}" id="offCanvas" data-off-canvas data-position="{{ theme_config.mobilemenu_position }}">
            <div class="row sg-center sg-spacer-small">
                <div class="sg-content">
                    {% set content = pages.find('/mobilemenu').content %}
                    {% if content %}
                        {{ content }}
                    {% endif %}
                    {% if config.plugins.langswitcher.enabled %}
                    <br />
                    {% include 'partials/langswitcher.html.twig' %}
                    {% endif %}
                </div>
            </div>
            <div id="mobile-navigation">
                {% block mobile_navigation %}
                {% include 'partials/navigation_mobile.html.twig' %}
                {% endblock %}
            </div>
        </div>