Or:
(The number will be an integer, ie 1, 2, 3, instead of one, two, three)
Then, in global.css, stuff like this works:
et cetera, where the number is the number of years of service.
<setvar years>floor((TIME_NOW-$post['regdate'])/(60*60*24*365))</setvar>
<span class="service-{$GLOBALS['tplvars']['years']}">{$GLOBALS['tplvars']['years']} years of service</span>
(The number will be an integer, ie 1, 2, 3, instead of one, two, three)
Then, in global.css, stuff like this works:
.service-1 {
color: pink;
}
.service-2 {
color: yellow;
}
.service-3 {
color: red;
}
.service-4 {
color: orange;
}
et cetera, where the number is the number of years of service.