Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 35... Línea 35...
35
    * issuedby - Badge issuer.
35
    * issuedby - Badge issuer.
36
    * issuedbyemailobfuscated - Badge issuer email link obfuscated.
36
    * issuedbyemailobfuscated - Badge issuer email link obfuscated.
37
    * hasotherfields - Wheter the badge has other fields or not.
37
    * hasotherfields - Wheter the badge has other fields or not.
38
    * language - Badge language [optional].
38
    * language - Badge language [optional].
39
    * version - Badge version [optional].
39
    * version - Badge version [optional].
40
    * imageauthorname - Badge image author name [optional].
-
 
41
    * imageauthoremail - Badge image author email [optional].
-
 
42
    * imageauthorurl - Badge image author URL [optional].
-
 
43
    * imagecaption - Badge image caption [optional].
40
    * imagecaption - Badge image caption [optional].
44
    * endorsement - Badge endorsement data, with id, badgeid, issuername... [optional].
41
    * endorsement - Badge endorsement data, with id, badgeid, issuername... [optional].
45
    * hasrelatedbadges - Whether the badge has related badges or not.
42
    * hasrelatedbadges - Whether the badge has related badges or not.
46
    * relatedbadges - Array of related badges (if hasrelatedbadges is set to true).
43
    * relatedbadges - Array of related badges (if hasrelatedbadges is set to true).
47
    * hasalignments - Whether the badge has alignments or not.
44
    * hasalignments - Whether the badge has alignments or not.
Línea 64... Línea 61...
64
        "issuedby": "Moodle HQ",
61
        "issuedby": "Moodle HQ",
65
        "issuedbyemailobfuscated": "<a href=\"mailto:xxxxx\">Moodle HQ</a>",
62
        "issuedbyemailobfuscated": "<a href=\"mailto:xxxxx\">Moodle HQ</a>",
66
        "hasotherfields": true,
63
        "hasotherfields": true,
67
        "language": "English",
64
        "language": "English",
68
        "version": "1.0beta",
65
        "version": "1.0beta",
69
        "imageauthorname": "Judit Blanque",
-
 
70
        "imageauthoremail": "<a href=\"mailto:xxx\">judit@moodle.invalid</a>",
-
 
71
        "imageauthorurl": "http://juditblanque.cat",
-
 
72
        "imagecaption": "This is a nice picture from my cat",
66
        "imagecaption": "This is a nice picture from my cat",
73
        "endorsement": {
67
        "endorsement": {
74
            "id": "2",
68
            "id": "2",
75
            "badgeid": "13",
69
            "badgeid": "13",
76
            "issuername": "Endorsement",
70
            "issuername": "Endorsement",
Línea 224... Línea 218...
224
            {{{criteria}}}
218
            {{{criteria}}}
225
        </div>
219
        </div>
Línea 226... Línea 220...
226
 
220
 
227
        {{#hasotherfields}}
221
        {{#hasotherfields}}
228
        <div id="badge-other-fields">
222
        <div id="badge-other-fields">
229
            <a data-toggle="collapse" href="#collapseOtherDetails" role="button" aria-expanded="false" aria-controls="collapseOtherDetails">
223
            <a data-bs-toggle="collapse" href="#collapseOtherDetails" role="button" aria-expanded="false" aria-controls="collapseOtherDetails">
230
                {{#str}}moredetails, core_badges{{/str}}
224
                {{#str}}moredetails, core_badges{{/str}}
231
            </a>
225
            </a>
232
            <div class="collapse" id="collapseOtherDetails">
226
            <div class="collapse" id="collapseOtherDetails">
233
                <div class="container ml-0">
227
                <div class="container ms-0">
234
                    {{#version}}
228
                    {{#version}}
235
                        <dl>
229
                        <dl>
236
                            <dt>
230
                            <dt>
237
                                {{#str}}version, core_badges{{/str}}
231
                                {{#str}}version, core_badges{{/str}}
Línea 251... Línea 245...
251
                                {{language}}
245
                                {{language}}
252
                            </dd>
246
                            </dd>
253
                        </dl>
247
                        </dl>
254
                    {{/language}}
248
                    {{/language}}
Línea 255... Línea -...
255
 
-
 
256
                    {{#imageauthorname}}
-
 
257
                        <dl>
-
 
258
                            <dt>
-
 
259
                                {{#str}}imageauthorname, core_badges{{/str}}
-
 
260
                            </dt>
-
 
261
                            <dd>
-
 
262
                                {{imageauthorname}}
-
 
263
                            </dd>
-
 
264
                        </dl>
-
 
265
                    {{/imageauthorname}}
-
 
266
 
-
 
267
                    {{#imageauthoremail}}
-
 
268
                        <dl>
-
 
269
                            <dt>
-
 
270
                                {{#str}}imageauthoremail, core_badges{{/str}}
-
 
271
                            </dt>
-
 
272
                            <dd>
-
 
273
                                {{{imageauthoremail}}}
-
 
274
                            </dd>
-
 
275
                        </dl>
-
 
276
                    {{/imageauthoremail}}
-
 
277
 
-
 
278
                    {{#imageauthorurl}}
-
 
279
                        <dl>
-
 
280
                            <dt>
-
 
281
                                {{#str}}imageauthorurl, core_badges{{/str}}
-
 
282
                            </dt>
-
 
283
                            <dd>
-
 
284
                                <a href="{{imageauthorurl}}" target="_blank">{{imageauthorurl}}</a>
-
 
285
                            </dd>
-
 
286
                        </dl>
-
 
287
                    {{/imageauthorurl}}
249
 
288
                    {{#imagecaption}}
250
                    {{#imagecaption}}
289
                        <dl>
251
                        <dl>
290
                            <dt>
252
                            <dt>
291
                                {{#str}}imagecaption, core_badges{{/str}}
253
                                {{#str}}imagecaption, core_badges{{/str}}
Línea 297... Línea 259...
297
                    {{/imagecaption}}
259
                    {{/imagecaption}}
298
                </div>
260
                </div>
Línea 299... Línea 261...
299
 
261
 
300
            {{#endorsement}}
262
            {{#endorsement}}
301
                <h4>{{#str}}endorsement, core_badges{{/str}}</h4>
263
                <h4>{{#str}}endorsement, core_badges{{/str}}</h4>
302
                <div class="container ml-0">
264
                <div class="container ms-0">
303
                    <dl>
265
                    <dl>
304
                        <dt>
266
                        <dt>
305
                            {{#str}}issuername, core_badges{{/str}}
267
                            {{#str}}issuername, core_badges{{/str}}
306
                        </dt>
268
                        </dt>