{{:tripadvisor}} {{/tripadvisor}}
-
{{#~var.fields}}
{{~fill(helpers.partial(“custom_li_items”), data, {}, global)}}
{{/}}
{{:social}} {{~setVar(“fields”, [ { name : “social”, label : “”, value : (function() { if (data.social === undefined) { return undefined; } var socialMap = { “serviceid_4” : { class : “fa fa-facebook”, service : “Facebook”, url : “” }, “serviceid_1” : { class : “fa fa-twitter”, service : “Twitter”, url : “” }, “serviceid_2” : { class : “fa fa-youtube-play”, service : “Youtube”, url : “” }, “serviceid_13” : { class : “fa fa-instagram”, service : “Instagram”, url : “” }, “serviceid_13” : { class : “fa fa-instagram”, service : “Instagram”, url : “” } }; data.social.forEach(function(val) { var item = socialMap[`serviceid_${val.smserviceid}`]; if (item === undefined) { return; } item.url = val.value; }); return Object.values(socialMap).filter(val => val.url.length > 0).map( val => `` ).join(” “); })() } ])}}
-
{{#~var.fields}}
{{~fill(helpers.partial(“custom_li_items”), data, {}, global)}}
{{/}}
{{/}} {{:description}}
{{~plugins.stringLib.substringOnWord(helpers.plugins.stringLib.stripHtml(data.description), 475, { ellipsis : true })}}
{{/description}}
Source