How can I reduce this template-style expression

I have this code:
Code:

in_array($xf.uri, ['/pick-the-winner/', '/pick-the-winner/picks/', '/pick-the-winner/history/', '/pick-the-winner/history/events/', '/pick-the-winner/picks/member/'])

I want to simplify the code to display the widget with any url with /pick-the-winner/ in it. How would I go about this?


Thanks,
Itworx4me

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ