|
|
|
@ -1,56 +1,58 @@ |
|
|
|
|
{% if app.user.status != 5 %} <!-- main/template/default/course_home/activity.html.twig --> |
|
|
|
|
<div class="accordion accordion-b4" id="course-tools"> |
|
|
|
|
{% for block in blocks %} |
|
|
|
|
<div class="card"> |
|
|
|
|
<div class="card-header" id="heading-{{ block.class }}"> |
|
|
|
|
{% if block.title %} |
|
|
|
|
<h5 class="card-title"> |
|
|
|
|
<a class="{{ ( block.title == 'Authoring') ? ' ' : 'collapse' }}" role="button" data-toggle="collapse" data-target="#collapse-{{ block.class }}" aria-expanded="{{ ( block.title == 'Authoring') ? 'true' : 'false' }}" aria-controls="collapse-{{ block.class }}"> |
|
|
|
|
{{ block.title }} |
|
|
|
|
</a> |
|
|
|
|
</h5> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="collapse-{{ block.class }}" class="collapse {{ ( block.title == 'Authoring') ? 'show' : '' }}" aria-labelledby="heading-{{ block.class }}" data-parent="#course-tools"> |
|
|
|
|
<div class="card-body"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="card"> |
|
|
|
|
<div class="card-body"> |
|
|
|
|
{% if app.user.status != 5 %} <!-- main/template/default/course_home/activity.html.twig --> |
|
|
|
|
<div class="accordion accordion-b4" id="course-tools"> |
|
|
|
|
{% for block in blocks %} |
|
|
|
|
<div class="card"> |
|
|
|
|
<div class="card-header" id="heading-{{ block.class }}"> |
|
|
|
|
{% if block.title %} |
|
|
|
|
<h5 class="card-title"> |
|
|
|
|
<a class="{{ ( block.title == 'Authoring') ? ' ' : 'collapse' }}" role="button" data-toggle="collapse" data-target="#collapse-{{ block.class }}" aria-expanded="{{ ( block.title == 'Authoring') ? 'true' : 'false' }}" aria-controls="collapse-{{ block.class }}"> |
|
|
|
|
{{ block.title }} |
|
|
|
|
</a> |
|
|
|
|
</h5> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{% if 'homepage_view'|api_get_setting == 'activity' %} |
|
|
|
|
{% for item in block.content %} |
|
|
|
|
<div class="col-md-4 course-tool"> |
|
|
|
|
{{ item.extra|raw }} |
|
|
|
|
{{ item.visibility|raw }} |
|
|
|
|
{{ item.icon|raw }} |
|
|
|
|
{{ item.link|raw }} |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
<div id="collapse-{{ block.class }}" class="collapse {{ ( block.title == 'Authoring') ? 'show' : '' }}" aria-labelledby="heading-{{ block.class }}" data-parent="#course-tools"> |
|
|
|
|
<div class="card-body"> |
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
|
|
{% if 'homepage_view'|api_get_setting == 'activity_big' %} |
|
|
|
|
{% for item in block.content %} |
|
|
|
|
<div class="col-6 col-md-2 "> |
|
|
|
|
<div class="tools mt-3 mb-3 p-2"> |
|
|
|
|
<div class="big_icon"> |
|
|
|
|
{{ item.tool.image|raw }} |
|
|
|
|
</div> |
|
|
|
|
<div class="content pt-2 pb-2"> |
|
|
|
|
{{ item.extra|raw }} |
|
|
|
|
{{ item.link|raw }} |
|
|
|
|
<div class="view"> |
|
|
|
|
{% if 'homepage_view'|api_get_setting == 'activity' %} |
|
|
|
|
{% for item in block.content %} |
|
|
|
|
<div class="col-md-4 course-tool"> |
|
|
|
|
{{ item.extra|raw }} |
|
|
|
|
{{ item.visibility|raw }} |
|
|
|
|
{{ item.icon|raw }} |
|
|
|
|
{{ item.link|raw }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if 'homepage_view'|api_get_setting == 'activity_big' %} |
|
|
|
|
{% for item in block.content %} |
|
|
|
|
<div class="col-6 col-md-2 "> |
|
|
|
|
<div class="tools mt-3 mb-3 p-2"> |
|
|
|
|
<div class="big_icon"> |
|
|
|
|
{{ item.tool.image|raw }} |
|
|
|
|
</div> |
|
|
|
|
<div class="content pt-2 pb-2"> |
|
|
|
|
{{ item.extra|raw }} |
|
|
|
|
{{ item.link|raw }} |
|
|
|
|
<div class="view"> |
|
|
|
|
{{ item.visibility|raw }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
</div> |
|
|
|
|
{% else %} |
|
|
|
|
<div class="row"> |
|
|
|
|
{% for block in blocks %} |
|
|
|
@ -74,4 +76,6 @@ |
|
|
|
|
{% endif %} |
|
|
|
|
{% endfor %} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |