I just removed the logic from the template, moving it to the preprocess function.
This...
<body class="<?php echo $body_classes; ?><?php if (!empty($primary_links)): ?> withprimary <?php else: ?> noprimary <?php endif; ?>">
became:
<body class="<?php echo $body_classes; ?>">
And this goes to painted_preprocess_page on template.php:
<?php
if (!empty($vars['primary_links'])){
$body_classes[] = 'withprimary';
} else{
$body_classes[] = 'noprimary';
}
?>
PS: This theme is perfect and this new version is even better. Tks from Brazil.
PS: I hope that my first patch works.
Sorry for my poor English.
| Comment | File | Size | Author |
|---|---|---|---|
| painted-6.x-2.patch | 1.88 KB | aalemmar |
Comments
Comment #1
Anonymous (not verified) commentedCommited to 6 BETA 1
Thanks :)