user_block.tpl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="social-avatar">
  2. <div class="panel panel-default">
  3. {{ socialAvatarBlock }}
  4. <div class="social-avatar-name">
  5. <p class="firstname">{{ user.firstname }}</p>
  6. <p class="lastname">{{ user.lastname }}</p>
  7. </div>
  8. <div class="social-avatar-email">
  9. <img src="{{ "instant_message.png" | icon }}" atl="{{ "Email" | get_lang }}">
  10. {{ user.email}}
  11. </div>
  12. {% if chat_enabled == 1 %}
  13. {% if user.user_is_online_in_chat != 0 %}
  14. <div class="social-avatar-chat">
  15. <a onclick="javascript:chatWith('{{ user.id }}', '{{ user.complete_name }}', '{{ user.user_is_online }}','{{ user.avatar_small }}')" href="javascript:void(0);">
  16. <img src="{{ "online.png" | icon }}" alt="{{ "Online" | get_lang }}">
  17. {{ "Chat" | get_lang }} ({{ "Online" | get_lang }})
  18. </a>
  19. </div>
  20. {% else %}
  21. <div class="social-avatar-chat">
  22. <img src="{{ "offline.png" | icon }}" alt="{{ "Online" | get_lang }}">
  23. {{ "Chat" | get_lang }} ({{ "Offline" | get_lang }})
  24. </div>
  25. {% endif %}
  26. {% endif %}
  27. {% if not profileEditionLink is empty %}
  28. <p>
  29. <a class="btn btn-link" href="{{ profileEditionLink }}">
  30. <i class="fa fa-edit"></i>
  31. {{ "EditProfile" | get_lang }}
  32. </a>
  33. </p>
  34. {% endif %}
  35. </div>
  36. </div>