From: Silvio Rhatto Date: Tue, 27 Sep 2011 01:48:11 +0000 (-0300) Subject: Adding colorbox ajax support X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=97356e956620b678e247696a31c843e96a87e2b8;p=drupal%2Fmuambeiro.git Adding colorbox ajax support --- diff --git a/template.php b/template.php index b23a61a..1353aa9 100644 --- a/template.php +++ b/template.php @@ -38,6 +38,11 @@ function muambeiro_preprocess_page(&$vars) { if (isset($vars['node']) && $vars['node']->status == 0) { $vars['title'] = drupal_get_title() . ' (' . t('Unpublished') . ')'; } + + // See https://drupal.org/node/836160#comment-5026414 + if (isset($_GET['template']) && $_GET['template'] == 'colorbox') { + $vars['theme_hook_suggestions'][] = 'page__colorbox'; + } } /** diff --git a/templates/page--colorbox.tpl.php b/templates/page--colorbox.tpl.php new file mode 100644 index 0000000..5e88480 --- /dev/null +++ b/templates/page--colorbox.tpl.php @@ -0,0 +1 @@ +