I'm using zen as my parent theme and for some reason path_to_theme() is suddenly printing /sites/all/themes/zen
instead of the subtheme /sites/all/themes/<mytheme>
. What's even more confusing is that it's only happening when node/12 is being displayed.
Could this code have something to do with it?
<?php
//template.php
if(isset($vars['node'])){
if($vars['node']->nid == 12) {
$vars['is_request_quote'] = true;
}
}
?>
I use the variable $is_request_quote
to change the layout in page.tpl.php. I do this through <?php elseif( $is_request_quote ) : ?> -New layout here- <?php endif; ?>
. Could that be the one affecting it?
path_to_theme()
?