show_comic

show_comic(thumbnail) — display the current comic file(s)

Description

This tag displays the comic files for the day being shown. For comic posts that have one or more comic_file custom fields set, those files will be shown. Otherwise, stripShow will search for files matching your chosen date format in your comics directory (see the section called “Date-based comic filenames”).

What form this takes depends on the format of the files themselves. Image files get displayed via the HTML <img> tag, Flash files via the <object> tag, and text and HTML files are simply inserted into the page as-is.

For graphical comic files (such as GIF or JPEG), the show_comic tag automatically determines the image's dimensions in pixels and uses those as arguments to the <img> tag. The comic post's title is used as the tag's title and alt attributes.

Usage

Example A.10. Basic Usage

<?php show_comic() ?>

This would produce the following output:

<img height="285px" width="794px" src="http://www.example.com/wp-content/stripshow_comics/20090220.png" alt="Comic for February 20, 2009" title="Comic for February 20, 2009" />

Example A.11. Advanced Usage

<?php show_comic(TRUE) ?>

This would produce the following output:

<img height="143px" width="397px" src="http://www.example.com/wp-content/stripshow_comics/20090220.png" alt="Comic for February 20, 2009" title="Comic for February 20, 2009" />

Arguments

argument type default description
thumbnail boolean FALSE Scale the comic down (to the size specified in stripShow Options) for display