Commit 78825e64 by rajshah

handle whatsapp chat

parent dcd21c34
......@@ -171,7 +171,7 @@
</li>
<li class="nav-item">
<a class=""
href="https://api.whatsapp.com/send?phone=<?php echo get_field('gb_mobile_number', 'option') ?>"
href="https://api.whatsapp.com/send?phone=<?php echo get_field('gb_mobile_number', 'option'); ?>"
target="_blank"><svg width="25" height="25" viewBox="0 0 25 25" fill="none"
xmlns="http://www.w3.org/2000/svg">
<g opacity="0.5" clip-path="url(#clip0_1314_12720)">
......@@ -340,8 +340,12 @@
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
</a>
<?php
$whatsapp_chat = get_field('whats_app_number', 'option')?:'';
if(isset($whatsapp_chat) && !empty($whatsapp_chat)) :
?>
<div class="whats-app-icon-wrapper position-relative">
<a href="https://wa.me/<?php echo get_field('whats_app_number', 'option'); ?>" target="_blank">
<a href="https://wa.me/<?php echo $whatsapp_chat; ?>" target="_blank">
<svg width="60" height="60" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24Z"
......@@ -355,6 +359,7 @@
<p>Chat with us</p>
</div>
</div>
<?php endif;?>
</div>
<div class="download-popup">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment