diff --git a/sites/all/themes/unl_wdn/html.tpl.php b/sites/all/themes/unl_wdn/html.tpl.php index d071fd94f41bb3be89fbb8ff52d94d682210a8e7..5bfd4e4defe4fd6e2a9d7c08f33be15ae9eef60f 100644 --- a/sites/all/themes/unl_wdn/html.tpl.php +++ b/sites/all/themes/unl_wdn/html.tpl.php @@ -69,4 +69,11 @@ $html = strtr($html, array( '</body>' => $page_bottom . PHP_EOL . '</body>', )); -echo $html; + +$format = filter_input(INPUT_GET, 'format', FILTER_SANITIZE_STRING); +if ($format == 'partial') { + echo $t->maincontentarea; +} +else { + echo $html; +} \ No newline at end of file diff --git a/sites/all/themes/unl_wdn/page.tpl.php b/sites/all/themes/unl_wdn/page.tpl.php index 7d4ab4f8c3eb6309a207e96ae0edf4c5b3205837..f3c8660c5b64d5ab26f40597d676f99393382a6c 100644 --- a/sites/all/themes/unl_wdn/page.tpl.php +++ b/sites/all/themes/unl_wdn/page.tpl.php @@ -91,9 +91,15 @@ if (isset($title) && $title) { -$t->maincontentarea = $messages . PHP_EOL - . render($tabs) . PHP_EOL - . render($action_links) . PHP_EOL; +$format = filter_input(INPUT_GET, 'format', FILTER_SANITIZE_STRING); +if ($format == 'partial') { + $t->maincontentarea = ''; +} +else { + $t->maincontentarea = $messages . PHP_EOL + . render($tabs) . PHP_EOL + . render($action_links) . PHP_EOL; +} if ($page['sidebar_first']) { $t->maincontentarea .= '<div id="sidebar-first" class="sidebar col left">' . PHP_EOL