{{~exec(function() { helpers.var.t = { listings : data.translations.listing, leo : data.translations.leo } })}} {{%relatedlistingids}} {{~exec(function() { var url; if (data.media && data.media[0]) { url = data.media[0].mediaurl; } else { url = helpers.plugins.sv_site.siteConfig.custom[helpers.plugins.sv_site.site].defaultImageUrl } helpers.var.image = { resource : helpers.plugins.cloudinary.createResource({ imageUrl : url }) }; })}}
{{!-- Pre-allocates height of image using padding-bottom to prevent height changes on load --}} {{~setVar("width", 328)}} {{~setVar("height", 218)}} {{~setVar("paddingBottom", (helpers.var.height / helpers.var.width) * 100 + "%")}}
{{/relatedlistingids}}