Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 51... Línea 51...
51
            {
51
            {
52
                "num": 1,
52
                "num": 1,
53
                "id": 35,
53
                "id": 35,
54
                "header": {
54
                "header": {
55
                    "name": "Section title",
55
                    "name": "Section title",
56
                    "url": "#"
56
                    "url": "#",
-
 
57
                    "headinglevel": 3
57
                },
58
                },
58
                "cmlist": {
59
                "cmlist": {
59
                    "cms": [
60
                    "cms": [
60
                        {
61
                        {
61
                            "cmitem": {
62
                            "cmitem": {
Línea 81... Línea 82...
81
            {
82
            {
82
                "num": 4,
83
                "num": 4,
83
                "id": 36,
84
                "id": 36,
84
                "header": {
85
                "header": {
85
                    "name": "Section 2 title",
86
                    "name": "Section 2 title",
86
                    "url": "#"
87
                    "url": "#",
-
 
88
                    "headinglevel": 3
87
                },
89
                },
88
                "cmlist": {
90
                "cmlist": {
89
                    "cms": [
91
                    "cms": [
90
                        {
92
                        {
91
                            "cmitem": {
93
                            "cmitem": {
Línea 137... Línea 139...
137
        "singlesection": {
139
        "singlesection": {
138
            "num": 5,
140
            "num": 5,
139
            "id": 37,
141
            "id": 37,
140
            "header": {
142
            "header": {
141
                "name": "Single Section Example",
143
                "name": "Single Section Example",
142
                "url": "#"
144
                "url": "#",
-
 
145
                "headinglevel": 3
143
            },
146
            },
144
            "cmlist": {
147
            "cmlist": {
145
                "cms": [
148
                "cms": [
146
                    {
149
                    {
147
                        "cmitem": {
150
                        "cmitem": {
Línea 167... Línea 170...
167
    }
170
    }
168
}}
171
}}
169
<div id="course-format-{{uniqid}}">
172
<div id="course-format-{{uniqid}}">
170
    <h2 class="accesshide">{{{title}}}</h2>
173
    <h2 class="accesshide">{{{title}}}</h2>
171
    {{{completionhelp}}}
174
    {{{completionhelp}}}
172
    <ul class="{{format}}" data-for="course_sectionlist">
175
    <ul class="{{format}} section-list" data-for="course_sectionlist">
173
        {{#initialsection}}
176
        {{#initialsection}}
174
            {{$ core_courseformat/local/content/section }}
177
            {{$ core_courseformat/local/content/section }}
175
                {{> core_courseformat/local/content/section }}
178
                {{> core_courseformat/local/content/section }}
176
            {{/ core_courseformat/local/content/section }}
179
            {{/ core_courseformat/local/content/section }}
177
        {{/initialsection}}
180
        {{/initialsection}}
Línea 186... Línea 189...
186
        {{#sectionnavigation}}
189
        {{#sectionnavigation}}
187
            {{$ core_courseformat/local/content/sectionnavigation }}
190
            {{$ core_courseformat/local/content/sectionnavigation }}
188
                {{> core_courseformat/local/content/sectionnavigation }}
191
                {{> core_courseformat/local/content/sectionnavigation }}
189
            {{/ core_courseformat/local/content/sectionnavigation }}
192
            {{/ core_courseformat/local/content/sectionnavigation }}
190
        {{/sectionnavigation}}
193
        {{/sectionnavigation}}
191
        <ul class="{{format}}">
194
        <ul class="{{format}} section-list">
192
        {{#singlesection}}
195
        {{#singlesection}}
193
            {{$ core_courseformat/local/content/section }}
196
            {{$ core_courseformat/local/content/section }}
194
                {{> core_courseformat/local/content/section }}
197
                {{> core_courseformat/local/content/section }}
195
            {{/ core_courseformat/local/content/section }}
198
            {{/ core_courseformat/local/content/section }}
196
        {{/singlesection}}
199
        {{/singlesection}}
Línea 215... Línea 218...
215
        {{/ core_courseformat/local/content/bulkedittools}}
218
        {{/ core_courseformat/local/content/bulkedittools}}
216
    {{/bulkedittools}}
219
    {{/bulkedittools}}
217
</div>
220
</div>
218
{{#js}}
221
{{#js}}
219
require(['core_courseformat/local/content'], function(component) {
222
require(['core_courseformat/local/content'], function(component) {
-
 
223
    component.init(
220
    component.init('course-format-{{uniqid}}', {}, {{sectionreturn}});
224
        '#page', {}, {{sectionreturn}}, {{#pagesectionid}}{{.}}{{/pagesectionid}}{{^pagesectionid}}null{{/pagesectionid}}
-
 
225
    );
221
});
226
});
222
{{/js}}
227
{{/js}}