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,29 @@
{{!
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 tool_componentlibrary/examples/dynamictabs/tab1
Template for showing Tab1 tab content
Example context (json):
{
"customtext": "My custom tab"
}
}}
<h3>Tab 1 content</h3>
<p>{{customtext}}</p>
@@ -0,0 +1,29 @@
{{!
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 tool_componentlibrary/examples/dynamictabs/tab2
Template for showing Tab2 tab content
Example context (json):
{
"currenttime": "March 3rd, 1979 12:30 PM"
}
}}
<h3>Tab 2 content</h3>
<p>{{currenttime}}</p>
@@ -0,0 +1,31 @@
{{!
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 tool_componentlibrary/examples/formelements/toggles
Example context (json):
{
}
}}
<div class='border p-3 m-3'>
<h3>{{#str}}toggleviewinfo, tool_componentlibrary{{/str}}</h3>
<a href="{{{ defaulturl }}} ">{{#str}}showdefault, tool_componentlibrary{{/str}}</a> /
<a href="{{{ helpurl }}}">{{#str}}showhelp, tool_componentlibrary{{/str}}</a> /
<a href="{{{ requiredurl }}}">{{#str}}showrequired, tool_componentlibrary{{/str}}</a> /
<a href="{{{ bothurl }}}">{{#str}}showboth, tool_componentlibrary{{/str}}</a> /
<a href="{{{ mixedurl }}}">{{#str}}showmixed, tool_componentlibrary{{/str}}</a>
</div>
@@ -0,0 +1,37 @@
{{!
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 tool_componentlibrary/examples/showmore/example
Template for showmore element used as a block example
Example context (json):
{
}
}}
<div id="showmore-example">
<h1>Show more block</h1>
<p>This is a simple example using showmore template as a block.</p>
{{< core/showmore }}
{{$collapsedcontent}} Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem... {{/collapsedcontent}}
{{$expandedcontent}}
Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem suspendisse faucibus, nunc et pellentesque egestas, lacus ante convallis tellus, vitae iaculis lacus elit id tortor.
Sed augue ipsum, egestas nec, vestibulum et, malesuada adipiscing, dui. Sed cursus turpis vitae tortor. Praesent turpis. Proin viverra, ligula sit amet ultrices semper, ligula arcu
tristique sapien, a accumsan nisi mauris ac eros. Donec venenatis vulputate lorem. Vestibulum eu odio. Morbi nec metus. Vivamus euismod mauris. Vivamus elementum semper nisi.
{{/expandedcontent}}
{{/core/showmore }}
</div>
@@ -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 tool_componentlibrary/examples/toggle/example
Template for toggle element used as a block example
Example context (json):
{
}
}}
<div id="toggle-example">
<h1>Toggle block</h1>
<span>This is a simple example using toggle template as a block.</span>
{{< core/toggle }}
{{$id}}example-toggle-3{{/id}}
{{$extraclasses}}mt-3{{/extraclasses}}
{{$attributes}}
data-action="toggle-status"
data-action-id="3"
checked
disabled
{{/attributes}}
{{$label}}Enable/disable status{{/label}}
{{$labelclasses}}sr-only{{/labelclasses}}
{{/ core/toggle }}
</div>