-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
27 lines (24 loc) · 1021 Bytes
/
index.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
<!DOCTYPE html>
<html id="konfigurator">
<head>
<script src="assets/js/vendor/jquery-1.12.4.min.js"></script>
<script src="assets/js/vendor/knockout-3.4.0.js"></script>
<script type="text/javascript" src="assets/js/app/views/pages/initializing.js"></script>
<script type="text/javascript" src="assets/js/app/views/pages/editor.js"></script>
<script type="text/javascript" src="assets/js/app/app.js"></script>
<script type="text/javascript" src="assets/js/config.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
</head>
<body>
<div id="konfigurator-wrapper" data-bind="template: currentPage"></div>
<!-- region: Load templates-->
<?php
$path = 'templates/';
$files = array_diff(scandir($path), array('.', '..'));
foreach ($files as $file): ?>
<script type="text/html" id="<?php echo preg_replace('/\\.[^.\\s]{3,4}$/', '', $file); ?>">
<?php include($path . $file); ?>
</script>
<?php endforeach; ?>
</body>
</html>