Merge pull request #427 from AngelFQC/9029

Hide the Logout button - refs BT#9029
1.9.x
Yannick Warnier 10 years ago
commit 9797743131
  1. 6
      main/inc/lib/template.lib.php
  2. 2
      main/install/configuration.dist.php
  3. 2
      main/template/default/layout/menu.tpl

@ -737,7 +737,11 @@ class Template
//Preparing values for the menu
//Logout link
$this->assign('logout_link', api_get_path(WEB_PATH).'index.php?logout=logout&uid='.api_get_user_id());
if (isset($_configuration['hide_logout_boton']) && $_configuration['hide_logout_boton'] == false) {
$this->assign('logout_link', api_get_path(WEB_PATH).'index.php?logout=logout&uid='.api_get_user_id());
} else {
$this->assign('logout_link', null);
}
//Profile link
if (api_get_setting('allow_social_tool') == 'true') {

@ -249,3 +249,5 @@ $_configuration['system_stable'] = NEW_VERSION_STABLE;
//$_configuration['default_template'] = 'default'; // (main/template/default)
// Show reduce LP report
//$_configuration['lp_show_reduced_report'] = false;
// Hide the logout button
//$_configuration['hide_logout_boton'] = true;

@ -34,11 +34,13 @@
</li>
</ul>
{% endif %}
{% if logout_link is not null %}
<li>
<a id="logout_button" class="logout" title="{{ "Logout"|get_lang }}" href="{{ logout_link }}" >
<img src="{{ "exit.png"|icon(22) }}">
</a>
</li>
{% endif %}
</ul>
{% else %}
{# Direct login to course - no visible if logged and on the index page #}

Loading…
Cancel
Save