Filter gallery styles with access to $attr
|Reported by:||betzster||Owned by:|
Currently you can replace the entire output, but that's all or nothing — if you decide to do that, you also need to parse the attributes array, decide on good defaults, etc. You can also filter the styles, but you don't have access to the attributes array.
Use case: In my theme, I'd like to use the number of columns as more of a suggestion. I could set min-width to what $itemwidth is currently and it would be more responsive. If the page shrinks too small, it would only load 1 image per line instead of being locked into the right number of columns.
Change History (12)
comment:2 markoheijnen — 10 months ago
- Milestone changed from Awaiting Review to 3.6
- Version set to 3.5