forked from Toxantron/scrumonline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
110 lines (98 loc) · 3.93 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
include "config.php";
include "templates/templates.php";
$templates = Template::getAll();
// Find all templates with their own navigation item
$navItems = [];
$indexPage;
foreach($templates as $index=>$template)
{
if ($template->isNavigation)
$navItems[$index] = $template;
if ($template->isIndex)
$indexPage = $template;
}
?>
<!doctype html>
<html class="no-js" lang="en-EN">
<head>
<meta charset="utf-8">
<base href="/">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Online planning poker</title>
<meta name="description" content="Scrumpoker online is an open source web implementation of planning poker for scrum teams to determine the complexity of stories. It aims to integrate ticketing systems like Redmine or Github.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<script src="/js/modernizr-2.8.3.min.js"></script>
<!-- Style sheets -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/scrumonline.css">
</head>
<body ng-app="scrum-online">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!--Github Fork Badge -->
<div class="github-fork-ribbon-wrapper hidden-xs">
<div class="github-fork-ribbon">
<a target="_blank" href="https://github.com/Toxantron/scrumonline">Fork me on GitHub</a>
</div>
</div>
<!-- Top navigation bar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Scrum Poker</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<?php foreach($navItems as $navItem): ?>
<li data-toggle="collapse" data-target=".navbar-collapse.in"><a href="<?php echo $navItem->link ?>"><?php echo $navItem->navigationTag ?></a></li>
<?php endforeach; ?>
</ul>
</div> <!--/.nav-collapse -->
</div>
</nav>
<!-- Add your site or application content here -->
<div class="container-fluid main" ng-view>
<!-- Render index page in here for instand display -->
<?php $indexPage->render(false) ?>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-route.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-cookies.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-sanitize.min.js"></script>
<script src="https://cdn.rawgit.com/showdownjs/showdown/1.8.6/dist/showdown.min.js"></script>
<script src="/js/angular-google-analytics.js"></script>
<script src="/js//bootstrap.min.js"></script>
<script src="/js/J2M.js"></script>
<script type="text/javascript">
var ga_id = '<?= $ga ?>';
var cardSets = [
<?php foreach($cardSets as $key=>$cardSet) { ?>
{ set: <?= $key ?>, cards: <?= json_encode($cardSet) ?> },
<?php } ?>
];
</script>
<script src="/js/main.js"></script>
<?php foreach($plugins as $plugin) {?>
<script src="/js/<?= strtolower($plugin) ?>-plugin.js"></script>
<?php } ?>
<!-- Templates of the page -->
<?php
foreach($templates as $template)
{
$template->render(true);
}
?>
</body>
</html>