Example #1
0
$feed = new SimplePie();
$feed->set_feed_url('http://sourceforge.net/export/rss2_projnews.php?group_id=236485');
$feed->set_cache_location('./engine/simplepie/cache');
$feed->init();
print "<ul class=\"rssfeeditems\">\n";
foreach ($feed->get_items(0, 3) as $item) {
    //for the last 3 news items...
    print "  <li><a href=\"" . $item->get_link() . "\">" . $item->get_title() . "</a> <em>" . $item->get_date(__('Y-m-d')) . "</em></li>\n";
}
print "  <li><a href=\"http://sourceforge.net/news/?group_id=236485\">" . __('View all news &hellip;') . "</a></li>\n";
print "</ul>\n";
?>

<?php 
$page->printRssHeading(__('Download'), 'http://sourceforge.net/export/rss2_projfiles.php?group_id=236485', 'download');
$page->printSubHeading(__('Stable releases'));
?>
				<ul>
					<li><a href="https://sourceforge.net/project/showfiles.php?group_id=236485&amp;package_id=308801&amp;release_id=688790">
						Frhed 1.6.0</a> (2009-06-23)</li>
					<li><a href="https://sourceforge.net/project/showfiles.php?group_id=236485&amp;package_id=308801&amp;release_id=674196">
						Frhed 1.4.2</a> (2009-04-07)</li>
					<li><a href="https://sourceforge.net/project/showfiles.php?group_id=236485&amp;package_id=308801&amp;release_id=658634">
						Frhed 1.4.0</a> (2009-02-04)</li>
				</ul>
<?php 
$page->printSubHeading(__('Beta releases'));
?>
				<ul>
					<li><a href="https://sourceforge.net/project/showfiles.php?group_id=236485&amp;package_id=307097&amp;release_id=688792">
						Frhed 1.5.10</a> (2009-06-10)</li>
Example #2
0
$page->printHeading(__('Translations'));
$page->printPara(__('We currently have Frhed translated into the languages listed below:'));
print "<ul>\n";
try {
    $status = new TranslationsStatus('status_trunk.xml');
    $languages = $status->getLanguagesArray();
    foreach ($languages as $language) {
        //for all languages...
        print "  <li>" . __($language) . "</li>\n";
    }
} catch (Exception $ex) {
    //If problems with translations status...
    print "  <li>" . __('English') . "</li>\n";
}
print "</ul>\n";
$page->printSubHeading(__('Status'));
$page->printPara(__('The following two pages inform you about the translations status of the stable and developer version of Frhed:'));
?>
<ul>
  <li><a href="status_branch.php"><?php 
__e('Stable Version (Branch)');
?>
</a> <?php 
$page->printRssFeedLink('status_branch_rss.php');
?>
</li>
  <li><a href="status_trunk.php"><?php 
__e('Unstable Version (Trunk)');
?>
</a> <?php 
$page->printRssFeedLink('status_trunk_rss.php');
Example #3
0
<?php

//Send 404 headers...
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
include_once 'engine/engine.inc';
$page = new Page();
$page->printHead(__('Error 404 (Page Not Found)'), TAB_HOME);
$page->printHeading(__('Page Not Found...'));
$page->printPara(__('For some reason (mis-typed URL, faulty referral from another site, out-of-date search engine listing or we simply deleted a file) the page you were looking for could not be found.'), __('This site has recently undergone a major re-working, so that might explain why you got this page instead.'));
$page->printSubHeading(__('Were you looking for...'));
?>
<ul>
  <li><?php 
__e('<a href="%s">Download</a>?', $translations->prepareLink('/{lang}/#download'));
?>
</li>
  <li><?php 
__e('<a href="%s">Screenshots</a>?', $translations->prepareLink('/{lang}/screenshots/'));
?>
</li>
  <li><?php 
__e('<a href="%s">Support</a>?', $translations->prepareLink('/{lang}/#support'));
?>
</li>
  <li><?php 
__e('<a href="%s">Translations</a>?', $translations->prepareLink('/{lang}/translations/'));
?>
</li>
</ul>
<?php 
Example #4
0
<?php

$page = new Page();
$page->printHead(__('Screenshots'));
$page->printHeading(__('Screenshots'));
$page->printSubHeading(__('Main Window'));
?>
<a href="/sites/screenshots/frhed_main_window.png" target="_blank"><img src="/sites/screenshots/frhed_main_window_small.png" alt="<?php 
__e('Main Window');
?>
" style="border:none;" /></a>
<?php 
$page->printPara(__('The main window from Frhed.'));
$page->printFoot();