Mercurial > hg > fapweb
diff about.inc.php @ 123:5837b9333964
Add new "about" page, and setting for default page.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Oct 2013 15:18:09 +0300 |
parents | |
children | 0b5c22e253e1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/about.inc.php Tue Oct 22 15:18:09 2013 +0300 @@ -0,0 +1,12 @@ +<? +echo stGetSetting("aboutDescription"); + +if (stGetSetting("showNewsOnAbout") && + ($res = stExecSQL("SELECT * FROM news ORDER BY utime DESC LIMIT 1")) !== FALSE) +{ + foreach ($res as $item) + stPrintNewsItem($item); + + echo "<a class=\"moreNews\" href=\"news\">More news ...</a>\n"; +} +?>