chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Resources/views/LearnPath/menubar.html.twig

Summary

Maintainability
Test Coverage
{% autoescape false %}
    {% if navigation_in_the_middle %}
        <style>
            .c-menu-left {
                top: 50% !important;
            }
            .menu-button a {
                text-underline: none !important;
            }
        </style>
    {% endif %}
    <nav id="btn-menu-float" class="c-menu-{{ menu_location }}">
        <div class="circle {{ show_toolbar_by_default == 1 ? 'open' : '' }}">
            {% if show_left_column == 1 %}
                {% set label = "Collapse" | trans %}
                {% set icon_expand = "arrow-collapse-horizontal" %}
                {% if lp_mode == 'embedframe' %}
                    {% set label = "Expand" | trans %}
                    {% set icon_expand = "arrow-expand-horizontal" %}
                {% endif %}
                <button type="button"
                   id="lp-view-expand-toggle"
                   class="icon-toolbar expand"
                   role="button"
                   title="{{ label }}"
                >
                    <i class="mdi-{{ icon_expand }} mdi" aria-hidden="true"></i>
                </button>
            {% endif %}
            <a id="home-course"
               title="{{ 'Home'|trans }}"
               href="{{ button_home_url }}"
               class="icon-toolbar" target="_self"
               onclick="javascript: window.parent.API.save_asset();">
                <i class="mdi-home mdi" aria-hidden="true"></i>
            </a>
            {{ navigation_bar }}
        </div>
        <button title="{{ 'Options'|trans }}" class="menu-button icons" type="button">
            <i class="mdi-menu mdi" aria-hidden="true"></i>
        </button>
    </nav>
{% endautoescape %}