-50 Removals
+218 Additions

Created by:phpboost

1<section id="module-user-groups-list"> 1# IF C_ONE_GROUP #
2<section id="module-user-group-list">
2 <header> 3 <header>
3 <h1>{@groups}</h1> 4 <h1>
5 {@members_list} {@group.of_group} {GROUP_NAME} ({NUMBER_MEMBERS})
6 # IF C_ADMIN #
7 <a href="{U_ADMIN_GROUPS}" aria-label="${LangLoader::get_message('edit', 'common')}"><i class="fa fa-edit" aria-hidden="true" title="${LangLoader::get_message('edit', 'common')}"></i></a>
8 # ENDIF #
9 </h1>
4 </header> 10 </header>
5 <div class="content"> 11 <div class="content elements-container">
6 12 # IF C_NO_MEMBERS #
7 <div class="options user-group-select"> 13 <span class="text-strong">{@no_member}</span>
8 # INCLUDE SELECT_GROUP # 14 # ELSE #
15 # START members_list #
16 <article class="block user-card">
17 <header></header>
18 <div class="content">
19 <div class="avatar-container">
20 # IF members_list.C_AVATAR #<img class="valign-middle" src="{members_list.U_AVATAR}" alt="{members_list.PSEUDO}" title="{members_list.PSEUDO}" /># ENDIF #
21 </div>
22 <div class="infos-container">
23 <div class="user-level">{members_list.LEVEL}</div>
24 <div class="user-pseudo">
25 <a href="{members_list.U_PROFILE}" class="{members_list.LEVEL_CLASS}" # IF members_list.C_GROUP_COLOR # style="color:{members_list.GROUP_COLOR}" # ENDIF #>{members_list.PSEUDO}</a>
26 </div>
27
28 # IF C_EXTENDED_FIELDS #
29 # START members_list.extended_fields #
30 <div class="user-extended-field">{members_list.extended_fields.NAME} : {members_list.extended_fields.VALUE}</div>
31
32 # END members_list.extended_fields #
33 # ENDIF #
34 </div>
35 </div>
36 <footer></footer>
37 </article>
38 # END members_list #
39 # ENDIF #
40 </div>
41 <footer>
42 <div class="center">
43 <a href="{U_GROUP_LIST}" class="button">{@groups.list}</a>
9 </div> 44 </div>
45 </footer>
46</section>
47
48# ELSE #
10 49
11 <table id="table"> 50<section id="module-user-groups-list" class="groups-list-container">
12 <caption> 51 <header>
13 {GROUP_NAME} 52 # IF C_HAS_GROUP #
14 # IF C_ADMIN # 53 <span class="groups-list-title">{@groups.select}</span>
15 <a href="{U_ADMIN_GROUPS}" class="fa fa-edit"></a> 54 <div class="groups-list-select">
55 # START group #
56 # IF group.C_GROUP_HAS_IMG #
57 <a href="#" id="group-button-{group.GROUP_ID}" class="group-button group-has-img" title="{@group.view_list_members} {group.GROUP_NAME}" onclick="open_group({group.GROUP_ID});return false;"><img alt="{group.GROUP_NAME}" src="{group.U_GROUP_IMG}" /></a>
58 # ELSE #
59 <a href="#" id="group-button-{group.GROUP_ID}" class="button group-button group-without-img" title="{@group.view_list_members} {group.GROUP_NAME}" onclick="open_group({group.GROUP_ID});return false;">{group.GROUP_NAME}</a>
60 # ENDIF #
61 # END group #
62 </div>
63 # ENDIF #
64 </header>
65 <div class="content group-container">
66 # IF C_HAS_ADMINS #
67 <section id="list-members-container-admin" class="list-admins-container list-members-container selected">
68 <header>
69 <h2>
70 <span class="list-members-container-action">
71 <a href="" onclick="open_group('admin', 0);return false;" title="{@group.hide_list_members}" class="action-less"><i class="fa fa-minus"></i></a>
72 <a href="" onclick="open_group('admin', 1);return false;" title="{@group.view_list_members}" class="action-more"><i class="fa fa-plus"></i></a>
73 </span>
74 {@admins.list} <span class="small">({NUMBER_ADMINS})</span>
75 </h2>
76 </header>
77 <div class="content elements-container">
78 # START admins_list #
79 <article class="block user-card">
80 <header></header>
81 <div class="content">
82 <div class="avatar-container">
83 # IF admins_list.C_AVATAR #
84 <img class="valign-middle" src="{admins_list.U_AVATAR}" alt="{admins_list.PSEUDO}" title="{admins_list.PSEUDO}" />
85 # ENDIF #
86 </div>
87 <div class="infos-container">
88 <div class="user-level">{admins_list.LEVEL}</div>
89 <div class="user-pseudo">
90 <a href="{admins_list.U_PROFILE}" class="{admins_list.LEVEL_CLASS}" # IF admins_list.C_GROUP_COLOR # style="color:{admins_list.GROUP_COLOR}" # ENDIF #>{admins_list.PSEUDO}</a>
91 </div>
92
93 # IF C_EXTENDED_FIELDS #
94 # START admins_list.extended_fields #
95 <div class="user-extended-field">{admins_list.extended_fields.NAME} : {admins_list.extended_fields.VALUE}</div>
96 # END admins_list.extended_fields #
97 # ENDIF #
98 </div>
99 </div>
100 <footer></footer>
101 </article>
102 # END admins_list #
103 </div>
104 <footer></footer>
105 </section>
106 # ENDIF #
107 # IF C_HAS_MODOS #
108 <section id="list-members-container-modo" class="list-modos-container list-members-container selected">
109 <header>
110 <h2>
111 <span class="list-members-container-action">
112 <a href="" onclick="open_group('modo', 0);return false;" title="{@group.hide_list_members}" class="action-less"><i class="fa fa-minus"></i></a>
113 <a href="" onclick="open_group('modo', 1);return false;" title="{@group.view_list_members}" class="action-more"><i class="fa fa-plus"></i></a>
114 </span>
115 {@modos.list} <span class="small">({NUMBER_MODOS})</span>
116 </h2>
117 </header>
118 <div class="content elements-container">
119 # START modos_list #
120 <article class="block user-card">
121 <header></header>
122 <div class="content">
123 <div class="avatar-container">
124 # IF modos_list.C_AVATAR #
125 <img class="valign-middle" src="{modos_list.U_AVATAR}" alt="{modos_list.PSEUDO}" title="{modos_list.PSEUDO}" />
126 # ENDIF #
127 </div>
128 <div class="infos-container">
129 <div class="user-level">{modos_list.LEVEL}</div>
130 <div class="user-pseudo">
131 <a href="{modos_list.U_PROFILE}" class="{modos_list.LEVEL_CLASS}" # IF modos_list.C_GROUP_COLOR # style="color:{modos_list.GROUP_COLOR}" # ENDIF #>{modos_list.PSEUDO}</a>
132 </div>
133
134 # IF C_EXTENDED_FIELDS #
135 # START modos_list.extended_fields #
136 <div class="user-extended-field">{modos_list.extended_fields.NAME} : {modos_list.extended_fields.VALUE}</div>
137 # END modos_list.extended_fields #
138 # ENDIF #
139 </div>
140 </div>
141 <footer></footer>
142 </article>
143 # END modos_list #
144 </div>
145 <footer></footer>
146 </section>
147 # ENDIF #
148
149 # START group #
150 <section id="list-members-container-{group.GROUP_ID}" class="list-group-container list-members-container">
151 <header>
152 <h2>
153 <span class="list-members-container-action">
154 <a href="" onclick="open_group({group.GROUP_ID}, 0);return false;" title="{@group.hide_list_members}" class="action-less"><i class="fa fa-minus"></i></a>
155 <a href="" onclick="open_group({group.GROUP_ID}, 1);return false;" title="{@group.view_list_members}" class="action-more"><i class="fa fa-plus"></i></a>
156 </span>
157 <a href="{group.U_GROUP}" class="group-name" title="{@members_list} {@group.of_group} {group.GROUP_NAME}">{group.GROUP_NAME} <span class="small">({group.NUMBER_MEMBERS})</span></a>
158 # IF C_ADMIN #
159 <a href="{group.U_ADMIN_GROUPS}" title="${LangLoader::get_message('edit', 'common')}"><i class="fa fa-edit"></i></a>
160 # ENDIF #
161 </h2>
162 </header>
163 <div class="content elements-container">
164 # IF group.C_HAS_MEMBERS #
165 # START group.group_members_list #
166 <article class="block user-card">
167 <header></header>
168 <div class="content">
169 <div class="avatar-container">
170 # IF group.group_members_list.C_AVATAR #
171 <img class="valign-middle" src="{group.group_members_list.U_AVATAR}" alt="{group.group_members_list.PSEUDO}" title="{group.group_members_list.PSEUDO}" />
172 # ENDIF #
173 </div>
174 <div class="infos-container">
175 <div class="user-level">{group.group_members_list.LEVEL}</div>
176 <div class="user-pseudo">
177 <a href="{group.group_members_list.U_PROFILE}" class="{group.group_members_list.LEVEL_CLASS}" # IF group.group_members_list.C_GROUP_COLOR # style="color:{group.group_members_list.GROUP_COLOR}" # ENDIF #>{group.group_members_list.PSEUDO}</a>
178 </div>
179
180 # IF C_EXTENDED_FIELDS #
181 # START group.group_members_list.extended_fields #
182 <div class="user-extended-field">{group.group_members_list.extended_fields.NAME} : {group.group_members_list.extended_fields.VALUE}</div>
183 # END group.group_members_list.extended_fields #
184 # ENDIF #
185 </div>
186 </div>
187 <footer></footer>
188 </article>
189 # END group.group_members_list #
190 # ELSE #
191 {@no_member}
16 # ENDIF # 192 # ENDIF #
17 </caption> 193 </div>
18 <thead> 194 <footer></footer>
19 <tr> 195 </section>
20 <th> 196 # END group #
21 {@avatar}
22 </th>
23 <th>
24 {@display_name}
25 </th>
26 <th>
27 {@level}
28 </th>
29 </tr>
30 </thead>
31 <tbody>
32 # START members_list #
33 <tr>
34 <td>
35 # IF members_list.C_AVATAR #<img class="valign-middle" src="{members_list.U_AVATAR}" alt="{members_list.PSEUDO}"/># ENDIF #
36 </td>
37 <td>
38 <a href="{members_list.U_PROFILE}" class="{members_list.LEVEL_CLASS}" # IF members_list.C_GROUP_COLOR # style="color:{members_list.GROUP_COLOR}" # ENDIF #>
39 {members_list.PSEUDO}
40 </a>
41 </td>
42 <td>
43 {members_list.LEVEL}
44 </td>
45 </tr>
46 # END members_list #
47 # IF C_NOT_MEMBERS #
48 <tr>
49 <td colspan="4">
50 <span class="text-strong">{@no_member}</span>
51 </td>
52 </tr>
53 # ENDIF #
54 </tbody>
55 </table>
56 </div> 197 </div>
57 <footer></footer> 198 <footer></footer>
58</section> 199</section>
200
201<script>
202function open_group(myid, mytype)
203{
204 var myclass = 'selected';
205 var mytype = (typeof mytype !== 'undefined') ? mytype : 2;
206
207 if ((jQuery('#list-members-container-' + myid).hasClass(myclass) && mytype == 2 ) || mytype == 0)
208 {
209 if (typeof myid == 'number')
210 jQuery('#group-button-' + myid).removeClass(myclass);
211 jQuery('#list-members-container-' + myid).removeClass('reorder-top');
212 jQuery('#list-members-container-' + myid).removeClass(myclass);
213
214 }
215 else {
216 if (typeof myid == 'number')
217 jQuery('#group-button-' + myid).addClass(myclass);
218 if (mytype == 2)
219 jQuery('#list-members-container-' + myid).addClass('reorder-top');
220 jQuery('#list-members-container-' + myid).addClass(myclass);
221 }
222}
223</script>
224
225# ENDIF #
Editor
Original Text
Changed Text
Recommended videos