/** * 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 echo the_hovertext(); ?> " /> </div> <?php } } return false; }
function comicpress_display_comic() { global $post; $comic = explode(".", the_comic_filename()); switch (strtolower($comic[1])) { case 'swf': $output = comicpress_display_comic_swf(); break; case 'png': case 'gif': case 'jpg': default: $output = comicpress_display_comic_image('comic', false, $post, the_hovertext()); } echo apply_filters('comicpress_display_comic', $output); }