function insert_exhibit($content) { global $wp_query; if ($wp_query->post->datapress_exhibit != NULL) { return WpExhibitHtmlBuilder::insert_exhibit($wp_query->post->datapress_exhibit, $content); } else { return $content; } }
} ob_end_clean(); //Ensure we don't have output from other plugins. header('Content-Type: text/html; charset=' . get_option('blog_charset')); /* * Load up the lightboxed exhibit */ global $lightboxed_exhibit; $exhibitid = $_GET['exhibitid']; if (isset($exhibitid) && $exhibitid != NULL) { // We are goiing to try to load just this one $lightboxed_exhibit = new WpPostExhibit(); DbMethods::loadFromDatabase($lightboxed_exhibit, $exhibitid); } $currentview = $_GET['currentview']; $postid = $_GET['postid']; $exhibit_html = $exhibit_html = WpExhibitHtmlBuilder::get_exhibit_html($lightboxed_exhibit, $currentview, $postid); ?> <html> <head> <?php require 'head.php'; ?> </head> <body> <?php echo $exhibit_html; ?> </body> </html>