user_block.tpl 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <div class="sidebar-avatar">
  2. <div class="panel-group" id="sn-avatar" role="tablist" aria-multiselectable="true">
  3. <div class="panel panel-default">
  4. <div class="panel-heading" role="tab" id="heading-sn">
  5. <h4 class="panel-title">
  6. <a role="button" data-toggle="collapse" data-parent="#sn-avatar" href="#sn-avatar-one" aria-expanded="true" aria-controls="sn-avatar-one">
  7. {{ "Role" | get_lang }}
  8. </a>
  9. </h4>
  10. </div>
  11. <div id="sn-avatar-one" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading-sn">
  12. <div class="panel-body">
  13. {{ social_avatar_block }}
  14. <ul class="list-user-data">
  15. <li class="item">
  16. {{ user.complete_name }}
  17. </li>
  18. {% if show_full_profile %}
  19. <li class="item">
  20. <a href="{{ _p.web }}main/messages/new_message.php">
  21. <img src="{{ "instant_message.png" | icon }}" alt="{{ "Email" | get_lang }}">
  22. {{ user.email}}
  23. </a>
  24. </li>
  25. {% set skype_account = '' %}
  26. {% set linkedin_url = '' %}
  27. {% for extra in user.extra %}
  28. {% if extra.value.getField().getVariable() == 'skype' %}
  29. {% set skype_account = extra.value.getValue() %}
  30. {% endif %}
  31. {% if extra.value.getField().getVariable() == 'linkedin_url' %}
  32. {% set linkedin_url = extra.value.getValue() %}
  33. {% endif %}
  34. {% endfor %}
  35. {% if 'allow_show_skype_account'|api_get_setting == 'true' and not skype_account is empty %}
  36. <li class="item">
  37. <a href="skype:{{ skype_account }}?chat">
  38. <span class="fa fa-skype fa-fw" aria-hidden="true"></span> {{ 'Skype'|get_lang }}
  39. </a>
  40. </li>
  41. {% endif %}
  42. {% if 'allow_show_linkedin_url'|api_get_setting == 'true' and not linkedin_url is empty %}
  43. <li class="item">
  44. <a href="{{ linkedin_url }}" target="_blank">
  45. <span class="fa fa-linkedin fa-fw" aria-hidden="true"></span> {{ 'LinkedIn'|get_lang }}
  46. </a>
  47. </li>
  48. {% endif %}
  49. {% endif %}
  50. {% if chat_enabled == 1 %}
  51. {% if user.user_is_online_in_chat != 0 %}
  52. {% if user_relation == user_relation_type_friend %}
  53. <li class="item">
  54. <a onclick="javascript:chatWith('{{ user.id }}', '{{ user.complete_name }}', '{{ user.user_is_online }}','{{ user.avatar_small }}')" href="javascript:void(0);">
  55. <img src="{{ "online.png" | icon }}" alt="{{ "Online" | get_lang }}">
  56. {{ "Chat" | get_lang }} ({{ "Online" | get_lang }})
  57. </a>
  58. </li>
  59. {# else #}
  60. {# <img src="{{ "offline.png" | icon }}" alt="{{ "Online" | get_lang }}"> #}
  61. {# {{ "Chat" | get_lang }} ({{ "Offline" | get_lang }}) #}
  62. {% endif %}
  63. {% endif %}
  64. {% endif %}
  65. {% if not profile_edition_link is empty %}
  66. <li class="item">
  67. <a class="btn btn-link btn-sm btn-block" href="{{ profile_edition_link }}">
  68. <em class="fa fa-edit"></em>{{ "EditProfile" | get_lang }}
  69. </a>
  70. </li>
  71. {% endif %}
  72. </ul>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>