Mercurial > hg > fapweb
annotate pages/about.inc.php @ 660:fe1ca8a26e78
Adjust the HTML of about page a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 05 Nov 2014 15:27:38 +0200 |
parents | 9ad53fda22bc |
children | ffacd904fd1f |
rev | line source |
---|---|
123
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 <? |
160
0980e705dea0
Add some copyright headers.
Matti Hamalainen <ccr@tnsp.org>
parents:
159
diff
changeset
|
2 // |
571
ce11ea112a65
Change the header blurb a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
565
diff
changeset
|
3 // FAPWeb - Simple Web-based Demoparty Management System |
160
0980e705dea0
Add some copyright headers.
Matti Hamalainen <ccr@tnsp.org>
parents:
159
diff
changeset
|
4 // About page |
565 | 5 // (C) Copyright 2012-2014 Tecnic Software productions (TNSP) |
160
0980e705dea0
Add some copyright headers.
Matti Hamalainen <ccr@tnsp.org>
parents:
159
diff
changeset
|
6 // |
621 | 7 echo stGetSetting("aboutDescription"); |
8 | |
9 if (stGetSetting("showInfoTextOnAbout")) | |
10 echo stGetSetting("siteInfoText"); | |
123
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 |
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 if (stGetSetting("showNewsOnAbout") && |
159
0b5c22e253e1
Show 2 latest news items on the about page.
Matti Hamalainen <ccr@tnsp.org>
parents:
123
diff
changeset
|
13 ($res = stExecSQL("SELECT * FROM news ORDER BY utime DESC LIMIT 2")) !== FALSE) |
123
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 { |
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 foreach ($res as $item) |
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 stPrintNewsItem($item); |
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 |
660
fe1ca8a26e78
Adjust the HTML of about page a bit.
Matti Hamalainen <ccr@tnsp.org>
parents:
621
diff
changeset
|
18 echo "<div class=\"moreNews\"><a href=\"news\">More news ...</a></div>\n"; |
123
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 } |
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 ?> |