mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-25 10:28:51 +00:00
55 lines
1.5 KiB
PHP
55 lines
1.5 KiB
PHP
|
<?php
|
||
|
//Include page initiator
|
||
|
include("corePage/initPage.php");
|
||
|
?>
|
||
|
<!--
|
||
|
Comunic web app client
|
||
|
Main HTML file
|
||
|
|
||
|
(c) Pierre HUBERT 2017
|
||
|
-->
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<!-- Page title, should be automaticaly modified next -->
|
||
|
<title>Comunic</title>
|
||
|
|
||
|
<!--Stylesheet requirements -->
|
||
|
<?php
|
||
|
foreach($config['CSSfiles'] as $file){
|
||
|
//Include CSS file
|
||
|
$file = str_replace("%PATH_ASSETS%", $config['pathAssets'], $file);
|
||
|
echo CSSFileInclusionCode($file);
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
<!-- Main website object -->
|
||
|
<script>
|
||
|
var ComunicWeb = {};
|
||
|
</script>
|
||
|
|
||
|
<!-- Javascript config -->
|
||
|
<script>
|
||
|
//Configuration definition
|
||
|
ComunicWeb.__config = [];
|
||
|
|
||
|
//API URL
|
||
|
ComunicWeb.__config['API_URL'] = "<?php echo config['API_URL']; ?>";
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- No javascript message, will be removed soon... -->
|
||
|
<p>Please consider using a modern browser which support Javascript to be able to use this website. We recomend you to download & install Mozilla Firefox...</p>
|
||
|
|
||
|
<!-- Javascript files inclusion -->
|
||
|
<?php
|
||
|
foreach($config['JSfiles'] as $file){
|
||
|
//Include JS file
|
||
|
$file = str_replace("%PATH_ASSETS%", $config['pathAssets'], $file);
|
||
|
echo javascriptFileInclusionCode($file);
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
</body>
|
||
|
</html>
|