امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
How should I be including java script files and css in a addon?
I'm aware I can just add javascript files into the zip folder manually, but surely theres an easier way.
For css files, i've been creating templates and calling them like this:
HTML:
But for javascript, i've been writing it manually in the
HTML:
I'm aware I can just add javascript files into the zip folder manually, but surely theres an easier way.
For css files, i've been creating templates and calling them like this:
HTML:
<xf:css src="public:template_name.less" />But for javascript, i've been writing it manually in the
/js folder and calling it like this:HTML:
<xf:js src="addonName/javascript_file_name.js" min="1" />