1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
4 |
Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
it under the terms of the GNU General Public License as published by
|
|
|
6 |
the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
(at your option) any later version.
|
|
|
8 |
|
|
|
9 |
Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
GNU General Public License for more details.
|
|
|
13 |
|
|
|
14 |
You should have received a copy of the GNU General Public License
|
|
|
15 |
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template block_dash/widget_contacts
|
|
|
19 |
|
|
|
20 |
Example context (json):
|
|
|
21 |
{
|
|
|
22 |
"sitefullname": "Moodle - 311",
|
|
|
23 |
"courseurl": "https://localhost/moodle/course/view.php?id=2"
|
|
|
24 |
}
|
|
|
25 |
}}
|
|
|
26 |
|
|
|
27 |
<div class="block_dash-community-block">
|
|
|
28 |
|
|
|
29 |
<div class="contact-block">
|
|
|
30 |
|
|
|
31 |
<!--Contact Users-->
|
|
|
32 |
<div class="contact-element">
|
|
|
33 |
<div class="row">
|
|
|
34 |
{{#data.contacts}}
|
|
|
35 |
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-6 col-xs-12">
|
|
|
36 |
<div class="contact-img-block">
|
|
|
37 |
<!--Contact User img block-->
|
|
|
38 |
<div class="img-block">
|
|
|
39 |
<div class="overlay-block"></div> <!--Contact User border split-->
|
|
|
40 |
<div class="img-block-overlay">
|
|
|
41 |
<a href="{{{profileurl}}}"><i class="fa fa-address-book-o"></i></a>
|
|
|
42 |
</div> <!--Contact address icon-->
|
|
|
43 |
<div class="img-block-overlay img-block-overlay-1">
|
|
|
44 |
<a data-userid="{{{id}}}" href="{{{groupsurl}}}" class="contact-widget-viewgroup"><i class="fa fa-users"></i></a>
|
|
|
45 |
</div> <!--Contact Users icon-->
|
|
|
46 |
<div class="img-block-overlay img-block-overlay-2">
|
|
|
47 |
<a href="{{contacturl}}"><i class="fa fa-comment"></i></a>
|
|
|
48 |
</div> <!--Contact comment icon-->
|
|
|
49 |
{{#unreadcount}}
|
|
|
50 |
<span class="badge-block">{{unreadcount}}</span> <!--Contact User badge-->
|
|
|
51 |
{{/unreadcount}}
|
|
|
52 |
{{#profiletext}}
|
|
|
53 |
<h3 class="user-letter-circle">{{profiletext}}</h3>
|
|
|
54 |
{{/profiletext}}
|
|
|
55 |
{{^profiletext}}
|
|
|
56 |
<img src="{{{profileimageurl}}}" alt="{{{fullname}}}" title="{{{fullname}}}" role="presentation"> <!--Contact User img-->
|
|
|
57 |
{{/profiletext}}
|
|
|
58 |
</div>
|
|
|
59 |
|
|
|
60 |
<!--Contact User name-->
|
|
|
61 |
<div class="title-block">
|
|
|
62 |
<h4>{{{fullname}}}<h4>
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
{{/data.contacts}}
|
|
|
67 |
</div>
|
|
|
68 |
{{^data.contacts}}
|
|
|
69 |
{{#noresult}} {{{noresult}}} {{/noresult}}
|
|
|
70 |
{{/data.contacts}}
|
|
|
71 |
<div class="suggested-contact">
|
|
|
72 |
<h4>{{#str}} suggestcontacts, block_dash{{/str}}</h4>
|
|
|
73 |
<div class="row">
|
|
|
74 |
{{#data.suggestions}}
|
|
|
75 |
<div class="col-md-3">
|
|
|
76 |
<div class="contact-element">
|
|
|
77 |
<div class="img-block">
|
|
|
78 |
{{#profiletext}}
|
|
|
79 |
<h3 class="user-letter-circle">{{profiletext}}</h3>
|
|
|
80 |
{{/profiletext}}
|
|
|
81 |
{{^profiletext}}
|
|
|
82 |
<img src="{{{profileimageurl}}}" alt="{{{fullname}}}" title="{{{fullname}}}" role="presentation"> <!--Contact User img-->
|
|
|
83 |
{{/profiletext}}
|
|
|
84 |
</div>
|
|
|
85 |
<div class="suggested-element">
|
|
|
86 |
<div class="info">
|
|
|
87 |
{{#suggestinfo}}
|
|
|
88 |
<h6> {{{.}}} </h6>
|
|
|
89 |
{{/suggestinfo}}
|
|
|
90 |
</div>
|
|
|
91 |
<h5>{{{fullname}}}</h5>
|
|
|
92 |
<div class="btn-block">
|
|
|
93 |
<a data-currentuserid="{{data.currentuser}}" data-userid="{{id}}" class="ajax-contact-button btn toggle-contact-button" >
|
|
|
94 |
{{#addcontacticon}} {{{addcontacticon}}} {{/addcontacticon}}
|
|
|
95 |
{{#str}} addtocontacts, block_dash {{/str}}
|
|
|
96 |
</a>
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
</div>
|
|
|
101 |
{{/data.suggestions}}
|
|
|
102 |
</div>
|
|
|
103 |
</div>
|
|
|
104 |
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
</div>
|