commit
3406967ab4
@ -1,77 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Engelsystem</title>
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" type="text/css" href="css/theme0.css"/>
|
|
||||||
<link rel="stylesheet" type="text/css" href="vendor/icomoon/style.css"/>
|
|
||||||
<link rel="stylesheet" type="text/css" href="vendor/bootstrap-datepicker-1.4.0/css/bootstrap-datepicker3.min.css"/>
|
|
||||||
<script type="text/javascript" src="vendor/jquery-2.1.1.min.js"></script>
|
|
||||||
<script type="text/javascript" src="vendor/jquery-ui.min.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="navbar navbar-default navbar-fixed-top">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<button type="button" class="navbar-toggle collapsed"
|
|
||||||
data-toggle="collapse" data-target="#navbar-collapse-1">
|
|
||||||
<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="https://engelsystem.de"><span class="icon-icon_angel"></span> <strong
|
|
||||||
class="visible-lg-inline">ENGELSYSTEM</strong></a>
|
|
||||||
</div>
|
|
||||||
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
|
||||||
<ul class="nav navbar-nav"></ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right"></ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
<div class="jumbotron">
|
|
||||||
<div class="container text-center">
|
|
||||||
<div class="col-md-6 col-md-offset-3">
|
|
||||||
<h2>Dear Angels,</h2>
|
|
||||||
<p>
|
|
||||||
The great interest in becoming an angel and participating at 33C3 is is something we are
|
|
||||||
grateful for every time. There is a record number of angels and helping volunteers this year.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
We did anticipate a great number but we are overwhelmed by this endless wave of support. We do
|
|
||||||
want to enable each and every one of you to be an angel at the congress, but sadly our resources
|
|
||||||
and capacities at Heaven are limited. The amount of angels at this point is beyond our
|
|
||||||
planing and to ensure we can support the angels already checked in. We did make a choice never
|
|
||||||
thought possible on a chaos event:
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
We closed the registration in the Engelsystem and at Heaven Desk at 19:00 27. Dec. 2016.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Everyone of us works for you to support you in being an angel, but the Heaven Desk and the
|
|
||||||
Kitchen among others are limited and so we decided to focus our effort to support those of you
|
|
||||||
already arrived to the best of our abilities.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
For the Heaven Team<br/>
|
|
||||||
Agnes, Jen, LLF and Knuth
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="text-center footer">
|
|
||||||
<a href="https://github.com/engelsystem/engelsystem/issues">Bugs / Features</a>
|
|
||||||
· <a href="https://github.com/engelsystem/engelsystem/">Development Platform</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script type="text/javascript" src="vendor/bootstrap/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Engelsystem\Renderer;
|
||||||
|
|
||||||
|
interface EngineInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Render a template
|
||||||
|
*
|
||||||
|
* @param string $path
|
||||||
|
* @param mixed[] $data
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function get($path, $data = []);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $path
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function canRender($path);
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Engelsystem\Renderer;
|
||||||
|
|
||||||
|
class HtmlEngine implements EngineInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Render a template
|
||||||
|
*
|
||||||
|
* @param string $path
|
||||||
|
* @param mixed[] $data
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function get($path, $data = [])
|
||||||
|
{
|
||||||
|
$template = file_get_contents($path);
|
||||||
|
if (is_array($data)) {
|
||||||
|
foreach ($data as $name => $content) {
|
||||||
|
$template = str_replace('%' . $name . '%', $content, $template);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $template;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $path
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function canRender($path)
|
||||||
|
{
|
||||||
|
return strpos($path, '.html') && file_exists($path);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Engelsystem\Renderer;
|
||||||
|
|
||||||
|
use ErrorException;
|
||||||
|
|
||||||
|
class Renderer
|
||||||
|
{
|
||||||
|
/** @var self */
|
||||||
|
protected static $instance;
|
||||||
|
|
||||||
|
/** @var EngineInterface[] */
|
||||||
|
protected $renderer = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render a template
|
||||||
|
*
|
||||||
|
* @param string $template
|
||||||
|
* @param mixed[] $data
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function render($template, $data = [])
|
||||||
|
{
|
||||||
|
foreach ($this->renderer as $renderer) {
|
||||||
|
if (!$renderer->canRender($template)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $renderer->get($template, $data);
|
||||||
|
}
|
||||||
|
|
||||||
|
engelsystem_error('Unable to find a renderer for template file «' . $template . '».');
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a new renderer engine
|
||||||
|
*
|
||||||
|
* @param EngineInterface $renderer
|
||||||
|
*/
|
||||||
|
public function addRenderer(EngineInterface $renderer)
|
||||||
|
{
|
||||||
|
$this->renderer[] = $renderer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return self
|
||||||
|
* @throws ErrorException
|
||||||
|
*/
|
||||||
|
public static function getInstance()
|
||||||
|
{
|
||||||
|
return self::$instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param self $instance
|
||||||
|
*/
|
||||||
|
public static function setInstance($instance)
|
||||||
|
{
|
||||||
|
self::$instance = $instance;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue