Article photo
From Photostand Wiki
article_photo(prefix, suffix)
The article_photo is used to display every photos associated with the current article. It will always generate the complete Img tag. This function must be used in the index.php page.
[edit]
Parameters
- Prefix : String value
HTML value that must be displayed before each photo.
- Suffix : String value
HTML value that must be displayed after each photo.
[edit]
Examples
Displaying photos
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Article</title>
</head>
<body>
<ul>
<?php echo article_photo('<li>', '</li>'); ?>
</ul>
</body>
</html>
In the above example, each photo will be generated between <li> and </li> tags.
Adding the previous link to photos
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Article</title>
</head>
<body>
<ul>
<?php echo article_photo('<li><a href="'. article_previous() .'">', '</a></li>'); ?>
</ul>
</body>
</html>
Here, the photos will also be generated in an HTML list and there will be a link pointing toward the previous article on each photo.

