user_block.tpl 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <li class="item">
  26. <a href="{{ vcard_user_link }}">
  27. <img src="{{ "vcard.png" | icon(16) }}" alt="{{ "BusinessCard" | get_lang }}" width="16" height="16">
  28. {{ "BusinessCard" | get_lang }}
  29. </a>
  30. </li>
  31. {% set skype_account = '' %}
  32. {% set linkedin_url = '' %}
  33. {% for extra in user.extra %}
  34. {% if extra.value.getField().getVariable() == 'skype' %}
  35. {% set skype_account = extra.value.getValue() %}
  36. {% endif %}
  37. {% if extra.value.getField().getVariable() == 'linkedin_url' %}
  38. {% set linkedin_url = extra.value.getValue() %}
  39. {% endif %}
  40. {% endfor %}
  41. {% if 'allow_show_skype_account'|get_setting == 'true' and not skype_account is empty %}
  42. <li class="item">
  43. <a href="skype:{{ skype_account }}?chat">
  44. <span class="fa fa-skype fa-fw" aria-hidden="true"></span> {{ 'Skype'|get_lang }}
  45. </a>
  46. </li>
  47. {% endif %}
  48. {% if 'allow_show_linkedin_url'|get_setting == 'true' and not linkedin_url is empty %}
  49. <li class="item">
  50. <a href="{{ linkedin_url }}" target="_blank">
  51. <span class="fa fa-linkedin fa-fw" aria-hidden="true"></span> {{ 'LinkedIn'|get_lang }}
  52. </a>
  53. </li>
  54. {% endif %}
  55. {% endif %}
  56. {% if chat_enabled == 1 %}
  57. {% if user.user_is_online_in_chat != 0 %}
  58. {% if user_relation == user_relation_type_friend %}
  59. <li class="item">
  60. <a onclick="javascript:chatWith('{{ user.id }}', '{{ user.complete_name }}', '{{ user.user_is_online }}','{{ user.avatar_small }}')" href="javascript:void(0);">
  61. <img src="{{ "online.png" | icon }}" alt="{{ "Online" | get_lang }}">
  62. {{ "Chat" | get_lang }} ({{ "Online" | get_lang }})
  63. </a>
  64. </li>
  65. {# else #}
  66. {# <img src="{{ "offline.png" | icon }}" alt="{{ "Online" | get_lang }}"> #}
  67. {# {{ "Chat" | get_lang }} ({{ "Offline" | get_lang }}) #}
  68. {% endif %}
  69. {% endif %}
  70. {% endif %}
  71. {% if not profile_edition_link is empty %}
  72. <li class="item">
  73. <a class="btn btn-link btn-sm btn-block" href="{{ profile_edition_link }}">
  74. <em class="fa fa-edit"></em>{{ "EditProfile" | get_lang }}
  75. </a>
  76. </li>
  77. {% endif %}
  78. </ul>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>