<?php
/**
 * @author  wpWax
 * @since   6.6
 * @version 8.0
 */

use \Directorist\Helper;

if ( ! defined( 'ABSPATH' ) ) exit;

$phone_args = [
    'number'    => $value,
    'whatsapp'  => $listings->has_whatsapp( $data ),
];
?>

<li class="directorist-listing-card-phone2">
    <?php directorist_icon( $icon ); ?><?php $listings->print_label( $label ); ?>
    <a href="<?php echo esc_url( Helper::phone_link( $phone_args ) ); ?>">
        <?php echo esc_html( $value ); ?>
    </a>
</li>