% if(menuIconMap[viewType][contentType]){ if(moreMenu){ var iconList = menuIconMap[viewType][contentType]['moreMenu']; } else { var iconList = menuIconMap[viewType][contentType]['lessMenu']; if (window.matchMedia && window.matchMedia("(max-width: 768px)").matches) { if(viewType==='photo' || viewType==='video'){ var iconList = menuIconMap[viewType][contentType]['mobileGridMenu']; } } } }; var mediaType = menuIconMap[viewType][contentType]['mediaType']; var capitalize = function(string) { return string.charAt(0).toUpperCase() + string.substring(1).toLowerCase() }; var ContentType = ''; ContentType = mediaType && capitalize(mediaType); %>
<%if(!extendedMenu){%> <%}%>