template.tpl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {*
  2. This is a Chamilo plugin using Smarty you can use handy shorcuts like:
  3. 1. Shortcuts
  4. $_p = url chamilo paths
  5. $_u = user information of the current user
  6. 2. i18n
  7. You can use i18n variables just use this syntax:
  8. {"HelloWorld"|get_lang}
  9. Now you can add your variables in the main/lang/english/ or main/lang/spanish/ for example in spanish:
  10. $HelloWorld = "Hola Mundo";
  11. 3. Portal settings
  12. You can access the portal settings using:
  13. {"siteName"|api_get_setting}
  14. For more settings check the settings_current database
  15. 4. Read more
  16. You can also see more examples in the the main/template/default/layout files
  17. 5. {$_p|var_dump} pour les path {$_u|var_dump} pour info de l'utilisateur loggé
  18. *}
  19. {if $add_cas_logout_button.show_message}
  20. <link href="{$_p.web_plugin}/add_cas_logout_button/css.css" rel="stylesheet" type="text/css">
  21. <div class="well">
  22. {if $add_cas_logout_button.logout_image_url}
  23. <img src="{$add_cas_logout_button.logout_image_url}" class='cas_plugin_image'/>
  24. {/if}
  25. <h4>{$add_cas_logout_button.logout_label}</h4>
  26. {if $add_cas_logout_button.logout_image_url}
  27. <div class='cas_plugin_clear'>&nbsp;</div>
  28. {/if}
  29. <div class='cas_plugin_comm'>{$add_cas_logout_button.logout_comment}</div>
  30. <button class="btn" onclick="javascript:self.location.href='main/auth/cas/logout.php'">{"Logout"|get_lang}</button>
  31. </div>
  32. {/if}