From e94d38839a548a8892addf8d620552732ce3334a Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Wed, 16 Mar 2011 18:55:14 +0000 Subject: [PATCH] [gh-99] Merging from testing into staging git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@569 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- sites/all/themes/unl_wdn/html.tpl.php | 9 ++++++++- sites/all/themes/unl_wdn/page.tpl.php | 12 +++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/sites/all/themes/unl_wdn/html.tpl.php b/sites/all/themes/unl_wdn/html.tpl.php index d071fd94..5bfd4e4d 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 7d4ab4f8..f3c8660c 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 -- GitLab