Hier mein Vorschlag:
Wie immer Back-Up machen,
vorher.
FINDE
Code: Alles auswählen
//
// Again this will be handled by the templating
// code at some point
//
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
Das müsste die Stelle sein wo die Farben zugewiesen werden.
nu würde ich Folgendes machen:
ERSETZE MIT:
Code: Alles auswählen
//
// Again this will be handled by the templating
// code at some point
//
/*
Vorher:
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
*/
// $ans = Anzahl der verschiedenen ROWs
$ans = 4;
if ( ($i % $ans) == 0 )
{
$row_color = $theme['td_color1'];
$row_class = $theme['td_class1'];
}
elseif ( ($i % $ans) == 1 )
{
$row_color = $theme['td_color2'];
$row_class = $theme['td_class2'];
}
elseif ( ($i % $ans) == 2 )
{
$row_color = $theme['td_color3'];
$row_class = $theme['td_class3'];
}
elseif ( ($i % $ans) == 3 )
{
$row_color = $theme['td_color4'];
$row_class = $theme['td_class4'];
}
// Ende der Änderung
IOch hoffe du hast das System verstanden, und es funktioniert...