<% (function(Model, config, lang, Utils) { var authorities = /prod/i.test(config.environment || '') ? (config.authorities || {}) : {}; const socialLinksMapTable = { "facebook": { svgClass: 'facebook', title: 'Facebook' }, "instagram": { title: 'Instagram', svgClass: 'instagram' }, "twitter": { svgClass: 'x-twitter', title: 'Twitter' }, "linkedin": { svgClass: 'linkedin', title: 'LinkedIn' }, "youtube": { svgClass: 'youtube', title: 'YouTube' }, "pinterest": { svgClass: 'pinterest', title: 'Pinterest' }, "issuu": { svgClass: 'issuu', title: 'Issuu' }, "soundcloud": { svgClass: 'soundcloud', title: 'Soundcloud' }, "tiktok": { svgClass: 'tiktok', title: 'TikTok' }, }; // prepare social links from custom project config.js and mapping table const socialLinks = []; if(config.socialIcons && config.socialIcons.hasOwnProperty(lang)) { config.socialIcons[lang].forEach((socialConfig) => { if(socialLinksMapTable.hasOwnProperty(socialConfig.type) && socialConfig.url && socialConfig.url.length > 0) { socialLinksMapTable[socialConfig.type]['url'] = socialConfig.url; if(socialConfig.title && socialConfig.title.length > 0) { socialLinksMapTable[socialConfig.type]['title'] = socialConfig.title; } if(socialConfig.svgClass && socialConfig.svgClass.length > 0) { socialLinksMapTable[socialConfig.type]['svgClass'] = socialConfig.svgClass; } socialLinks.push(socialLinksMapTable[socialConfig.type]); } }); } %>
<% if (typeof settings != "undefined") { if (typeof settings.footer_container != "undefined") { settings.footer_container.forEach(function(container, containerIndex) { %> <% // (Special Footer) Box Container: [Box Item] if (container.system_type === "box_container") { (function(container, lang, Utils) { var boxSectionBackgroundClass = (container.sectionbackground__background_type || []).length ? container.sectionbackground__background_type[0].codename : ''; var boxColClass = (container.columns || []).length ? container.columns[0].codename : 'lv_col_2'; var boxTextAlignement = (container.box_text_alignment || []).length ? 'text-' + container.box_text_alignment[0].codename : ''; var uniqueBoxSectionClass = container.system_id; uniqueBoxSectionClass = uniqueBoxSectionClass.substring(1, 8); %> <% })(container, WebBaseAprovLV.lang, WebBaseAprovLV.Utils); } %> <% }); } %> <% } %>
<%- ejs.rr('../templates/partials/global-social-share-links.ejs.html?v=' + WebBaseAprovLV.version.template, { pageContent: Model.pageContent }) %>
<%- ejs.rr('../templates/partials/global-footer.ejs.html?v=' + WebBaseAprovLV.version.template, { pageContent: Model.pageContent }) %>
<% })({ navroot: navroot || {}, navrootold: navrootold || {}, navbrand: navbrand || {}, navfooter: navfooter || {}, settings: settings || [] }, WebBaseAprovLV.config, WebBaseAprovLV.lang, WebBaseAprovLV.Utils); %>