امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I'm writing an add-on and am using settings in an admin option to set a couple of style variables. I want to use those in a .less template.
Is it possible to do something like this?
CSS:
The only problem I see is that in templates, the { } brackets in CSS/LESS would probably conflict with trying to insert a variable in a template which also uses brackets (like
Read more
Is it possible to do something like this?
CSS:
کد:
.my-style {
width: // my option from admin here //;
}
The only problem I see is that in templates, the { } brackets in CSS/LESS would probably conflict with trying to insert a variable in a template which also uses brackets (like
{$xf.options.myOptionHere} which is what I would do in a...Read more
