Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
811 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<menus> | ||
<group> | ||
<name>Hauptmenü</name> | ||
<class>menu-main</class> | ||
<link> | ||
<name>Startseite</name> | ||
<href>{$baseurl}</href> | ||
</link> | ||
<link> | ||
<name>Bildschirmfotos</name> | ||
<href>screenshots/</href> | ||
</link> | ||
<link> | ||
<name>Forum</name> | ||
<href>http://forums.scummvm.org/</href> | ||
</link> | ||
<link> | ||
<name>Downloads</name> | ||
<href>downloads/</href> | ||
</link> | ||
<link> | ||
<name>Spiele</name> | ||
<href>games/</href> | ||
</link> | ||
<link> | ||
<name>ScummVM-Blogs</name> | ||
<href>http://planet.scummvm.org</href> | ||
</link> | ||
<!-- FIXME: Donate temporarily disabled, waiting for us to reestablish its functionality at SF.net | ||
<link> | ||
<name>Donate to ScummVM</name> | ||
<href>http://sourceforge.net/donate/index.php?group_id=37116</href> | ||
</link> | ||
--> | ||
</group> | ||
<group> | ||
<name>Dokumentation</name> | ||
<class>menu-docs</class> | ||
<link> | ||
<name>F.A.Q.</name> | ||
<href>faq/</href> | ||
</link> | ||
<link> | ||
<name>Dokumentation</name> | ||
<href>documentation/</href> | ||
</link> | ||
<link> | ||
<name>Kompatibilität</name> | ||
<href>compatibility/</href> | ||
</link> | ||
<link> | ||
<name>Wiki</name> | ||
<href>http://wiki.scummvm.org/</href> | ||
</link> | ||
<link> | ||
<name>Mitwirkende</name> | ||
<href>credits/</href> | ||
</link> | ||
</group> | ||
<group> | ||
<name>Entwicklung</name> | ||
<class>menu-sf</class> | ||
<link> | ||
<name>Projektseite auf SF.net</name> | ||
<href>http://sourceforge.net/projects/scummvm/</href> | ||
</link> | ||
<link> | ||
<name>Bug Tracker</name> | ||
<href>http://sourceforge.net/p/scummvm/bugs/</href> | ||
</link> | ||
<link> | ||
<name>Feature Requests</name> | ||
<href>http://sourceforge.net/p/scummvm/feature-requests/</href> | ||
</link> | ||
<link> | ||
<name>Patch Tracker</name> | ||
<href>http://sourceforge.net/p/scummvm/patches/</href> | ||
</link> | ||
<link> | ||
<name>Täglich erstellte Versionen</name> | ||
<href>downloads/#daily</href> | ||
</link> | ||
<link> | ||
<name>Quellcode-Verzeichnis</name> | ||
<href>http://github.com/scummvm/scummvm</href> | ||
</link> | ||
<link> | ||
<name>Buildbot</name> | ||
<href>http://buildbot.scummvm.org/</href> | ||
</link> | ||
</group> | ||
<group> | ||
<name>Verschiedenes</name> | ||
<class>menu-misc</class> | ||
<link> | ||
<name>Unterprojekte</name> | ||
<href>subprojects/</href> | ||
</link> | ||
<link> | ||
<name>Demos</name> | ||
<href>demos/</href> | ||
</link> | ||
<link> | ||
<name>Pressespiegel</name> | ||
<href>press/</href> | ||
</link> | ||
<link> | ||
<name>Kontakt</name> | ||
<href>contact/</href> | ||
</link> | ||
<link> | ||
<name>Links</name> | ||
<href>links/</href> | ||
</link> | ||
</group> | ||
</menus> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?php | ||
require_once('Controller.php'); | ||
require_once('Models/NewsModel.php'); | ||
require_once('Models/ScreenshotsModel.php'); | ||
|
||
class NewsPage extends Controller { | ||
private $_template; | ||
|
||
/* Constructor. */ | ||
public function __construct() { | ||
parent::__construct(); | ||
$this->_template = 'news.tpl'; | ||
} | ||
|
||
/* Display the index page. */ | ||
public function index() { | ||
$date = isset($_GET['d']) ? $_GET['d'] : null; | ||
|
||
if ($date != null) { | ||
if (strtolower($date) == 'archive' || $date == '') { | ||
$date = null; | ||
} | ||
return $this->getNews($date); | ||
} | ||
return $this->getNewsIntro(); | ||
} | ||
|
||
/* Display a specific news item, or all news items. */ | ||
public function getNews($date = null) { | ||
if ($date == null) { | ||
$news_items = NewsModel::getAllNews(); | ||
$date = 'archive'; | ||
} else { | ||
if (strlen($date) == 8) { | ||
$news_items = NewsModel::getAllByDate($date); | ||
} else { | ||
$news_items = array(NewsModel::getOneByDate($date)); | ||
} | ||
} | ||
|
||
$this->addCSSFiles('news.css'); | ||
|
||
return $this->renderPage( | ||
array( | ||
'title' => 'Home', | ||
'content_title' => 'Latest Developments', | ||
'show_intro' => false, | ||
'news_items' => $news_items, | ||
'news_archive_link' => false, | ||
'date' => $date, | ||
), | ||
$this->_template | ||
); | ||
} | ||
|
||
/* Display the main page with limited news items and intro text. */ | ||
public function getNewsIntro() { | ||
$news_items = NewsModel::getLatestNews(NEWS_ITEMS); | ||
$random_shot = ScreenshotsModel::getRandomScreenshot(); | ||
|
||
$this->addCSSFiles(array( | ||
'intro.css', | ||
'news.css', | ||
'../javascripts/slimbox/css/slimbox2.css', | ||
)); | ||
$this->addJSFiles(array( | ||
'jquery-1.3.2.min.js', | ||
'slimbox/js/slimbox2.js', | ||
'introduction.js', | ||
)); | ||
|
||
|
||
return $this->renderPage( | ||
array( | ||
'title' => 'Startseite', | ||
'content_title' => 'Aktuelle Entwicklungen', | ||
'show_intro' => true, | ||
'news_items' => $news_items, | ||
'news_archive_link' => true, | ||
'random_shot' => $random_shot, | ||
), | ||
$this->_template | ||
); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="box"> | ||
<div class="head">Ein dreiköpfiger Affe!</div> | ||
<div class="intro"> | ||
<h2>Hinter dir, ein dreiköpfiger Affe!</h2> | ||
</div> | ||
<div class="content"> | ||
<img src="images/three-headed-monkey.png" alt="Dreiköpfiger Affe" class="float_right" style="margin-bottom: 5px;"> | ||
<h3>Es gab ein Problem beim Ausführen deiner Anfrage:</h3> | ||
<p>{$exception->getMessage()|nl2br:false}</p> | ||
</div> | ||
<div class="spacing"> </div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div class="box"> | ||
<div class="head"> | ||
FAQ | ||
</div> | ||
<div class="content"> | ||
<div class="news-author">zuletzt aktualisiert: {$modified}</div> | ||
<dl> | ||
{foreach from=$contents item=section name='toc_loop'} | ||
{assign var='toc_num' value=$smarty.foreach.toc_loop.iteration} | ||
<dt>{$toc_num}. <a href="faq/#{$toc_num}">{$section->getTitle()}</a></dt> | ||
<dd> | ||
<dl> | ||
{foreach from=$section->getTOC() key=href item=name name='toc_section_loop'} | ||
{assign var='toc_section_num' value=$smarty.foreach.toc_section_loop.iteration} | ||
<dt>{$toc_num}.{$toc_section_num}. <a href="faq/#{$href}">{$name}</a></dt> | ||
{/foreach} | ||
</dl> | ||
</dd> | ||
{/foreach} | ||
</dl> | ||
|
||
{foreach from=$contents item=section name='section_loop'} | ||
{assign var='section_num' value=$smarty.foreach.section_loop.iteration} | ||
<div class="section"> | ||
<h3 class="title">{$section_num}. {$section->getTitle()}</h3> | ||
<dl> | ||
{foreach from=$section->getTOC() key=href item=name name='question_loop'} | ||
{assign var='question_num' value=$smarty.foreach.question_loop.iteration} | ||
<dt>{$section_num}.{$question_num}. <a href="faq/#{$href}">{$name}</a></dt> | ||
{/foreach} | ||
</dl> | ||
{foreach from=$section->getEntries() item=entry name='entry_loop'} | ||
{assign var='entry_num' value=$smarty.foreach.entry_loop.iteration} | ||
<div class="question">{$section_num}.{$entry_num}. | ||
{foreach from=$entry->getHrefs() item=href name='href_loop'} | ||
<a name="{$href}"></a> | ||
{/foreach} | ||
{$entry->getQuestion()}</div> | ||
<div class="answer">{$entry->getAnswer()}</div> | ||
{/foreach} | ||
</div> | ||
{/foreach} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{* Published date. *} | ||
{assign var='timezone_offset' value=$news[0]->getDate()|date_f:'Z'} | ||
{assign var='updated' value=$news[0]->getDate()-$timezone_offset} | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<feed xml:lang="de" xmlns="http://www.w3.org/2005/Atom"> | ||
<id>{$baseurl}</id> | ||
<link rel="alternate" type="text/html" href="http://www.scummvm.org" /> | ||
<link rel="self" type="application/atom+xml" href="{$baseurl}feeds/atom/" /> | ||
<title type="text">ScummVM-News</title> | ||
<subtitle type="html"><![CDATA[ScummVM ist ein auf mehreren Plattformen lauffähiger Interpreter für verschiedene Point-and-Click-Adventures. Darunter enthalten sind alle SCUMM-basierten Spiele von LucasArts, Simon the Sorcerer 1&2 von AdventureSoft, Beneath a Steel Sky und Broken Swort I & II von Revolution, sowie viele mehr.]]></subtitle> | ||
|
||
<icon>{$baseurl}favicon.ico</icon> | ||
<author> | ||
<name>ScummVM team</name> | ||
<uri>http://www.scummvm.org/</uri> | ||
</author> | ||
<updated>{$updated|date_f:'Y-m-d\Th:i:s\Z'}</updated> | ||
{foreach from=$news item=n} | ||
{assign var='timezone_offset' value=$n->getDate()|date_f:'Z'} | ||
{assign var='updated' value=$n->getDate()-$timezone_offset} | ||
{assign var='news_filename' value=$n->getFilename()|substr:'0':'-4'} | ||
|
||
<entry xml:lang="en"> | ||
<id>{$baseurl}news/archive/#{$n->getDate()|date_f:'Y-m-d'}{if $news_filename|strlen == 9}{$news_filename|substr:'-1'}{/if}</id> | ||
<link rel="alternate" href="{$baseurl}news/{$news_filename}/" /> | ||
<updated>{$updated|date_f:'Y-m-d\Th:i:s\Z'}</updated> | ||
<published>{$updated|date_f:'Y-m-d\Th:i:s\Z'}</published> | ||
<title type="html">{$n->getTitle()}</title> | ||
<content type="html" xml:base="http://www.scummvm.org"><![CDATA[{$n->getContent()}]]></content> | ||
{if $n->getAuthor() != ''} | ||
<author><name>{$n->getAuthor()}</name></author> | ||
{/if} | ||
</entry> | ||
{/foreach} | ||
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding='UTF-8' ?> | ||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>ScummVM news</title> | ||
<link>http://www.scummvm.org/</link> | ||
<atom:link rel="self" type="application/rss+xml" href="{$baseurl}feeds/rss/" /> | ||
<description>ScummVM ist ein auf mehreren Plattformen lauffähiger Interpreter für verschiedene Point-and-Click-Adventures. Darunter enthalten sind alle SCUMM-basierten Spiele von LucasArts, Simon the Sorcerer 1&2 von AdventureSoft, Beneath a Steel Sky und Broken Swort I & II von Revolution, sowie viele mehr.</description> | ||
<language>de</language> | ||
{foreach from=$news item=n} | ||
{assign var='news_filename' value=$n->getFilename()|substr:'0':'-4'} | ||
<item> | ||
<title>{$n->getTitle()}</title> | ||
<description><![CDATA[{$n->getContent()}]]></description> | ||
<pubDate>{$n->getDate()|date_f:'r'}</pubDate> | ||
{if $n->getAuthor() != ''} | ||
<author>nospam@scummvm.org ({$n->getAuthor()})</author> | ||
{/if} | ||
<guid isPermaLink='true'>{$baseurl}news/archive/#{$n->getDate()|date_f:'Y-m-d'}{if $news_filename|strlen == 9}{$news_filename|substr:'-1'}{/if}</guid> | ||
<link>{$baseurl}news/{$news_filename}/</link> | ||
</item> | ||
{/foreach} | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script type="text/javascript" src="javascripts/jquery-1.3.2.min.js"></script> | ||
<script type="text/javascript" src="javascripts/game_demos.js"></script> | ||
|
||
<div class="box"> | ||
<div class="intro"> | ||
<div class="navigation"> | ||
<h2>Navigation</h2> | ||
<ul> | ||
{foreach from=$demos item=group} | ||
<li><a href="demos/#{$group.href}">{$group.name}</a></li> | ||
{/foreach} | ||
</ul> | ||
</div> | ||
<div class="text"> | ||
<p> | ||
Diese Seite listet Demo-Versionen von verschiedenen Spielen auf. Bitte kontaktiere uns, wenn du eine Demo-Version besitzt, die hier nicht aufgeführt ist. | ||
</p> | ||
<p> | ||
Aus technischen Gründen werden Demo-Versionen von Beneath a Steel Sky nicht unterstützt. | ||
</p> | ||
</div> | ||
<div class="spacing"> </div> | ||
</div> | ||
<div class="content"> | ||
{foreach from=$demos item=group} | ||
<a name="{$group.href}"></a> | ||
<table class="chart color4 gameDemos"> | ||
<caption>{$group.name}</caption> | ||
<thead> | ||
<tr class="color4"> | ||
<th>Demo-Name / Download-Link</th> | ||
<th class="gameTarget">Game Target</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{foreach from=$group.demos item=demo} | ||
<tr class="{cycle values="color2, color0"}"> | ||
<td> | ||
<img src="images/cat-{$demo->getCategory()}.png" class="downloadImage"> | ||
<a href="{$demo->getURL()}">{$demo->getName()}</a> | ||
</td> | ||
<td class="gameTarget">{$demo->getTarget()}</td> | ||
</tr> | ||
{/foreach} | ||
</tbody> | ||
</table> | ||
{/foreach} | ||
</div> | ||
</div> |
Oops, something went wrong.