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 // Overwrites the app/config/auth.conf.php settings
//$_configuration['extldap_config'] = ['host' => '', 'port' => '']; //$_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 // KEEP THIS AT THE END
// -------- Custom DB changes // -------- Custom DB changes
// Add user activation by confirmation email // Add user activation by confirmation email

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

Loading…
Cancel
Save