true, 'embedUri' => '/dohnut/posts/randomstuff', 'g2Uri' => '/gallery2/main.php')); // Change this, could be in Config or var? if ($ret) { $data = $ret->getAsHtml(); return false; } return true; } /* Read the Fun Stuff towards the end of this article*/ function imageBlock($options = array('blocks' => 'randomImage', 'show' => 'title|date')){ /* * See "Site admin" -> "image block" for all available * options. the parameters are the same as for * the external imageblock */ list ($ret, $bodyHtml, $headHtml) = GalleryEmbed::getImageBlock($options); if ($ret) { $error = $ret->getAsHtml(); return $error; } /* $bodyHtml contains the image block. Print it somewhere on your website */ return $bodyHtml; } } ?>