home.html.twig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {% extends '@ChamiloTheme/Layout/layout_one_col.html.twig' %}
  2. {% block content %}
  3. {% autoescape false %}
  4. <style>
  5. #listFriends .list-group {
  6. max-height: 250px;
  7. overflow-y:auto;
  8. }
  9. </style>
  10. <div class="row">
  11. <div class="col-md-3">
  12. {% include '@ChamiloTheme/Social/user_block.html.twig' %}
  13. </div>
  14. <div class="col-md-6">
  15. {#{{ social_search_block }}#}
  16. <div id="wallMessages">
  17. {{ social_wall_block }}
  18. <div class="spinner"></div>
  19. <div class="panel panel-preview panel-default" hidden="true">
  20. <div class="panel-heading">
  21. <h3 class="panel-title">{{ "Url" | get_lang }} - {{ "Preview" | get_lang }}</h3>
  22. </div>
  23. <div class="panel-body">
  24. <div class="url_preview"></div>
  25. </div>
  26. </div>
  27. {{ social_post_wall_block }}
  28. {{ social_auto_extend_link }}
  29. </div>
  30. {{ social_right_content }}
  31. <div id="message_ajax_reponse" class=""></div>
  32. <div id="display_response_id"></div>
  33. </div>
  34. <div class="col-md-3">
  35. <!-- Block chat list -->
  36. <div class="chat-friends">
  37. <div class="panel-group" id="blocklistFriends" role="tablist" aria-multiselectable="true">
  38. <div class="panel panel-default">
  39. <div class="panel-heading" role="tab" id="headingOne">
  40. <h4 class="panel-title">
  41. <a role="button"
  42. data-toggle="collapse"
  43. data-parent="#blocklistFriends"
  44. href="#listFriends"
  45. aria-expanded="true"
  46. aria-controls="listFriends">
  47. {{ "SocialFriend" | get_lang }}
  48. </a>
  49. </h4>
  50. </div>
  51. <div id="listFriends"
  52. class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  53. <div class="panel-body">
  54. <div class="search-friend">
  55. {{ search_friends_form }}
  56. </div>
  57. {{ social_friend_block }}
  58. {% if 'allow_social_map_fields'|api_get_configuration_value %}
  59. <div class="geolocalization">
  60. <a class="btn btn-maps" id="profile-tab" href="{{ _p.web }}main/social/map.php" >
  61. {{ "geolocalization.png"|img(32) }}
  62. {{ 'SearchUserByGeolocalization' | get_lang }}
  63. </a>
  64. </div>
  65. {% endif %}
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. {{ social_group_block }}
  72. {{ social_skill_block }}
  73. <!-- Block session list -->
  74. {% if session_list != null %}
  75. <div class="panel-group" id="session-block" role="tablist" aria-multiselectable="true">
  76. <div class="panel panel-default">
  77. <div class="panel-heading" role="tab" id="headingOne">
  78. <h4 class="panel-title">
  79. <a role="button" data-toggle="collapse" data-parent="#session-block" href="#sessionList" aria-expanded="true" aria-controls="sessionList">
  80. {{ "MySessions" | get_lang }}
  81. </a>
  82. </h4>
  83. </div>
  84. <div id="sessionList" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  85. <div class="panel-body">
  86. <ul class="list-group">
  87. {% for session in session_list %}
  88. <li id="session_{{ session.id }}" class="list-group-item" style="min-height:65px;">
  89. <img class="img-session" src="{{ session.image }}"/>
  90. <span class="title">{{ session.name }}</span>
  91. </li>
  92. {% endfor %}
  93. </ul>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. {% endif %}
  99. </div>
  100. </div>
  101. {% endautoescape %}
  102. {% endblock %}