Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Homepage: Added more pages, improved layout responsiveness
New pages for recent blog posts and donating.
- Loading branch information
Showing
35 changed files
with
324 additions
and
55 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ErrorDocument 404 index.php | ||
|
||
RewriteEngine on | ||
RewriteBase /web2 | ||
|
||
|
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,36 @@ | ||
<?php | ||
require_once('include/template.inc.php'); | ||
$page_title = ''; | ||
generate_page_header($page_title); | ||
?> | ||
<body> | ||
<?php | ||
include('include/topbar.inc.php'); | ||
generate_page_title($page_title); | ||
?> | ||
<div id='content'> | ||
<div id='page-content'> | ||
<div class="block"> | ||
<article> | ||
<h1>Donate to support the project</h1> | ||
<p>Doomsday Engine is a long-running open source project. | ||
Since its inception in 1999, it has been fueled by nostalgia | ||
and the passion of its developers. However, those things | ||
unfortunately cannot pay for web hosting, code signing keys, | ||
build server upgrades, and other running costs.</p> | ||
<p>If you enjoy Doomsday and wish to see its development continue | ||
at full speed, please consider making a donation. | ||
</p> | ||
</article> | ||
</div> | ||
<div class="block"> | ||
<article> | ||
<h1>PayPal</h1> | ||
<p><a href="http://sourceforge.net/p/deng/donate/?source=navbar">Support Doomsday Engine development →</a></p> | ||
</article> | ||
</div> | ||
</div> | ||
<?php generate_sidebar(); ?> | ||
</div> | ||
<?php generate_sitemap(); ?> | ||
</body> |
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
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
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
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
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,66 @@ | ||
<?php | ||
require_once('include/template.inc.php'); | ||
$page_title = 'Recent Blog Posts'; | ||
generate_page_header($page_title); | ||
|
||
function cmp_post($a, $b) | ||
{ | ||
return strcmp($b->date, $a->date); | ||
} | ||
|
||
function generate_post_blocks() | ||
{ | ||
// Fetch the cached blog entries. | ||
cache_try_load(cache_key('news', 'news'), -1); | ||
$news = json_decode(cache_get()); | ||
cache_try_load(cache_key('news', 'dev'), -1); | ||
$dev = json_decode(cache_get()); | ||
|
||
$posts = array_merge($news->posts, $dev->posts); | ||
usort($posts, "cmp_post"); | ||
|
||
for ($i = 0; $i < count($posts); $i++) { | ||
$post = $posts[$i]; | ||
$url = $post->url; | ||
$category = $post->categories[0]; | ||
$cat_link = '/blog/category/'.$category->slug; | ||
$date = reformat_date($post->date); | ||
$tags = ''; | ||
foreach ($post->tags as $tag) { | ||
$tags .= " <div class='post-tag'><a href='/blog/tag/$tag->slug'>$tag->title</a></div>"; | ||
} | ||
echo( | ||
"<div class='block blog-post'> | ||
<article> | ||
<h1><a href='$url'>$post->title</a></h1> | ||
<div class='post-metadata'> | ||
<a class='post-category' href='$cat_link'>$category->title</a> · | ||
<time datetime='$post->date'>$date</time> · | ||
<span class='post-author'>".$post->author->name."</span> · | ||
$tags | ||
</div> | ||
<div class='post-content'>$post->content</div> | ||
</article> | ||
</div>\n"); | ||
} | ||
} | ||
|
||
?> | ||
<body> | ||
<?php | ||
include('include/topbar.inc.php'); | ||
generate_page_title($page_title); | ||
?> | ||
<div id='content'> | ||
<div id='page-content'> | ||
<?php generate_post_blocks(); ?> | ||
<div class='block'> | ||
<article> | ||
<p><a href="/blog">More blog posts →</a></p> | ||
</article> | ||
</div> | ||
</div> | ||
<?php generate_sidebar(); ?> | ||
</div> | ||
<?php generate_sitemap(); ?> | ||
</body> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.