generate_star
Within that function are instructions to edit the coloring of the star to suit your template which are self explanatory
Code: Select all
/*
* change below to whatever colors you want
* star_color the interior color of the star
* year_color the color of the number that displays within the star
* lighter star_color will require darker year_color and vice versa
*/
// year 20 and over
if ($reg_years >= 20)
{
$star_color = 'style="color:#27408B;cursor: pointer;"';
$year_color = 'style="color:white;"';
}
// year 10 through 20
else if ($reg_years >= 10)
{
$star_color = 'style="color:#3A5FCD;cursor: pointer;"';
$year_color = 'style="color:white;"';
}
// year 5 through 10
else if ($reg_years >= 5)
{
$star_color = 'style="color:#4876FF;cursor: pointer;"';
$year_color = 'style="color:white;"';
}
//year 1 to 5
else if ($reg_years >= 1)
{
$star_color = 'style="color:#0076B1;cursor: pointer;"';
$year_color = 'style="color:white;"';
}
color:#whatever
and color:white
as you desire.