#set ($utils = $request.getAttribute("sitevision.utils")) #set ($endecUtil = $utils.endecUtil) #set ($propertyUtil = $utils.propertyUtil) #set ($currentPage = $utils.getPortletContextUtil().getCurrentPage()) #set ($siteName = $endecUtil.encodeURL($utils.resourceLocatorUtil.getSite().toString())) #set ($pageName = $endecUtil.encodeURL($propertyUtil.getString($currentPage, 'displayName'))) #set ($currentPageURL = $propertyUtil.getString($currentPage, "URL")) #set ($identifier = $request.getParameter("identifier")) #if ("$!identifier" != "") #set ($currentPageURL = "${currentPageURL}?identifier=${identifier}") #end #set ($subjectGroup = $request.getParameter("subjectGroup")) #if ("$!subjectGroup" != "") #set ($currentPageURL = "${currentPageURL}?subjectGroup=${subjectGroup}") #end #set ($currentPageURL = $endecUtil.encodeURL($currentPageURL))
#set ($placeholderStart = "${") #set ($placeholderEnd = "}") #set ($shareLinks = $scriptVariables.ShareLinks.getNodes()) #foreach($link in $shareLinks) #set ($uri = $propertyUtil.getString($link, "URI")) #set ($uri = $uri.replace("${placeholderStart}currentPageURL${placeholderEnd}", $currentPageURL)) #set ($uri = $uri.replace("${placeholderStart}siteName${placeholderEnd}", $siteName)) #set ($image = $propertyUtil.getNode($link, "hig.shareIcon")) #set ($imageUri = $propertyUtil.getString($image, "URI")) #set ($imageAlt = $propertyUtil.getString($image, "alt")) $!imageAlt $scriptVariables.TextShareOn $link.name #end