comicpress-2.8/functions/multicomics.php

24 lines
593 B
PHP

<?php
/**
* function display_comics_multi
* July 26th, 2009
* Philip M. Hofer (Frumph)
*
* Displays multiple comics based on the array return with get_comic_path ($folder, $override_post, $filter, #) 0=no array, 1=array;
*/
function display_comics_multi() {
global $post;
if (($result = get_comic_path('comic', '', '', 1)) !== false) {
foreach ($result as $pathto_comic) { ?>
<div class="comicdisp">
<img src="<?php echo get_option('home'). '/' .$pathto_comic; ?>" alt="<?php the_title(); ?>" title="<?php the_hovertext(); ?>" />
</div>
<?php }
}
return false;
}
?>