social_course-8.x-2.11/templates/block--course-navigation.html.twig
templates/block--course-navigation.html.twig
{%
set classes = [
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
card ? 'card brand-border-radius' : '',
'course__navigation',
]
%}
{%
set title_classes = [
card ? 'card__title' : 'block-title',
]
%}
{{ attach_library('social_course/social_course_nav') }}
{% if not bare %}
<section{{ attributes.addClass(classes) }}>
{{ title_prefix }}
<header{{ title_attributes.addClass('complementary-title') }}>
<a class="course_nav-title" href="{{ course_url }}" title="{{ 'Go to the course section'|t }}">
<span class="icon">
<svg class="icon-small icon-nav-group" aria-hidden="true">
<title>{{ 'Go to the course section'|t }}</title>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-navigate_before"></use>
</svg>
</span>
{% trans %}Course information{% endtrans %}
</a>
<span class="course_dividing-line">|</span>
<a href="#" class="course_nav-toggle is-active">
{% trans %}Navigate{% endtrans %}
<svg class="icon-small" aria-hidden="true">
<title>{{ 'Course information'|t }}</title>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-arrow_drop_down"></use>
</svg>
</a>
</header>
{{ title_suffix }}
{% endif %}
{% block content %}
{{ content }}
{% endblock %}
{% if not bare %}
</section>
{% endif %}
