Commit 5f87f89e authored by Hermann Mayer's avatar Hermann Mayer

Fixed a Bug in our Twig JityExtension::service which cached routes, instead of…

Fixed a Bug in our Twig JityExtension::service which cached routes, instead of metainformation to build routes. [Parameters require variable routes] Added and set Xmas theme for the dark mode.
parent 24f8b964
.wrapper {
background-color: #191919;
background-image:
url("/bundles/jityhomepage/img/xmas/top.png"),
url("/bundles/jityhomepage/img/xmas/bottom.png"),
url("/bundles/jityhomepage/img/xmas/stars.png"),
url("/bundles/jityhomepage/img/xmas/noise.png"),
repeating-linear-gradient(160deg, #191919 0px, #191919 10px, #181818 10px, #181818 20px);
background-position:
center top,
center bottom,
center bottom,
center bottom,
center bottom;
background-repeat:
repeat-x,
repeat-x,
repeat,
repeat,
repeat;
}
......@@ -205,7 +205,7 @@ input[type="url"], input[type="search"], input[type="tel"], input[type="color"],
footer {
color: #666;
background: #151515;
background-color: #151515;
border-top-color: #4A4539;
}
......
......@@ -20,7 +20,7 @@ html, body {
footer {
color: #666;
background: #151515;
background-color: #151515;
border-top-color: #4A4539;
}
......
......@@ -9,7 +9,7 @@
<ul>
{% for monthNumber, monthData in months %}
{% for month, count in monthData %}
<li><a href="{{ service('blog-archiv', year ~ '/' ~ monthNumber) }}">{{ month }}</a> ({{count}})</li>
{% endfor %}
......
......@@ -46,10 +46,10 @@
<item>
<title>{{ article.title }}</title>
<description>{{ article.content }}</description>
<description>{{ article.getDescription }}</description>
<content:encoded>
<![CDATA[
{{ authorAvatar }}{{ article.content }}
{{ authorAvatar }}{{ article.getDescription }}
]]>
</content:encoded>
<link>{{ articleUrl }}</link>
......
......@@ -206,13 +206,16 @@ class JityExtension extends Twig_Extension
// Save service lookup in service cache
// We survived, seems good to build a route
$this->serviceCache[$name] = $this->router->generate($route, array(
'slug' => $page->getSlug(),
'parameters' => $parameters
));
$this->serviceCache[$name] = (object) array(
'route' => $route,
'slug' => $page->getSlug()
);
}
return $this->serviceCache[$name];
return $this->router->generate($this->serviceCache[$name]->route, array(
'slug' => $this->serviceCache[$name]->slug,
'parameters' => $parameters
));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment