Only 1 carousel theme added on 2 carousels with 2 different themes
chirale - September 29, 2009 - 13:08
| Project: | jCarousel |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Issue: On a page with 2 views carousel blocks, only one is styled by theme. A custom theme is successfully loaded, but ie7 or tango are not.
Solution: use add_css() with 'theme' as second argument (like custom theme branch).
<?php
if ($skin == 'tango' || $skin == 'ie7') {
drupal_add_css("$jcarousel/jcarousel/skins/$skin/skin.css", 'theme');
}
?>instead of:
<?php
if ($skin == 'tango' || $skin == 'ie7') {
drupal_add_css("$jcarousel/jcarousel/skins/$skin/skin.css");
}
?>2 patches attached (stable 6.x-1.1 and 6.x-dev version)
| Attachment | Size |
|---|---|
| jcarousel-nocss-2themes-stable.patch | 594 bytes |
| jcarousel-nocss-2themes-dev.patch | 576 bytes |

#1
Thanks! http://drupal.org/cvs?commit=269110
#2
Automatically closed -- issue fixed for 2 weeks with no activity.