Use $train->type rather than firts part of $train->line for CSS class
In some cases (e.g. in Belgium), trains do not have a type, so the first part of $train->line is the train number instead.
Loading
Please sign in to comment
In some cases (e.g. in Belgium), trains do not have a type, so the first part of $train->line is the train number instead.