امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hey XenForo,
Does XF templating support switch cases? For example, I have the following, is there a way to clean this up?
Code:
Does XF templating support switch cases? For example, I have the following, is there a way to clean this up?
Code:
کد:
<xf:if is="$parentcase == 1">
<xf:if is="$case == 1">
Case 1
<xf:elseif is="$case == 2"/>
Case 2
<xf:else/>
Default case
</xf:if>
<xf:elseif is="$parentcase == 2"/>
Parent Case 2
<xf:else/>
Parent Default Case
<xf:if/>
