-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathwp-exhibit-only.php
More file actions
37 lines (36 loc) · 1.1 KB
/
Copy pathwp-exhibit-only.php
File metadata and controls
37 lines (36 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
ob_start();
$root = dirname(dirname(dirname(dirname(__FILE__))));
if (file_exists($root.'/wp-load.php')) {
// WP 2.6
require_once($root.'/wp-load.php');
} else {
// Before 2.6
require_once($root.'/wp-config.php');
}
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 going 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, true);
//echo $exhibit_html;
//die;
?>
<html>
<head>
<?php require('head.php'); ?>
</head>
<body>
<?php echo($exhibit_html); ?>
</body>
</html>