2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-26 17:12:13 +00:00

Split the news and downloads into separate entries, to be able to add webnotes to each entry individually.

[SVN r101]
This commit is contained in:
Rene Rivera
2006-05-23 23:50:32 +00:00
parent 6acd45afa6
commit d95589dff1
5 changed files with 151 additions and 5 deletions

72
users/download/entry.php Normal file
View File

@@ -0,0 +1,72 @@
<?php
require dirname(__FILE__) . '/../../common/code/feed.php';
$_downloads = new boost_feed(dirname(__FILE__) . '/../../downloads.rss', '/users/download');
$_guid = basename($_SERVER["PATH_INFO"]);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Boost Downloads</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link rel="icon" href="/favicon.ico" type="image/ico" />
<link rel="stylesheet" type="text/css" href="/style/section-boost.css" />
<!--[if IE]> <style type="text/css"> body { behavior: url(/style/csshover.htc); } </style> <![endif]-->
</head>
<body>
<div id="heading">
<?php virtual("/common/heading.html"); ?>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div class="section" id="intro">
<div class="section-0">
<div class="section-title">
<h1>Boost Downloads</h1>
</div>
<div class="section-body">
<h2><span class=
"news-title"><?php print $_downloads->db[$_guid]['title']; ?></span>
<span class=
"news-date"><?php print $_downloads->db[$_guid]['date']; ?></span></h2>
<div class="news-description">
<?php print $_downloads->db[$_guid]['description']; ?>
</div>
</div>
</div>
</div>
</div>
<div id="sidebar">
<?php virtual("/common/sidebar-common.html"); ?><?php virtual("/common/sidebar-boost.html"); ?>
</div>
<div class="clear"></div>
</div>
</div>
<div id="footer">
<div id="footer-left">
<div id="revised">
<p>Revised $Date$</p>
</div>
<div id="copyright">
<p>Copyright Rene Rivera 2006.</p>
</div><?php virtual("/common/footer-license.html"); ?>
</div>
<div id="footer-right">
<?php virtual("/common/footer-banners.html"); ?>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -43,7 +43,7 @@ $_downloads = new boost_feed(dirname(__FILE__) . '/../../downloads.rss', '/users
"news-date"><?php print $_item['date']; ?></span></h2>
<div class="news-description">
<?php print $_item['description']; ?>
<?php print $_item['brief']; ?>
</div><?php } ?>
</div>
</div>

72
users/news/entry.php Normal file
View File

@@ -0,0 +1,72 @@
<?php
require dirname(__FILE__) . '/../../common/code/feed.php';
$_news = new boost_feed(dirname(__FILE__) . '/../../news.rss', '/users/news');
$_guid = basename($_SERVER["PATH_INFO"]);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Boost News</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link rel="icon" href="/favicon.ico" type="image/ico" />
<link rel="stylesheet" type="text/css" href="/style/section-boost.css" />
<!--[if IE]> <style type="text/css"> body { behavior: url(/style/csshover.htc); } </style> <![endif]-->
</head>
<body>
<div id="heading">
<?php virtual("/common/heading.html"); ?>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div class="section" id="intro">
<div class="section-0">
<div class="section-title">
<h1>Boost News</h1>
</div>
<div class="section-body">
<h2><span class=
"news-title"><?php print $_news->db[$_guid]['title']; ?></span>
<span class=
"news-date"><?php print $_news->db[$_guid]['date']; ?></span></h2>
<div class="news-description">
<?php print $_news->db[$_guid]['description']; ?>
</div>
</div>
</div>
</div>
</div>
<div id="sidebar">
<?php virtual("/common/sidebar-common.html"); ?><?php virtual("/common/sidebar-boost.html"); ?>
</div>
<div class="clear"></div>
</div>
</div>
<div id="footer">
<div id="footer-left">
<div id="revised">
<p>Revised $Date$</p>
</div>
<div id="copyright">
<p>Copyright Rene Rivera 2006.</p>
</div><?php virtual("/common/footer-license.html"); ?>
</div>
<div id="footer-right">
<?php virtual("/common/footer-banners.html"); ?>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -1,6 +1,7 @@
<?php
require dirname(__FILE__) . '/../../common/code/feed.php';
$_news = new boost_feed(dirname(__FILE__) . '/../../news.rss', '/users/news');
$_news->sort_by('pubdate');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -43,7 +44,7 @@ $_news = new boost_feed(dirname(__FILE__) . '/../../news.rss', '/users/news');
"news-date"><?php print $_item['date']; ?></span></h2>
<div class="news-description">
<?php print $_item['description']; ?>
<?php print $_item['brief']; ?>
</div><?php } ?>
</div>
</div>