Advertisement
DataCCIW

Email Button

Dec 8th, 2022 (edited)
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {%- assign primaryColor = '#003749' -%} //- Nautical Blue
  2. {%- assign secondaryColor = '#C19C5D' -%} //- Royal Yellow Gold
  3. {%- assign oldBrick = '#961B1E' -%} //- Old Brick
  4. {%- assign blueChill = '#0A7197' -%} //- Blue Chill
  5. {%- assign shakespeare = '#5BBCD0' -%} //- Shakespeare
  6. {%- assign piper = '#C15727' -%} //- Piper
  7.  
  8. {%- case type -%}
  9.     {%- when 'primary' -%}
  10.     {%- assign colorSelection = primaryColor -%}
  11.     {%- when 'secondary' -%}
  12.     {%- assign colorSelection = secondaryColor -%}
  13.     {%- when 'oldBrick' -%}
  14.     {%- assign colorSelection = oldBrick -%}
  15.     {%- when 'blueChill' -%}
  16.     {%- assign colorSelection = blueChill -%}
  17.     {%- when 'shakespeare' -%}
  18.     {%- assign colorSelection = shakespeare -%}
  19.     {%- when 'piper' -%}
  20.     {%- assign colorSelection = piper -%}
  21. {%- endcase -%}
  22.  
  23.  
  24. {%- case type -%}
  25.  
  26.     {%- when 'white' -%}
  27.     {%- capture msoStyle -%}style="height:38px;v-text-anchor:middle;width:{{size}}px;" arcsize="250%" strokecolor="{{ secondaryColor }}" fillcolor="#ffffff" strokeweight="2pt" stroke="f"><w:anchorlock/><center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:normal;"{%- endcapture -%}
  28.     {%- capture normalStyle -%}style="color:{{ secondaryColor }};background-color:#ffffff;border:1px solid #ffffff;border-radius:100px;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:normal;line-height:38px;text-align:center;text-decoration:none;width:{{size}}px;-webkit-text-size-adjust:none;"{%- endcapture -%}
  29.    
  30.     {%- else -%}
  31.     {%- capture msoStyle -%}style="height:38px;v-text-anchor:middle;width:{{size}}px;" arcsize="100%" strokecolor="#ffffff" strokeweight="2pt" fillcolor="{{ colorSelection }}"><w:anchorlock/><center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:normal;"
  32.     {%- endcapture -%}
  33.    
  34.     {%- capture normalStyle -%}style="color:#ffffff;background-color:{{ colorSelection }};border:2px solid {{ colorSelection }};border-radius:100px;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:normal;line-height:38px;text-align:center;text-decoration:none;width:{{size}}px;-webkit-text-size-adjust:none;mso-hide:all;"
  35.     {%- endcapture -%}
  36.  
  37. {%- endcase -%}
  38.  
  39. <div style="text-align: {{ align}};margin-bottom:10px;">
  40. <!--[if mso]><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com🏢word" href="{{ url }}" {{ msoStyle }}>{{ text }}</center></v:roundrect><![endif]--><a href="{{ url }}" {{ normalStyle }}>{{ text }}</a>
  41. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement