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,106 @@
{{!
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/content/export/course_index
Renders content for a course index.
This template is not for use within moodle.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* global
Example context (json):
{
"global": {
"righttoleft": 0,
"language": "en",
"sitename": "Kevin's Emporium of fine course material",
"siteurl": "https://kevin.example.com",
"pathtotop": "./",
"contentexportfooter": "This file is part of the content downloaded from <a href='https://example.com'>Kevin's Emporium of fine course material</a> by Jennifer Collins on Tuesday, 24th February 2021, 12:21 am.",
"contentexportsummary": "This file is part of the content downloaded from <a href='https://example.com/course/view.php?id=4'>Kevin's Emporium of fine course material</a> on Tuesday, 24th February 2021, 12:21 am.",
"coursename": "Marketing 101",
"courseshortname": "MKT101",
"courselink": "https://example.com/course/view.php?id=4",
"exportdate": "Tuesday, 24th February 2021, 12:21 am",
"maxfilesize": "40MB"
},
"aboutpagelink": "./about.html",
"sections": [
{
"title": "Welcome",
"summary": "<p>Welcome to my <em>awesome</em> course.</p>",
"activities": [
{
"title": "Data Structures - Arrays and Objects",
"modname": "Assignment",
"link": "./dsao_.1/index.html"
},
{
"title": "Data Structures - Discussion",
"modname": "Forum",
"link": "./dsao_.2/index.html"
},
{
"title": "Data Structures - Lecture Notes",
"modname": "Folder",
"link": "./dsao_.3/index.html"
}
]
}
]
}
}}
{{<core/content/export/external_page}}
{{$pagecontent}}
<div class="alert alert-info alert-block">
{{{global.contentexportsummary}}}
</div>
{{#aboutpagelink}}
<div>
<a href="{{{aboutpagelink}}}">{{#str}}contentexport_aboutthiscourse, core{{/str}}</a>
</div>
{{/aboutpagelink}}
{{#sections.0}}
<div>
{{#sections}}
<h3>{{{title}}}</h3>
{{#summary}}
<div>
{{{summary}}}
</div>
{{/summary}}
{{#activities.0}}
<ul>
{{#activities}}
<li><a href="{{{link}}}">{{{title}}} ({{{modname}}})</a></li>
{{/activities}}
</ul>
{{/activities.0}}
<hr>
{{/sections}}
</div>
{{/sections.0}}
{{/pagecontent}}
{{/core/content/export/external_page}}
@@ -0,0 +1,88 @@
{{!
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/content/export/course_summary
Renders course summary and overview information.
This template is not for use within moodle.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* global
Example context (json):
{
"global": {
"righttoleft": 0,
"language": "en",
"sitename": "Kevin's Emporium of fine course material",
"siteurl": "https://kevin.example.com",
"pathtotop": "./",
"contentexportfooter": "This file is part of the content downloaded from <a href='https://example.com'>Kevin's Emporium of fine course material</a> by Jennifer Collins on Tuesday, 24th February 2021, 12:21 am.",
"contentexportsummary": "This file is part of the content downloaded from <a href='https://example.com/course/view.php?id=4'>Kevin's Emporium of fine course material</a> on Tuesday, 24th February 2021, 12:21 am.",
"coursename": "Marketing 101",
"courseshortname": "MKT101",
"courselink": "https://example.com/course/view.php?id=4",
"exportdate": "Tuesday, 24th February 2021, 12:21 am",
"maxfilesize": "40MB"
},
"summary": "<p>This is a summary of the course, and it may contain PLUGINFILE references.</p>",
"overviewfiles": [
{
"filepath": "./_course/overviewfiles/example.pdf",
"filename": "Example PDF"
},
{
"filepath": "./_course/overviewfiles/example.jpg",
"filename": "Example JPG"
}
]
}
}}
{{<core/content/export/external_page}}
{{$pagecontent}}
<div class="alert alert-info alert-block">
{{{global.contentexportsummary}}}
</div>
{{#summary}}
<h2>{{#str}}summary, core{{/str}}</h2>
<div>
{{{summary}}}
</div>
<hr>
{{/summary}}
{{#overviewfiles.0}}
<h2>{{#str}}courseoverviewfiles, core{{/str}}</h2>
<div>
{{#overviewfiles.0}}
<ul>
{{#overviewfiles}}
<li><a href="{{filepath}}" title="{{#str}}contentexport_viewfilename, core, {{filename}}{{/str}}">{{filename}}</a></li>
{{/overviewfiles}}
</ul>
{{/overviewfiles.0}}
</div>
<hr>
{{/overviewfiles.0}}
{{/pagecontent}}
{{/core/content/export/external_page}}
@@ -0,0 +1,81 @@
{{!
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/content/export/external_page
Renders content in a basic HTML wrapper designed for viewing offline.
This template is not for use within moodle.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* global
Example context (json):
{
"global": {
"righttoleft": 0,
"language": "en",
"sitename": "Kevin's Emporium of fine course material",
"siteurl": "https://kevin.example.com",
"pathtotop": "./",
"contentexportfooter": "This file is part of the content downloaded from <a href='https://example.com'>Kevin's Emporium of fine course material</a> by Jennifer Collins on Tuesday, 24th February 2021, 12:21 am.",
"contentexportsummary": "This file is part of the content downloaded from <a href='https://example.com/course/view.php?id=4'>Kevin's Emporium of fine course material</a> on Tuesday, 24th February 2021, 12:21 am.",
"coursename": "Marketing 101",
"courseshortname": "MKT101",
"courselink": "https://example.com/course/view.php?id=4",
"exportdate": "Tuesday, 24th February 2021, 12:21 am",
"maxfilesize": "40MB"
}
}
}}
<!DOCTYPE html>
<html lang="{{global.language}}"{{#global.righttoleft}} dir="rtl"{{/global.righttoleft}}>
<head>
<meta charset="UTF-8">
<title>{{{global.sitename}}} - {{{global.coursename}}}</title>
<link rel="stylesheet" type="text/css" href="{{global.pathtotop}}/shared/moodle.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div class="d-flex flex-column h-100">
<nav class="navbar navbar-light bg-white border-bottom">
<div class="container-fluid p-0">
<a class="navbar-brand" href="{{{global.siteurl}}}" title="{{{global.sitename}}}">
{{{global.sitename}}}
</a>
</div>
</nav>
<main class="container-fluid mt-2 flex-grow-1 flex-shrink-1">
<div>
<h1><a href="{{global.pathtotop}}index.html">{{{global.coursename}}}</a></h1>
<p>{{global.courseshortname}}</p>
{{$pagecontent}}{{/pagecontent}}
</div>
</main>
<footer id="page-footer" class="py-3">
<div class="container">
<div>{{{global.contentexportfooter}}}</div>
</div>
</footer>
</div>
</body>
</html>
@@ -0,0 +1,112 @@
{{!
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/content/export/module_index
Renders content for a course index.
This template is not for use within moodle.
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
* global
Example context (json):
{
"global": {
"righttoleft": 0,
"language": "en",
"sitename": "Kevin's Emporium of fine course material",
"siteurl": "https://kevin.example.com",
"pathtotop": "./",
"contentexportfooter": "This file is part of the content downloaded from <a href='https://example.com'>Kevin's Emporium of fine course material</a> by Jennifer Collins on Tuesday, 24th February 2021, 12:21 am.",
"contentexportsummary": "This file is part of the content downloaded from <a href='https://example.com/course/view.php?id=4'>Kevin's Emporium of fine course material</a> on Tuesday, 24th February 2021, 12:21 am.",
"coursename": "Marketing 101",
"courseshortname": "MKT101",
"courselink": "https://example.com/course/view.php?id=4",
"exportdate": "Tuesday, 24th February 2021, 12:21 am",
"maxfilesize": "40MB"
},
"modulename": "Data Structures - Discussion",
"modulelink": "https://kevin.example.com/mod/forum/view.php?id=53",
"intro": "<p>This forum provides a place for you to discuss the concepts of data structures.</p>",
"sections": [
{
"title": "The title set in an exportable_item",
"content": "<p>Some text area included in an exportable_item.</p>",
"files": [
{
"filename": "Example file which was not included in the text field above",
"filepath": "./sections/0/_files"
}
]
}
]
}
}}
{{<core/content/export/external_page}}
{{$pagecontent}}
<h2>
{{{modulename}}}
</h2>
<div class="alert alert-info alert-block">
{{#str}}contentexport_modulesummary, core,
{
"modulelink": "{{modulelink}}",
"modulename": {{#quote}}{{{modulename}}}{{/quote}},
"date": "{{global.exportdate}}",
"maxfilesize": "{{global.maxfilesize}}"
}
{{/str}}
</div>
{{#intro}}
<h3>{{#str}}moduleintro, core{{/str}}</h3>
<div>
{{{intro}}}
</div>
<hr>
{{/intro}}
{{#sections}}
<div>
<h3>{{{title}}}</h3>
<div>
{{#content}}
<div>
{{{content}}}
</div>
{{/content}}
{{#files.0}}
<ul>
{{#files}}
<li><a href="{{filepath}}" title="{{#str}}contentexport_viewfilename, core, {{filename}}{{/str}}">{{filename}}</a></li>
{{/files}}
</ul>
{{/files.0}}
</div>
</div>
<hr>
{{/sections}}
{{/pagecontent}}
{{/core/content/export/external_page}}