2014-03-27, 04:20:20
(2014-03-26, 23:54:11)Oleg06 Wrote: I created a field of type image, and the code is generated
Code:#tekstovyj-blok-39 {
background-image: url(http);
}
This seems to be a problem/feature of the lessPHP compiler and a ":" in the string. You can work around it by adding quotes around the string field, e.g.
Code:
get_less_css('background.less', array('image'=>'"'.return_custom_field('image', '').'"'), true);