{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template block_myprofile/myprofile This template renders the content of the myprofile block. Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * userfullname Optional context variables for this template: * userpicture * usercountry * usercity * useremail * usericq * userskype * useryahoo * useraim * usermsn * userphone1 * userphone2 * userinstitution * useraddress * userfirstaccess * userlastaccess * usercurrentlogin * userlastip Example context (json): { "userpicture": "", "userfullname": "John Doe", "usercountry": "Australia", "usercity": "Perth", "useremail": "john.doe@example.com", "usericq": "12345", "userskype": "john.doe", "useryahoo": "12345", "useraim": "12345", "usermsn": "12345", "userphone1": "123456789", "userphone2": "123456789", "userinstitution": "Institution", "useraddress": "Address", "userfirstaccess": "Friday, 6 July 2018, 9:03 AM", "userlastaccess": "Wednesday, 26 September 2018, 8:05 AM", "usercurrentlogin": "Wednesday, 26 September 2018, 7:17 AM", "userlastip": "0:0:0:0:0:0:0:1" } }}
{{#userpicture}}
{{{ userpicture }}}
{{/userpicture}}
{{ userfullname }}
{{#usercountry}}
{{#str}} country {{/str}}: {{ usercountry }}
{{/usercountry}} {{#usercity}}
{{#str}} city {{/str}}: {{ usercity }}
{{/usercity}} {{#useremail}}
{{#str}} email {{/str}}: {{{ useremail }}}
{{/useremail}} {{#usericq}}
ICQ: {{ usericq }}
{{/usericq}} {{#userskype}}
Skype: {{ userskype }}
{{/userskype}} {{#useryahoo}}
Yahoo: {{ useryahoo }}
{{/useryahoo}} {{#useraim}}
AIM: {{ useraim }}
{{/useraim}} {{#usermsn}}
MSN: {{ usermsn }}
{{/usermsn}} {{#userphone1}}
{{#str}} phone1 {{/str}}: {{ userphone1 }}
{{/userphone1}} {{#userphone2}}
{{#str}} phone2 {{/str}}: {{ userphone2 }}
{{/userphone2}} {{#userinstitution}}
{{#str}} institution {{/str}}: {{ userinstitution }}
{{/userinstitution}} {{#useraddress}}
{{#str}} address {{/str}}: {{ useraddress }}
{{/useraddress}} {{#userfirstaccess}}
{{#str}} firstaccess {{/str}}: {{ userfirstaccess }}
{{/userfirstaccess}} {{#userlastaccess}}
{{#str}} lastaccess {{/str}}: {{ userlastaccess }}
{{/userlastaccess}} {{#usercurrentlogin}}
{{#str}} login {{/str}}: {{ usercurrentlogin }}
{{/usercurrentlogin}} {{#userlastip}}
IP: {{ userlastip }}
{{/userlastip}}