46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
|
<?php
|
||
|
$base_url = '/provm/demos';
|
||
|
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [dirname(__DIR__)]));
|
||
|
$demos = [];
|
||
|
foreach ($files as $file) {
|
||
|
if (!$file->isDir() or $file->isDot() or $file->getBasename() == 'public') {
|
||
|
continue;
|
||
|
}
|
||
|
$demos []= $file->getBasename();
|
||
|
}
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="es">
|
||
|
<head>
|
||
|
<meta charset="utf8" />
|
||
|
<title>Demos - ProVM</title>
|
||
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/semantic.min.css" />
|
||
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/brand-icons.woff" />
|
||
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/brand-icons.woff2" />
|
||
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/icons.woff" />
|
||
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/themes/default/assets/fonts/icons.woff2" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<header class="ui container">
|
||
|
<nav class="ui menu">
|
||
|
<a class="item" href="#">
|
||
|
<img src="/provm/portal/public/assets/images/logo.png" />
|
||
|
</a>
|
||
|
</nav>
|
||
|
</header>
|
||
|
<section class="ui container">
|
||
|
<div class="ui basic segment">
|
||
|
<h1 class="header">
|
||
|
Demos
|
||
|
</h1>
|
||
|
<div class="ui celled list">
|
||
|
<?php foreach ($demos as $demo): ?>
|
||
|
<a class="item" href="<?= implode('/', [$base_url, $demo]); ?>"><?= $demo; ?></a>
|
||
|
<?php endforeach; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.6/semantic.min.js"></script>
|
||
|
</body>
|
||
|
</html>
|