By scolex on Friday, 21 October 2016
Replies 3
Likes 1
Views 1.3K
Votes 0
Hi,

by using the module "latest events" i have to create an if loop to separate the two categories of my events by different csss classes. But I don't get the right syntax for if statement.
The events are listed in an "foreach"-loop. In that loop I want separate all events with Categorie-ID "12" with an special CSS class. Is there anyone with an idea?


if (MISSINGSYNTAX == 12)
{
$eventrow = '<tr><td class="specialcss" style="'.$dst.'">%s'."</td></tr>\n";

}
else
{
$eventrow = '<tr><td class="mod_events_latest" style="'.$dst.'">%s'."</td></tr>\n";
}

THX
Hello,

You would need:


$dayEvent->catid == 12


Many thanks
Tony
·
Monday, 24 October 2016 07:29
·
1 Likes
·
0 Votes
·
0 Comments
·
That's it! Awesome.

Many Thanks
·
Monday, 24 October 2016 08:14
·
1 Likes
·
0 Votes
·
0 Comments
·
You are very welcome.
·
Monday, 24 October 2016 10:08
·
1 Likes
·
0 Votes
·
0 Comments
·
View Full Post