Closed (fixed)
Project:
Bootstrap
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2014 at 22:00 UTC
Updated:
8 Sep 2014 at 23:10 UTC
Jump to comment: Most recent
In the creation of #2327399: Bootstrap Carousel image field formatter, the img-responsive class is added manually to each carousel's image (to ensure it never overflows, regardless if the theme setting is disabled).
Thus, this class is added twice if it is.
Solution: create a helper function to add classes in preprocess functions and ensure uniqueness.
Comments
Comment #2
markhalliwellThis introduced new the following new helper functions:
&_bootstrap_get_attributes(&$element)&_bootstrap_get_classes(&$element)_bootstrap_add_class($class, &$element)_bootstrap_remove_class($class, &$element)An example of how to use them can be found here:
./templates/system/image.vars.php