امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
There is an array that I use throughout templates and it would seem reasonable to use a macro to store it as the documentation states: "use a macro any place you want to produce the same thing multiple times in multiple different files".
I would like to then be able to pass it to a callback.
Here's what I tried:
A template called my_macro
HTML:
Another template...
Read more
I would like to then be able to pass it to a callback.
Here's what I tried:
A template called my_macro
HTML:
کد:
<xf:macro name="get_static_data">
<xf:set var="$static_data" value="{{ [1, 2, 4, 4] }}"></xf:set>
</xf:macro>
Another template...
Read more
