mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
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:
parent
7a6ff551a0
commit
35338975c3
@ -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>
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user