Multiple custom themes on same page

chirale - September 29, 2009 - 13:58
Project:jCarousel
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Now only one custom jcarousel theme per page could be specified.

The attached patch solve this issue, using skin path for the inclusion control (now only a "custom" flag is used).

Note: Since two or more themes are used, skin.css should use a wrapper element selector to attach to the right element (e.g. a block id).

AttachmentSize
jcarousel-multiple-custom.patch912 bytes

#1

Rob Loach - September 29, 2009 - 17:17
Version:6.x-1.1» 6.x-1.x-dev

You mean having the same name for different skins? If you visit admin/help/jcarousel, you'll see there's use of different skins on the same page....

#2

chirale - October 1, 2009 - 07:35

This example show three different themes, but only one custom theme. This issue rises only when there are 2 or more custom skin declared in the same page, since the $jcarousel_added['skin'][$skin] = TRUE; is set only one time when $skin = 'custom'.

Creating a new array that relying also on paths for custom themes solve this issue.

 
 

Drupal is a registered trademark of Dries Buytaert.