-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_layout.php
34 lines (31 loc) · 928 Bytes
/
_layout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
use Kekos\PrestDoc\AssetsRepository;
/**
* @var AssetsRepository $assets
* @var array|null $front_matter
* @var string $in_file
* @var string $out_file
* @var string $content
*/
?>
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php if (isset($front_matter['title'])): ?>
<title>
<?php echo htmlspecialchars($front_matter['title']); ?>
</title>
<?php endif; ?>
<?php foreach ($assets->getCss() as $css_path): ?>
<link rel="stylesheet" href="<?php echo $css_path; ?>" />
<?php endforeach; ?>
<link rel="stylesheet" href="static/screen.css" />
<script src="static/api_doc.js" defer></script>
<?php foreach ($assets->getJavaScript() as $js_path): ?>
<script src="<?php echo $js_path; ?>" defer></script>
<?php endforeach; ?>
<main class="prest-doc-main-wrapper">
<?php echo $content; ?>
</main>
</html>