template.tpl 945 B

123456789101112131415161718192021222324252627282930
  1. {#
  2. This is a Chamilo plugin using Twig you can use these 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 table
  15. 4. Read more
  16. You can also see more examples in main/template/default/layout
  17. #}
  18. {% if show_user_info.show_message is not null and _u.logged == 1 %}
  19. <div class="well">
  20. {{ "WelcomeToChamiloUserX" | get_lang | format(show_user_info.user_info.complete_name) }}
  21. </div>
  22. {% endif %}