forked from Gnucash/gnucash-htdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.phtml
36 lines (35 loc) · 1.36 KB
/
news.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
include("lang.php");
$title = T_("News");
$description = T_("Announcement of New Releases, Server Maintenance …");
$page = basename($_SERVER['SCRIPT_NAME']);
include("externals/header.phtml");
include("externals/menu.phtml");
?>
<div id="content">
<div id="newscontainer">
<h1><?php echo T_("GnuCash News"); ?></h1>
<p><?=$description?></p>
<?php
if (!isset($top_dir)) { $top_dir = $GLOBALS["top_dir"]; }
echo("<!-- top_dir = $top_dir , home = $home -->\n");
# News will continue to be translated separately because
# of the .txt format.
# for english, the lang and en news path are identical
$en_newspath = $top_dir."/news";
$lang_newspath = $top_dir."/news/".$lang_dir;
$oldnews = false;
include("$top_dir/news/news-script.php");
emit_news($en_newspath, $lang_newspath, $oldnews);
?>
<div class="newsborder">
<div class="newsheader"><img alt="news panel" src="<?=$top_dir;?>/images/icons/document.txt.gif" />
<a href="oldnews.phtml"><?php echo T_("Older Announcements");?></a>
</div>
<div class="newsinner">
<?php echo T_("Click <a href=\"oldnews.phtml\">here</a> for older announcements.");?>
</div> <!-- newsinner -->
</div> <!-- newsborder -->
</div> <!-- newscontainer -->
</div> <!-- content -->
<?php include("externals/footer.phtml"); ?>