- πΊπ¦Ukraine AstonVictor
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks
This gets pretty tiresome:
$first_class = $index == 1 ? ' first ' : '';
$oddeven_class = $index % 2 == 0 ? ' even ' : ' odd ';
$last_class = $index == $count ? ' last ' : '';
Better to leave off the spaces either side and just implode with a space.
For that matter, there's not really a need to name all these -- they are only used again when making the LI.
So this would do:
$classes[] = $index % 2 == 0 ? 'even' : 'odd';
// etc
Not making a patch yet, as would clash with #508690: level-based classes for drop-down menus β .
Closed: outdated
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks