So there's a bit of class-itis going on with the block classes that has been there since Zen 5.x-1.x. And I'm not sure why we have it.

We have these classes:

 *   - region-count-[x]: The position of the block in the list of blocks in the
 *     current region.
 *   - region-odd: An odd-numbered block of the list of blocks in the current
 *     region.
 *   - region-even: An even-numbered block of the list of blocks in the current
 *     region.
 *   - count-[x]: The position of the block in the list of blocks on the current
 *     page.
 *   - odd: An odd-numbered block of the list of blocks on the current page.
 *   - even: An even-numbered block of the list of blocks on the current page.

But now that we have first and last classes (#1046394: First and last classes on blocks in regions), I think we only need:

 *   - first: The first block in the region.
 *   - last: The last block in the region.
 *   - odd: An odd-numbered block in the region's list of blocks.
 *   - even: An even-numbered block in the region's list of blocks.

Did anyone ever use the odd/even or count-* when it didn't correspond to the position within the region? I guess if you had two regions right on top of each other, it would be useful. But… why not just have one region?

Simplifying the list seems like a no-brainer.

Comments

JohnAlbin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.