home.tpl 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {% extends 'layout/layout_1_col.tpl'|get_template %}
  2. {% block content %}
  3. <style>
  4. #listFriends .list-group {
  5. max-height: 250px;
  6. overflow-y:auto;
  7. }
  8. </style>
  9. <div class="row">
  10. <div class="col-md-3">
  11. {{ social_avatar_block }}
  12. <div class="social-network-menu">
  13. {{ social_menu_block }}
  14. </div>
  15. </div>
  16. <div class="col-md-6">
  17. <div id="wallMessages">
  18. {{ add_post_form }}
  19. <div class="spinner"></div>
  20. <div class="panel panel-preview panel-default" hidden="true">
  21. <div class="panel-heading">
  22. <h3 class="panel-title">{{ "Url" | get_lang }} - {{ "Preview" | get_lang }}</h3>
  23. </div>
  24. <div class="panel-body">
  25. <div class="url_preview"></div>
  26. </div>
  27. </div>
  28. {{ posts }}
  29. {{ social_auto_extend_link }}
  30. </div>
  31. {{ social_right_content }}
  32. <div id="message_ajax_reponse" class=""></div>
  33. <div id="display_response_id"></div>
  34. </div>
  35. <div class="col-md-3">
  36. {{ social_group_block }}
  37. <!-- Block chat list -->
  38. <div class="chat-friends">
  39. <div class="panel-group" id="blocklistFriends" role="tablist" aria-multiselectable="true">
  40. <div class="panel panel-default">
  41. <div class="panel-heading" role="tab" id="headingOne">
  42. <h4 class="panel-title">
  43. <a role="button"
  44. data-toggle="collapse"
  45. data-parent="#blocklistFriends"
  46. href="#listFriends"
  47. aria-expanded="true"
  48. aria-controls="listFriends">
  49. {{ "SocialFriend" | get_lang }}
  50. </a>
  51. </h4>
  52. </div>
  53. <div id="listFriends"
  54. class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  55. <div class="panel-body">
  56. <div class="search-friend">
  57. {{ search_friends_form }}
  58. </div>
  59. {{ social_friend_block }}
  60. {% if 'allow_social_map_fields'|api_get_configuration_value %}
  61. <div class="geolocalization">
  62. <a class="btn btn-maps" id="profile-tab" href="{{ _p.web }}main/social/map.php" >
  63. {{ "geolocalization.png"|img(32) }}
  64. {{ 'SearchUserByGeolocalization' | get_lang }}
  65. </a>
  66. </div>
  67. {% endif %}
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  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. {% endblock %}