Merge branch 'MDL-58454-master' of git://github.com/junpataleta/moodle
[moodle.git] / lib / templates / skip_links.mustache
blob6e17fa5af1dad5f74296eb79be8a21556291e64e
1 {{!
2     @template core/skip_links
4     Example context (json):
5     {
6         "links": [
7             {"url": "http://example.com/link1", "text": "Link 1"},
8             {"url": "http://example.com/link2", "text": "Link 2"}
9         ]
10     }
12 <div class="skiplinks">
13 {{#links}}
14     <a href="#{{{url}}}" class="skip">{{{text}}}</a>
15 {{/links}}
16 </div>
17 {{#js}}
18 require(['core/yui'], function(Y) {
19     M.util.init_skiplink(Y);
20 });
21 {{/js}}