Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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 mod_forum/forum_actionbar
19
    Simple search input.
20
    Context variables required for this template:
21
    * see mod/forum/classes/output/forum_actionbar.php
22
    Example context (json):
23
    {
24
        "action": "https://moodle.local/mod/forum/search.php",
25
        "inputname": "search",
26
        "searchstring": "Search settings",
27
        "query": "themedesigner",
28
        "hiddenfields": [{
29
            "name": "id",
30
            "value": "11"
31
         }],
32
         "helpicon": {
33
         "heading": "Search",
34
         "text": "<div class='no-overflow'><p>For basic searching .</p></div>",
35
         "alt": "Help with search",
36
         "icon": [{
37
            "attributes": [{
38
                "name": "alt",
39
                "value": "Help with Search"
40
                }, {
41
                "name": "src",
42
                "value": "http://localhost/theme/image.php?theme=boost&component=core&image=help"
43
             }]
44
          }]
45
         },
46
        "newdiscussionbtn": "<a class='btn btn-primary'>Add discussion topic</a>",
47
        "subscribetoforum": "http://localhost/moodle/mod/forum/subscribe.php?id=7&sesskey=abcd&returnurl=http//localhost/moodle/mod/forum/view.php?id=4",
48
        "unsubscribefromforum": "http://localhost/moodle/mod/forum/subscribe.php?id=7&sesskey=abcd&returnurl=http//localhost/moodle/mod/forum/view.php?id=4"
49
    }
50
}}
51
 
52
<div class="container-fluid tertiary-navigation">
53
    <div class="row">
54
        <div class="navitem">
55
            {{> mod_forum/quick_search_form }}
56
        </div>
57
        <div class="navitem">
58
            {{{newdiscussionbtn}}}
59
        </div>
60
        <div class="ml-sm-auto navitem">
61
            {{#subscribetoforum}}
62
                <a class="btn btn-secondary" href="{{ subscribetoforum }}">{{#str}}subscribe, mod_forum {{/str}}</a>
63
            {{/subscribetoforum}}
64
            {{#unsubscribefromforum}}
65
                <a class="btn btn-secondary" href="{{ unsubscribefromforum }}">{{#str}}unsubscribe, mod_forum {{/str}}</a>
66
            {{/unsubscribefromforum}}
67
        </div>
68
    </div>
69
</div>