MDL-73635 tool_componentlibrary: Move dynamic tabs sample page

* Move the example page for the dynamic tabs component into the examples
folder.
This commit is contained in:
Jun Pataleta 2022-01-21 18:53:14 +08:00
parent 7a6ff551a0
commit 35338975c3
2 changed files with 5 additions and 5 deletions

View File

@ -97,4 +97,4 @@ using `get_data` method (for example to check permissions in `is_available`).
## Example
<iframe src="../../../../dynamictabs.php" style="overflow:hidden;height:400px;width:100%;border:0" title="Moodle dynamictabs"></iframe>
<iframe src="../../../../examples/dynamictabs.php" style="overflow:hidden;height:400px;width:100%;border:0" title="Moodle dynamic tabs"></iframe>

View File

@ -26,7 +26,7 @@
declare(strict_types=1);
require_once('../../../config.php');
require_once(__DIR__ . '/../../../../config.php');
use core\output\dynamic_tabs;
@ -34,12 +34,12 @@ require_login();
require_capability('moodle/site:configview', context_system::instance());
global $PAGE, $OUTPUT;
$PAGE->set_url(new moodle_url('/local/componentlibrary/dynamictabs/dynamictabs.php'));
$PAGE->set_url(new moodle_url('/admin/tool/componentlibrary/examples/dynamictabs.php'));
$PAGE->set_context(context_system::instance());
$PAGE->set_pagelayout('embedded');
$PAGE->set_heading('Moodle dynamic fields');
$PAGE->set_title('Moodle dynamic fields');
$PAGE->set_heading('Moodle dynamic tabs');
$PAGE->set_title('Moodle dynamic tabs');
echo $OUTPUT->header();