Add setting "hide_course_catalog_welcome" BT#16096

To hide welcome message
pull/2999/head
Julio Montoya 6 years ago
parent d3c4496cc9
commit 6559b30935
  1. 3
      main/install/configuration.dist.php
  2. 17
      main/template/default/layout/welcome_to_course.tpl

@ -1312,6 +1312,9 @@ requires extension "php-soap" sudo apt-get install php-soap
// Show full lp item title
// $_configuration['show_full_lp_item_title_in_edition'] = false;
// Hide course catalog welcome message
//$_configuration['hide_course_catalog_welcome'] = true;
// KEEP THIS AT THE END
// -------- Custom DB changes
// Add user activation by confirmation email

@ -4,14 +4,15 @@
{% if count_courses == 0 %}
{{ "PleaseAllowUsALittleTimeToSubscribeYouToOneOfOurCourses"|get_lang }}
{% else %}
{% if "allow_students_to_browse_courses"|api_get_setting == 'true' %}
{{ "GoAheadAndBrowseOurCourseCatalogXOnceRegisteredYouWillSeeTheCourseHereX"|get_lang|format(course_catalog_link, course_list_link) }}
<a class="btn btn-primary btn-large" href="{{ course_catalog_url }}">
{{ "CourseCatalog"|get_lang }}
</a>
{% else %}
{{ "PleaseAllowUsALittleTimeToSubscribeYouToOneOfOurCourses"|get_lang }}
{% if not 'hide_course_catalog_welcome'|api_get_configuration_value %}
{% if "allow_students_to_browse_courses"|api_get_setting == 'true' %}
{{ "GoAheadAndBrowseOurCourseCatalogXOnceRegisteredYouWillSeeTheCourseHereX"|get_lang|format(course_catalog_link, course_list_link) }}
<a class="btn btn-primary btn-large" href="{{ course_catalog_url }}">
{{ "CourseCatalog"|get_lang }}
</a>
{% else %}
{{ "PleaseAllowUsALittleTimeToSubscribeYouToOneOfOurCourses"|get_lang }}
{% endif %}
{% endif %}
{% endif %}
</div>
Loading…
Cancel
Save