28 lines
534 B
PHP
28 lines
534 B
PHP
<?php
|
|
|
|
use DarksLight2\Training\TrainingManager;
|
|
|
|
$short_name = 'first_step';
|
|
|
|
$manager = TrainingManager::getInstance();
|
|
$step = $manager->$short_name;
|
|
$button_text = 'Продолжить';
|
|
if(!$manager) {
|
|
$button_text = '';
|
|
}
|
|
?>
|
|
|
|
<script>
|
|
const training_data = () => {
|
|
return {
|
|
content: `<?=$step->message?>`,
|
|
title: `<?=$step->title?>`,
|
|
button_text: `<?=$button_text?>`
|
|
}
|
|
}
|
|
</script>
|
|
<script src="/js/training/modal.js"></script>
|
|
|
|
<script>
|
|
modal.show()
|
|
</script>
|