| 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 core_courseformat/local/content/section/header
  | 
        
        
            | 
            | 
           19 | 
              | 
        
        
            | 
            | 
           20 | 
               Displays a course section header.
  | 
        
        
            | 
            | 
           21 | 
              | 
        
        
            | 
            | 
           22 | 
               Example context (json):
  | 
        
        
            | 
            | 
           23 | 
               {
  | 
        
        
            | 
            | 
           24 | 
                   "id": 123,
  | 
        
        
            | 
            | 
           25 | 
                   "name": "Section title",
  | 
        
        
            | 
            | 
           26 | 
                   "title": "<a href=\"http://moodle/course/view.php?id=5#section-0\">Section title</a>",
  | 
        
        
            | 
            | 
           27 | 
                   "url": "#",
  | 
        
        
            | 
            | 
           28 | 
                   "headerdisplaymultipage": true,
  | 
        
        
            | 
            | 
           29 | 
                   "sectionbulk": true,
  | 
        
        
            | 
            | 
           30 | 
                   "editing": 0
  | 
        
        
            | 
            | 
           31 | 
               }
  | 
        
        
            | 
            | 
           32 | 
           }}
  | 
        
        
            | 
            | 
           33 | 
           {{#sectionbulk}}
  | 
        
        
            | 
            | 
           34 | 
           {{$ core_courseformat/local/content/section/bulkselect }}
  | 
        
        
            | 
            | 
           35 | 
               {{> core_courseformat/local/content/section/bulkselect }}
  | 
        
        
            | 
            | 
           36 | 
           {{/ core_courseformat/local/content/section/bulkselect }}
  | 
        
        
            | 
            | 
           37 | 
           {{/sectionbulk}}
  | 
        
        
            | 
            | 
           38 | 
           {{#headerdisplaymultipage}}
  | 
        
        
            | 
            | 
           39 | 
               <h3 id="sectionid-{{id}}-title" class="rui-course-format-card sectionname">
  | 
        
        
            | 
            | 
           40 | 
                   {{{title}}}
  | 
        
        
            | 
            | 
           41 | 
               </h3>
  | 
        
        
            | 
            | 
           42 | 
           {{/headerdisplaymultipage}}
  | 
        
        
            | 
            | 
           43 | 
           {{^headerdisplaymultipage}}
  | 
        
        
            | 
            | 
           44 | 
               {{#sitehome}}
  | 
        
        
            | 
            | 
           45 | 
                   <h2 id="sectionid-{{id}}-title" class="sectionname">
  | 
        
        
            | 
            | 
           46 | 
                       {{{title}}}
  | 
        
        
            | 
            | 
           47 | 
                   </h2>
  | 
        
        
            | 
            | 
           48 | 
               {{/sitehome}}
  | 
        
        
            | 
            | 
           49 | 
               {{^sitehome}}
  | 
        
        
            | 
            | 
           50 | 
                   <div class="rui-course-header-btn d-flex align-items-start position-relative col pl-0">
  | 
        
        
           | 1441 | 
           ariadna | 
           51 | 
                       <a role="button" data-bs-toggle="collapse"
  | 
        
        
            | 
            | 
           52 | 
                           data-bs-toggle="collapse"
  | 
        
        
           | 1 | 
           efrain | 
           53 | 
                           data-for="sectiontoggler"
  | 
        
        
            | 
            | 
           54 | 
                          href="#coursecontentcollapse{{num}}"
  | 
        
        
            | 
            | 
           55 | 
                          id="collapssesection{{num}}"
  | 
        
        
            | 
            | 
           56 | 
                          aria-expanded="{{^contentcollapsed}}true{{/contentcollapsed}}{{#contentcollapsed}}false{{/contentcollapsed}}"
  | 
        
        
            | 
            | 
           57 | 
                          aria-controls="coursecontentcollapse{{num}}"
  | 
        
        
            | 
            | 
           58 | 
                          class="rui-course-header-btn-icon icons-collapse-expand justify-content-center
  | 
        
        
            | 
            | 
           59 | 
                              {{^editing}} stretched-link {{/editing}}
  | 
        
        
            | 
            | 
           60 | 
                              {{#contentcollapsed}} collapsed {{/contentcollapsed}}"
  | 
        
        
            | 
            | 
           61 | 
                          aria-label="{{name}}">
  | 
        
        
            | 
            | 
           62 | 
                               <span class="icon expanded-icon" title="{{#str}} collapse, core {{/str}}">
  | 
        
        
            | 
            | 
           63 | 
                                   <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  | 
        
        
            | 
            | 
           64 | 
                                   <path d="M12 15.25L16.25 9.75H7.75L12 15.25Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  | 
        
        
            | 
            | 
           65 | 
                                   </svg>
  | 
        
        
            | 
            | 
           66 | 
                               </span>
  | 
        
        
            | 
            | 
           67 | 
                               <span class="icon collapsed-icon" title="{{#str}} expand, core {{/str}}">
  | 
        
        
            | 
            | 
           68 | 
                                   <span class="dir-rtl-hide">
  | 
        
        
            | 
            | 
           69 | 
                                       <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  | 
        
        
            | 
            | 
           70 | 
                                           <path d="M14.25 12L8.75 7.75V16.25L14.25 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  | 
        
        
            | 
            | 
           71 | 
                                       </svg>
  | 
        
        
            | 
            | 
           72 | 
                                   </span>
  | 
        
        
            | 
            | 
           73 | 
                                   <span class="dir-ltr-hide">
  | 
        
        
            | 
            | 
           74 | 
                                       <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  | 
        
        
            | 
            | 
           75 | 
                                           <path d="M8.75 12L14.25 7.75V16.25L8.75 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  | 
        
        
            | 
            | 
           76 | 
                                       </svg>
  | 
        
        
            | 
            | 
           77 | 
                                   </span>
  | 
        
        
            | 
            | 
           78 | 
                               </span>
  | 
        
        
            | 
            | 
           79 | 
                       </a>
  | 
        
        
            | 
            | 
           80 | 
                       <h3 class="sectionname course-content-item d-flex align-self-stretch align-items-center mb-0"
  | 
        
        
            | 
            | 
           81 | 
                           id="sectionid-{{id}}-title" data-for="section_title" data-id="{{id}}" data-number="{{num}}">
  | 
        
        
            | 
            | 
           82 | 
                           {{{title}}}
  | 
        
        
            | 
            | 
           83 | 
                       </h3>
  | 
        
        
            | 
            | 
           84 | 
                   </div>
  | 
        
        
            | 
            | 
           85 | 
               {{/sitehome}}
  | 
        
        
            | 
            | 
           86 | 
           {{/headerdisplaymultipage}}
  |