Archives thumbnails row

From Photostand Wiki

Jump to: navigation, search
archives_thumbnails_row(thumbclass, number)

The archives_thumbnails_row function will display a thumbnail row of the latest articles.

Parameters

  • Thumbclass : String value

Thumbnails class atribute.

  • Number : Integer value - Default : 5

Number of thumbnails that must be displayed.

Examples

In the archives.php page

Adding the months list

<!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>Archives</title>

    </head>
    <body>

        <div>
	    <?php echo archives_thumbnails_row("thumb", 10); ?>
	</div>

    </body>
</html>

Here, a simple thumbnail row containing 10 thumbnails. Each img tag will be associated to the thumb class.

Personal tools