ILyaCyclone

freemarker lib.common 2018.11.21

Nov 21st, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.02 KB | None | 0 0
  1. <#macro svgUse cssClass spriteUrl symbolId>
  2. <@html.svgUse cssClass spriteUrl symbolId/>
  3. </#macro>
  4.  
  5. <#macro svgUseObject svgIcon>
  6. <@html.svgUseObject svgIcon />
  7. </#macro>
  8.  
  9.  
  10. <#macro flexOrder xs="" sm="" md="" lg="" xl="">
  11. <#if xs?has_content>order-${xs}</#if> <#if sm?has_content>order-sm-${sm}</#if> <#if md?has_content>order-md-${md}</#if> <#if lg?has_content>order-lg-${lg}</#if> <#if xl?has_content>order-xl-${xl}</#if>
  12. </#macro>
  13.  
  14.  
  15. <#macro target target="">
  16. <@html.optAttribute "target" target/>
  17. </#macro>
  18.  
  19.  
  20. <#macro fitContentImageUrl url height="" width="">
  21. <#assign resultUrl><@addUrlParameter url=url name="SHeight" value=height /></#assign>
  22. <#assign resultUrl><@addUrlParameter url=resultUrl name="SWidth" value=width /></#assign>${resultUrl}</#macro>
  23.  
  24.  
  25.  
  26. <#macro addUrlParameter url name value="">
  27. <#assign delimiter = url?contains("?")?then("&","?")><#if value?has_content>${url}${delimiter}${name}=${value}<#else>${url}</#if></#macro>
  28.  
  29.  
  30. <#-- ${url}${delimiter}${name}<#if value?has_content>=${value}</#if> -->
Add Comment
Please, Sign In to add comment