After a long time of reasearch why the media gallery is not working well with Adaptive Theme I realized, that one

is missing during the output of fields.

After I added inside template.theme.inc and function adaptivetheme_field just before the comment "Render the items" following code:

$output .= '

';

and after the end of foreach

$output .= '

';

... the thumbnails were displayed right.

I also copied field.tpl.php from /modules/field/theme to /sites/all/themes/adaptivetheme/adaptivetheme/templates .

Comments

Jeff Burnz’s picture

OK, so Media Gallery really needs that extra wrapper with the classes? If so we better add it back in by default.

yooz’s picture

Isn't doing the job for me...maybe you have a patch file...in the case I did'nt got it right?

Jeff Burnz’s picture

Copying cores default field.tpl.php (in the fields module folder) to your subtheme will work - this will override adaptivetheme_field()

I am going to test with Media Module shortly to see what is going on exactly - I may have to revert adaptivetheme_field to include that extra wrapper div.

Jeff Burnz’s picture

Status: Active » Needs work

I did revert this in 7.x-2.x, so this needs backporting I believe to 7.x-1.x.

Jeff Burnz’s picture

Component: Code » CSS/HTML
Status: Needs work » Closed (works as designed)

I am going to leave this how it is, I think if I change this now it might break existing sites, better to simply go with the newer version of that does not mess with the wrappers by removing them.