templates/modules/social/social-icon.twig line 1

Open in your IDE?
  1. {% set contact = contact ?: false %}
  2. <div class="socialIcon">
  3.     <a class="socialIcon-link {{ contact ? "socialIcon-link_contact" : "" }}" href="{{link}}" target="{{contact ? '' : '_blank'}}">
  4.         {% if not contact %}
  5.             <div class="socialIcon-link-icon" style="background: no-repeat url(/assets/images/svg/{{icon[0]}}.svg) center / 100%"></div>
  6.             <div class="socialIcon-link-hover" style="background: no-repeat url(/assets/images/svg/{{icon[1]}}.svg) center / 100%"></div>
  7.         {% endif %}
  8.         {% if contact %}
  9.             <svg width="24px" height="16px" viewBox="0 0 24 16">
  10.                 <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
  11.                     <g id="cta/contact" transform="translate(-13.000000, -17.000000)">
  12.                         <g transform="translate(13.000000, 17.000000)" id="Group">
  13.                             <g>
  14.                                 <rect id="Rectangle-12" fill="#FFFFFF" x="1" y="0" width="22" height="16" rx="2"></rect>
  15.                                 <path d="M0.5390625,2 L11.4801268,8.68247693 C11.7994198,8.87749155 12.2008653,8.87795956 12.5206121,8.68368992 L23.5212402,2" id="z" stroke="#4D9BFB" stroke-width="2"></path>
  16.                             </g>
  17.                         </g>
  18.                     </g>
  19.                 </g>
  20.             </svg>
  21.             <span>contact</span>
  22.         {% endif %}
  23.     </a>
  24. </div>