XenForo
Administrative
- Thread starter
- Admin
- #1
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:
Code:
<xf:macro name="get_static_data">
<xf:set var="$static_data" value="{{ [1, 2, 4, 4] }}"></xf:set>
</xf:macro>
Another template...
Read more
ادامه مطلب...