RSS Feed/News How can I reduce this template-style expression

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,805
Points
823

Reputation:

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

Continue reading...
 
Status
Not open for further replies.
Top