Skip to content

Commit

Permalink
Using classes for images
Browse files Browse the repository at this point in the history
  • Loading branch information
marzojr committed May 1, 2024
1 parent 7bb663e commit 40b0b28
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 75 deletions.
6 changes: 3 additions & 3 deletions april2004.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ <h3>
<td align="center">
<a href="http://sourceforge.net"><img
src="http://sourceforge.net/sflogo.php?group_id=2335&amp;type=1"
alt="SourceForge" height="31" width="88" border="0"></a>
alt="SourceForge" class="banner"></a>
&nbsp;
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!" height="31"
width="88" border="0"></a>
src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!"
class="banner"></a>
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion aprilfools.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h1 align="center">
</table>
<br />
<div align="center">
<a href="http://www.ea.com/"><img alt="EA.com" src="eacom.png" height="32" width="128" border="0"></a>
<a href="http://www.ea.com/"><img alt="EA.com" src="eacom.png" class="ea_logo"></a>
</div>
</body>

Expand Down
2 changes: 1 addition & 1 deletion content/news.dat
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
in a close race with <a href="http://nuvie.sf.net">Nuvie</a>.<br/>
Our prize was a hand signed certificate by our Liege Lord British to each member of the
development team.<br/>
<a href="images/screenshots/project2014.png"><img src="images/screenshots/thumbs/project2014.png" width="245" height="321" vspace="5" hspace="10" alt="Fan Project 2014 certificate" border="0"></a></p>
<a href="images/screenshots/project2014.png"><img src="images/screenshots/thumbs/project2014.png" class="certificate" alt="Fan Project 2014 certificate"></a></p>
<p><b><u>Exult on an iPhone/iPad</u></b><br/>
Chaoji Li (aka Litchie) forked Exult on <a href="https://github.com/litchie/exult-ios">Github</a> to work
on the initial porting effort by Lanica Dragon (which had stopped in 2013).<br/>
Expand Down
48 changes: 24 additions & 24 deletions content/screenshots.dat
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?php
add_screenshot("mainmenu.png",160,100,"The Exult Menu");
add_screenshot("cheat.png",160,100,"The Cheats");
add_screenshot("stage.png",160,105,"The Britannia Theater");
add_screenshot("mainmenu.png", "The Exult Menu");
add_screenshot("cheat.png", "The Cheats");
add_screenshot("stage.png", "The Britannia Theater");

add_screenshot("love.png",160,106,"Love Test from Forge of Virtue");
add_screenshot("bgpaper.png",160,120,"Paperdolls in Black Gate");
add_screenshot("si.png",160,100,"Serpent Isle");
add_screenshot("love.png", "Love Test from Forge of Virtue");
add_screenshot("bgpaper.png", "Paperdolls in Black Gate");
add_screenshot("si.png", "Serpent Isle");

add_screenshot("alagnar.png",160,104,"Alagnar");
add_screenshot("blackgate.png",160,104,"The Black Gate");
add_screenshot("savescrn.png",160,100,"The new savegame interface");
add_screenshot("stats2.png",160,116,"Stats display");
add_screenshot("alagnar.png", "Alagnar");
add_screenshot("blackgate.png", "The Black Gate");
add_screenshot("savescrn.png", "The new savegame interface");
add_screenshot("stats2.png", "Stats display");

add_screenshot("exult_studio1.jpg",160,116,"ExultStudio");
add_screenshot("exult_studio2.png",160,120,"ExultStudio");
add_screenshot("exult_studio1.jpg", "ExultStudio");
add_screenshot("exult_studio2.png", "ExultStudio");

add_screenshot("gamemenu.png",160,100,"The game menu");
add_screenshot("videomenu.png",160,100,"The video menu");
add_screenshot("audiomenu.png",160,100,"The audio menu");
add_screenshot("gameplaymenu.png",160,100,"The gameplay menu");
add_screenshot("cheatmenu.png",160,100,"Colourless' cheat menu");
add_screenshot("gamemenu.png", "The game menu");
add_screenshot("videomenu.png", "The video menu");
add_screenshot("audiomenu.png", "The audio menu");
add_screenshot("gameplaymenu.png", "The gameplay menu");
add_screenshot("cheatmenu.png", "Colourless' cheat menu");

add_screenshot("multiracial.png",160,100,"Multiracial support in BG");
add_screenshot("shapebrowser.png",160,100,"The shape browser");
add_screenshot("teleportmap.png",160,100,"The teleport map");
add_screenshot("multiracial.png", "Multiracial support in BG");
add_screenshot("shapebrowser.png", "The shape browser");
add_screenshot("teleportmap.png", "The teleport map");

add_screenshot("interlaced.png",160,100,"The interlaced scaler");
add_screenshot("textbg.png",160,100,"The shaded background behind text");
add_screenshot("uccshot1.png", 160,100, "Conversation script");
add_screenshot("uccshot2.png", 160,100, "Conversation script");
add_screenshot("interlaced.png", "The interlaced scaler");
add_screenshot("textbg.png", "The shaded background behind text");
add_screenshot("uccshot1.png", "Conversation script");
add_screenshot("uccshot2.png", "Conversation script");
?>
28 changes: 14 additions & 14 deletions content/screenshots_zaurus.dat
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
add_screenshot("z_front.jpg",200,267,"Zaurus");
add_screenshot("z_opened.jpg",200,267,"Zaurus");
add_screenshot("z_exult_icon.jpg",267,200,"Exult Icon");
add_screenshot("z2_exultmenu.jpg",300,200,"Exult Menu");
add_screenshot("z2_simenu.jpg",300,200,"Serpent Isle");
add_screenshot("z2_create_character.jpg",300,200,"Character Creation");
add_screenshot("z2_BlueScreenOfJoy.jpg",300,200,"Blue Screen of Joy");
add_screenshot("z2_beginning.jpg",300,200,"The Beginning");
add_screenshot("z2_conv.jpg",300,200,"Conversation");
add_screenshot("z2_walking.jpg",300,200,"Walking");
add_screenshot("z2_inventory.jpg",300,200,"Inventory");
add_screenshot("z2_save_dialogue.jpg",300,200,"Savegame Menu");
add_screenshot("z_front.jpg", "Zaurus");
add_screenshot("z_opened.jpg", "Zaurus");
add_screenshot("z_exult_icon.jpg", "Exult Icon");
add_screenshot("z2_exultmenu.jpg", "Exult Menu");
add_screenshot("z2_simenu.jpg", "Serpent Isle");
add_screenshot("z2_create_character.jpg", "Character Creation");
add_screenshot("z2_BlueScreenOfJoy.jpg", "Blue Screen of Joy");
add_screenshot("z2_beginning.jpg", "The Beginning");
add_screenshot("z2_conv.jpg", "Conversation");
add_screenshot("z2_walking.jpg", "Walking");
add_screenshot("z2_inventory.jpg", "Inventory");
add_screenshot("z2_save_dialogue.jpg", "Savegame Menu");

add_screenshot("artaxerxes.jpg", "Artaxerxes");

add_screenshot("artaxerxes.jpg",200,164,"Artaxerxes");

?>
32 changes: 26 additions & 6 deletions default.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,37 @@ div.centered {
display: block;
}

img.about_exult_image{
display: block;
margin-top: 0.4em;
margin-bottom: 0.4em;
margin-left: 0.6em;
margin-right: 0.6em;
img.about_exult_image {
margin: 0.6em;
width: 160px;
height: 100px;
border: 0;
}

img.certificate {
margin: 0.6em;
width: 245px;
height: 321px;
border: 0;
}

img.screenshot {
margin: 0.6em;
width: 160px;
height: 100px;
border: 0;
}

img.screenshot_zaurus {
margin: 0.6em;
border: 0;
}

img.ea_logo {
margin: 0.6em;
border: 0;
}

/* Light theme */

body {
Expand Down
12 changes: 5 additions & 7 deletions screenshots.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$DATAFILE = "screenshots.dat";
$CUSTOM_PARSE = true;

include( "base.inc" );
include( "base.inc" );



Expand All @@ -14,26 +14,24 @@
)
);


// dirty trick to seperate data and content a bit ;)
include("content/screenshots.dat");

$tpl->parse("CONTENT", "screenshots");
add_topic_headline($HEADLINE);
$tpl->parse("MAIN", "main");
$tpl->FastPrint();
exit;


function add_screenshot( $file, $width, $height, $desc )
function add_screenshot( $file, $desc )
{
global $tpl, $picture_count;

$tpl->assign(
array(
"FILENAME" => $file,
"WIDTH" => $width,
"HEIGHT" => $height,
"DESCRIPTION" => $desc
)
);
Expand Down
13 changes: 4 additions & 9 deletions screenshots_zaurus.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
$DATAFILE = "screenshots_zaurus.dat";
$CUSTOM_PARSE = true;

include( "base.inc" );


include( "base.inc" );

$tpl->define(
array(
Expand All @@ -14,26 +12,23 @@
)
);


// dirty trick to seperate data and content a bit ;)
include("content/screenshots_zaurus.dat");

$tpl->parse("CONTENT", "screenshots");
add_topic_headline($HEADLINE);
$tpl->parse("MAIN", "main");
$tpl->FastPrint();
exit;


function add_screenshot( $file, $width, $height, $desc )
function add_screenshot( $file, $desc )
{
global $tpl, $picture_count;

$tpl->assign(
array(
"FILENAME" => $file,
"WIDTH" => $width,
"HEIGHT" => $height,
"DESCRIPTION" => $desc
)
);
Expand Down
6 changes: 3 additions & 3 deletions templates/main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
<td align="center">
<a href="http://sourceforge.net"><img
src="http://sourceforge.net/sflogo.php?group_id=2335&amp;type=1"
alt="SourceForge" height="31" width="88" border="0"></a>
alt="SourceForge" class="banner"></a>
&nbsp;
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!" height="31"
width="88" border="0"></a>
src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!"
class="banner"></a>
</td>
</tr>
<tr>
Expand Down
6 changes: 3 additions & 3 deletions templates/main_xhtml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@
<td align="center">
<a href="http://sourceforge.net"><img
src="http://sourceforge.net/sflogo.php?group_id=2335&amp;type=1"
alt="SourceForge" height="31" width="88" border="0" /></a>
alt="SourceForge" class="banner"></a>
&nbsp;
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!" height="31"
width="88" border="0" /></a>
src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!"
class="banner"></a>
</td>
</tr>
<tr>
Expand Down
4 changes: 1 addition & 3 deletions templates/screenshot.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
<a href="images/screenshots/{FILENAME}">
<img src="images/screenshots/thumbs/{FILENAME}" width="{WIDTH}" height="{HEIGHT}" vspace="5" hspace="10" alt="{DESCRIPTION}" border="0" />
</a>
<a href="images/screenshots/{FILENAME}"><img src="images/screenshots/thumbs/{FILENAME}" class="screenshot" alt="{DESCRIPTION}" /></a>
2 changes: 1 addition & 1 deletion templates/screenshot_zaurus.tpl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img src="images/screenshots/zaurus/{FILENAME}" width="{WIDTH}" height="{HEIGHT}" vspace="5" hspace="10" alt="{DESCRIPTION}" border="0" />
<img src="images/screenshots/zaurus/{FILENAME}" class="screenshot_zaurus" alt="{DESCRIPTION}" />

0 comments on commit 40b0b28

Please sign in to comment.