add option to hide teachers name on courses about info page

pull/4067/head
Juan Cortizas Ponte 4 years ago
parent 4e11e5cac5
commit 450791e813
  1. 3
      main/install/configuration.dist.php
  2. 20
      main/template/default/course_home/about.tpl

@ -2010,6 +2010,9 @@ VALUES (21, 13, 'send_notification_at_a_specific_date', 'Send notification at a
// Overwrites the app/config/auth.conf.php settings
//$_configuration['extldap_config'] = ['host' => '', 'port' => ''];
// Option to hide the teachers info on courses about info page.
//$_configuration['hide_teachers_name_from_course_about_info'] = false;
// KEEP THIS AT THE END
// -------- Custom DB changes
// Add user activation by confirmation email

@ -1,14 +1,16 @@
<div id="about-course">
<div id="course-info-top">
<h2 class="session-title">{{ course.title }}</h2>
<div class="course-short">
<ul>
<li class="author">{{ "Professors"|get_lang }}</li>
{% for teacher in course.teachers %}
<li>{{ teacher.complete_name }} | </li>
{% endfor %}
</ul>
</div>
{% if not 'hide_teachers_name_from_course_about_info'|api_get_configuration_value %}
<div class="course-short">
<ul>
<li class="author">{{ "Professors"|get_lang }}</li>
{% for teacher in course.teachers %}
<li>{{ teacher.complete_name }} | </li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
{% set course_video = '' %}
@ -176,7 +178,7 @@
</div>
</div>
{% endif %}
{% if course.teachers %}
{% if course.teachers and not 'hide_teachers_name_from_course_about_info'|api_get_configuration_value %}
<div class="panel panel-default">
<div class="panel-body">
<div class="panel-teachers">

Loading…
Cancel
Save