Skip to content
Ideasoft
Header

Whatsapp

Turkish content

This section is currently available in Turkish only. Component code and Twig variable names are language-independent.

Görünüm

Whatsapp

Whatsapp

Kod Yapısı

HTML

index.html
{% if theme.settings.whatsapp %} <div class="header-whatsapp"> <a href="https://wa.me/9{{ theme.settings.whatsapp | replace({' ': '','(': '',')': ''}) }}" target="_blank"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none"> <path d="M2.00401 22L3.35601 17.032C2.46515 15.5049 1.99711 13.768 2.00001 12C2.00001 6.477 6.47701 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22C10.2328 22.0029 8.49667 21.5352 6.97001 20.645L2.00401 22ZM8.39101 7.308C8.26188 7.31602 8.13569 7.35003 8.02001 7.408C7.91153 7.46943 7.81251 7.54622 7.72601 7.636C7.60601 7.749 7.53801 7.847 7.46501 7.942C7.09542 8.423 6.89662 9.01342 6.90001 9.62C6.90201 10.11 7.03001 10.587 7.23001 11.033C7.63901 11.935 8.31201 12.89 9.20101 13.775C9.41501 13.988 9.62401 14.202 9.84901 14.401C10.9524 15.3725 12.2673 16.073 13.689 16.447L14.258 16.534C14.443 16.544 14.628 16.53 14.814 16.521C15.1053 16.506 15.3896 16.4271 15.647 16.29C15.813 16.202 15.891 16.158 16.03 16.07C16.03 16.07 16.073 16.042 16.155 15.98C16.29 15.88 16.373 15.809 16.485 15.692C16.568 15.606 16.64 15.505 16.695 15.39C16.773 15.227 16.851 14.916 16.883 14.657C16.907 14.459 16.9 14.351 16.897 14.284C16.893 14.177 16.804 14.066 16.707 14.019L16.125 13.758C16.125 13.758 15.255 13.379 14.724 13.137C14.668 13.1126 14.608 13.0987 14.547 13.096C14.4786 13.089 14.4095 13.0967 14.3443 13.1186C14.2791 13.1405 14.2193 13.1761 14.169 13.223V13.221C14.164 13.221 14.097 13.278 13.374 14.154C13.3325 14.2098 13.2754 14.2519 13.2098 14.2751C13.1443 14.2982 13.0733 14.3013 13.006 14.284C12.9409 14.2666 12.877 14.2445 12.815 14.218C12.691 14.166 12.648 14.146 12.563 14.109L12.558 14.107C11.9859 13.8572 11.4562 13.5198 10.988 13.107C10.862 12.997 10.745 12.877 10.625 12.761C10.2316 12.3842 9.88873 11.958 9.60501 11.493L9.54601 11.398C9.50364 11.3342 9.46937 11.2653 9.44401 11.193C9.40601 11.046 9.50501 10.928 9.50501 10.928C9.50501 10.928 9.74801 10.662 9.86101 10.518C9.9551 10.3983 10.0429 10.2738 10.124 10.145C10.242 9.955 10.279 9.76 10.217 9.609C9.93701 8.925 9.64701 8.244 9.34901 7.568C9.29001 7.434 9.11501 7.338 8.95601 7.319C8.90201 7.313 8.84801 7.307 8.79401 7.303C8.65972 7.29633 8.52515 7.29766 8.39101 7.307V7.308Z" fill="white"/> </svg> <span>{{ theme.settings.whatsapp }}</span> </a> </div> {% endif %}

SCSS

style.css
.header-whatsapp { > a { display: flex; align-items: center; flex-wrap: wrap; height: 36px; color: $color-sub-text; font-size: var(--font-size-14); transition: $transition; svg { path { transition: $transition; } } span { flex: 1 0 0; padding-left: var(--spacer-3); } @include min($lg) { &:hover { color: $color-primary; svg { path { fill: $color-primary; } } } } } }

JSON

JSONindex.js
"whatsapp": { "type": "text", "default_value": "", "label": "Whatsapp Numarası", "info" : "Rakamları ayırmak için sadece boşluk bırakılabilir (örn: 0555 555 55 55). Bu alan boş bırakıldığında ikonu görünmeyecektir" }
Last modified on