MAPG-89 rewrite views and view templates to the new concept

This commit is contained in:
bence committed 2020-06-27 00:47:14 +02:00
1 parent bf8e5b5f4d
commit 1287fa0bc9
18 files changed
+165 -130

No files matched your search

+13 -14
View File
@@ -1,3 +1,4 @@
@extra
<?php
$cssFiles = [
'css/game.css'
@@ -7,21 +8,17 @@ $jsFiles = [
'js/game.js',
];
?>
<?php require ROOT . '/views/templates/main_header.php'; ?>
<header class="small">
<h1>
<a href="/" title="<?= $_ENV['APP_NAME'] ?>">
<img class="inline" width="1em" height="1em" src="<?= $_ENV['STATIC_ROOT'] ?>/img/icon.svg?rev=<?= REVISION ?>"><!--
--><span><?= $_ENV['APP_NAME'] ?></span>
</a>
</h1>
<p class="header">
@endextra
@extends('templates/layout_full')
@section('subheader')
<span id="mapName" class="bold"><?= $mapName ?></span><!--
--><span>Round <span id="currentRound" class="bold"></span></span><!--
--><span>Score <span id="currentScoreSum" class="bold"></span></span>
</p>
</header>
<div class="full">
@endsection
@section('main')
<div id="panoCover"></div>
<div id="panorama"></div>
<div id="showGuessButtonContainer">
@@ -56,9 +53,11 @@ $jsFiles = [
<button id="startNewGameButton" class="fullWidth">Play this map again</button>
</div>
</div>
</div>
@endsection
@section('pagescript')
<script>
var mapId = <?= $mapId ?>;
var mapBounds = <?= json_encode($bounds) ?>;
</script>
<?php require ROOT . '/views/templates/main_footer.php'; ?>
@endsection