Quote:
Code:
<li class="<widget class="XLite\Module\Client\ClientMegaMenu\View\CheckIfTopLevelCategoryForCurrentPage" thisCatId="8" /> ">
|
This code looks really weird. I believe there should be an easier way to do what you need.
What widget does render the mega menu? Why don't you add the check as a method to that widget class and use it as follows:
Code:
<li class="{doMyCheck(8)}">