Закончил разработку обучения

This commit is contained in:
2023-01-15 22:47:19 +01:00
parent 45fc2f51b4
commit 739caee04b
11 changed files with 253 additions and 36 deletions
+12 -9
View File
@@ -1,23 +1,26 @@
<?php
use DarksLight2\Training\TrainingManager;
/**
* @var string $token
* @var int $time
* @var string $button_text
* @var object $step
*/
$short_name = 'first_step';
$manager = TrainingManager::getInstance();
$step = $manager->$short_name;
$button_text = 'Продолжить';
if(!$manager) {
$button_text = '';
}
?>
require 'step.php';
?>
<script>
const training_data = () => {
return {
content: `<?=$step->message?>`,
title: `<?=$step->title?>`,
button_text: `<?=$button_text?>`
button_text: `<?=$button_text?>`,
time: <?=$time?>,
token: '<?=$token?>',
short_name: '<?=$short_name?>',
}
}
</script>