Type specific classes for lists
|Reported by:||juho.jaakkola||Owned by:|
Lists rendered by elgg_view_entity_list() get the following classes as default:
- "elgg-list elgg-list-entities" (list_type = list)
- "elgg-gallery" (list_type = gallery)
When creating themes and new content types there's often need to style lists of different content types in a different way. It is possible to pass a class to the elgg_list_entities*() as list_class parameter. If I however have many lists throughout the site I would have to add that parameter to each call.
So how about adding two new list classes automatically based on entity's type and subtype?
Then for example a list of blogs would get the following classes:
Now it would be possible to easily define different css for example to a list of blogs and a list of videos.
(Btw, is the elgg-list-entity class currenly even used for anything?)