first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,41 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_search/form-user-selector-suggestion
Moodle template for the list of valid options in an autocomplate form element.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* profileimageurlsmall Url to a small profile image.
* fullname Users full name
Example context (json):
{ "id": "1",
"fullname": "Kermit Thefrog",
"profileimageurlsmall": "https://example.org/img"
}
}}
<span>
<img height="12" src="{{profileimageurlsmall}}" alt="">
<span>{{fullname}}</span>
</span>
+110
View File
@@ -0,0 +1,110 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_search/index_requests
Template to provide admin information about the queue of index requests.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* topten
* count
Optional context variables for this template:
* ellipsis
Example context (json):
{
"topten":
[
{
"id": 42,
"timerequested": 123456789,
"contextid": 123,
"contextlink": "<a href='...'>Forum: Tutor group forum</a>",
"searcharea": "mod_forum-activity",
"areaname": "Forum activities",
"partialarea": "mod_forum-activity",
"partialareaname": "Forum activities",
"partialtime": 123400000,
"indexpriority": 100
}
],
"total": 1,
"ellipsis": true
}
}}
{{#total}}
<div>
<h3>
{{#str}} queueheading, search, {{total}} {{/str}}
</h3>
<table class="generaltable">
<thead>
<tr>
<th scope="col">{{#str}} context, role {{/str}}</th>
<th scope="col">{{#str}} searcharea, search {{/str}}</th>
<th scope="col">{{#str}} time {{/str}}</th>
<th scope="col">{{#str}} progress, search {{/str}}</th>
<th scope="col">{{#str}} priority, search {{/str}}</th>
</tr>
</thead>
<tbody>
{{#topten}}
<tr>
<td>
{{{contextlink}}}
</td>
<td>
{{#searcharea}} {{areaname}} {{/searcharea}}
</td>
<td>{{#userdate}} {{timerequested}}, {{#str}} strftimedatetimeshort, core_langconfig {{/str}} {{/userdate}}</td>
<td>
{{#partialarea}}
{{partialareaname}}:
{{/partialarea}}
{{#partialtime}}
{{#userdate}} {{partialtime}}, {{#str}} strftimedatetimeshort, core_langconfig {{/str}} {{/userdate}}
{{/partialtime}}
</td>
<td>
{{#priorityname}}
{{priorityname}}
{{/priorityname}}
{{^priorityname}}
{{indexpriority}}
{{/priorityname}}
</td>
</tr>
{{/topten}}
{{#ellipsis}}
<tr>
<td colspan="5">...</td>
</tr>
{{/ellipsis}}
</tbody>
</table>
</div>
{{/total}}
+102
View File
@@ -0,0 +1,102 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_search/result
Template which shows a search result.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* courseurl
* coursefullname
* title
* docurl
* contexturl
Optional context variables for this template:
* content
* userurl
* userfullname
* description1
* description2
* filename
* multiplefiles
* filenames
* itemid
* contextid
* userid
* timemodified
Example context (json):
{
"courseurl": "https://example.com/course/view.php?id=2",
"coursefullname": "Example course",
"title": "Example title",
"docurl": "https://example.com/mod/example/view.php?id=4",
"content": "I am content",
"contexturl": "https://example.com/mod/example/view.php?id=2",
"userurl": "https://example.com/user/profile.php?id=3",
"userfullname": "Example User Full Name",
"multiplefiles": true,
"filenames":
[
"file1.txt",
"file2.txt"
]
}
}}
<div class="result">
<h4 class="result-title">
{{#icon}}<img class="icon" alt="" src="{{{icon}}}">{{/icon}}<a href="{{{docurl}}}">{{{title}}}</a>
</h4>
{{#content}}
<div class="result-content">{{{content}}}</div>
{{/content}}
{{#description1}}
<div class="result-content">{{{description1}}}</div>
{{/description1}}
{{#description2}}
<div class="result-content">{{{description2}}}</div>
{{/description2}}
{{#filename}}
<div class="result-content-filename">
{{#str}}matchingfile, search, {{{filename}}}{{/str}}
</div>
{{/filename}}
{{#multiplefiles}}
<div class="result-content-filenames">
{{#str}}matchingfiles, search{{/str}}<br>
<ul class="list">
{{#filenames}}
<li><span class="filename">{{.}}</span></li>
{{/filenames}}
</ul>
</div>
{{/multiplefiles}}
<div class="result-context-info">
<a href="{{{contexturl}}}">{{#str}}viewresultincontext, search{{/str}}</a> -
<a href="{{{courseurl}}}">{{#str}}incourse, search, {{{coursefullname}}}{{/str}}</a>
{{#userfullname}}
- <a href="{{{userurl}}}">{{#str}}byname, moodle, {{{userfullname}}}{{/str}}</a>
{{/userfullname}}
</div>
</div>