Advertisement
Venelin

YP Conditions

Nov 21st, 2017
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <c:set var="hasInlineCSS">
  2. <tiles:insertAttribute name="inlineCSS"/>
  3. </c:set>
  4. <c:set var="noSafariInline">
  5. ${((userAgent.safari || userAgent.safariMobile) && userAgent.majorBrowserVersion > 10) || not userAgent.IOS}
  6. </c:set>
  7. <c:if test="${not empty hasInlineCSS && Feature.isEnabled('inlineCSS') && not userAgent.IE && noSafariInline && not Page.local}">
  8. Inline CSS
  9. </c:if>
  10.  
  11.  
  12. =========================================
  13.  
  14. <c:if test=“${SearchResult.displayFilter && not Map.expandMap && not SearchResult.displayAlternateOrderType}“>
  15. <c:if test=“${Feature.isEnabled(‘subcatFilter’) && not userAgent.mobile && SearchResult.hasSubHeadings()}“>
  16.  
  17.  
  18. =========================
  19.  
  20. <c:when test=“${(not Map.expandMap || not Page.mapSearch) && ((Page.classTag == ‘searchBodyClass’ && isDineContext) || not showSearchTop || Page.classTag == ‘homeBodyClass’)}“>false</c:when>
  21.  
  22. ======================
  23.  
  24. <c:if test=“${((Page.classTag == ‘searchBodyClass’ && isDineContext) && not Map.expandMap) && userAgent.mobile && Page.classTag != ‘dineHubBodyClass’ }“>
  25.  
  26. ===================
  27.  
  28. <c:if test="${Page.classTag != 'merchantBodyClass' && Page.classTag != 'searchBodyClass'}">
  29. <c:if test="${(PageType.showMap || Map.expandMap) && (not userAgent.mobile || Map.expandMap)}">
  30. <yp:style group="yellowMapsModule_${Map.provider}"/>
  31. </c:if>
  32. </c:if>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement