index.php 862 B

123456789101112131415161718192021
  1. <?php
  2. // Show the Shibboleth button to login using SHIBBOLETH
  3. $_template['show_message'] = false;
  4. if (api_is_anonymous()) {
  5. $_template['show_message'] = true;
  6. // the default title
  7. $button_label = "Connexion via Shibboleth";
  8. if (!empty($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_label'])) {
  9. $button_label = api_htmlentities($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_label']);
  10. }
  11. // the comm
  12. $comm_label = api_htmlentities($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_comment']); ;
  13. // URL of the image
  14. $url_label = $plugin_info['settings']['add_shibboleth_login_button_shibboleth_image_url'];
  15. $_template['button_label'] = $button_label;
  16. $_template['comm_label'] = $comm_label;
  17. $_template['url_label'] = $url_label;
  18. }