mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 07:11:43 +00:00
my first php. forgive me :)
This commit is contained in:
parent
d8a027a855
commit
5205659bda
2 changed files with 20 additions and 3 deletions
11
screenshots.php
Normal file
11
screenshots.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<? // Preamble
|
||||
$pageName = "Page Name";
|
||||
$focused = "none"; // Dock icon name to gets a border
|
||||
require("parts/preamble.php"); // Load most of document
|
||||
?>
|
||||
<!--SEARCHME-->
|
||||
Page content goes here. Yes, it's that simple.
|
||||
<!--NOSEARCH-->
|
||||
<?
|
||||
require("parts/postamble.php"); // Finish this sucker up
|
||||
?>
|
12
template.php
12
template.php
|
@ -2,10 +2,16 @@
|
|||
$pageName = "Page Name";
|
||||
$focused = "none"; // Dock icon name to gets a border
|
||||
require("parts/preamble.php"); // Load most of document
|
||||
|
||||
function screenshot ($caption, $thumb, $full)
|
||||
{
|
||||
echo '<a href="img/screenshots/' "$full" '">' ,
|
||||
echo '<img src="img/screenshots/' "$thumb" '" alt="fullsize" border="2">' ,
|
||||
echo '</a>'
|
||||
echo "<p>$caption</p>"
|
||||
}
|
||||
?>
|
||||
<!--SEARCHME-->
|
||||
Page content goes here. Yes, it's that simple.
|
||||
<!--NOSEARCH-->
|
||||
<? screenshot ('Elderworld pool in id1vis with r_wateralpha 0.3' 'wateralpha-0.3.jpg', 'wateralpha-0.3.png') ?>
|
||||
<?
|
||||
require("parts/postamble.php"); // Finish this sucker up
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue