AzuraCast/templates/system/vue_page.phtml

30 lines
481 B
PHTML

<?php
/**
* @var string $component
* @var ?string $id
* @var string $layout
* @var ?string $title
* @var array $layoutParams
* @var array $props
*/
$this->layout(
$layout ?? 'panel',
array_merge(
[
'title' => $title ?? $id,
'manual' => true,
],
$layoutParams ?? []
)
);
echo $this->fetch(
'partials/vue_body',
[
'component' => $component,
'id' => $id,
'props' => $props,
]
);