I want to remove "Phone : Click to view -Not verified" I need show contact number without clicking view text. Just i want to clickble contact number, I tried to chnage few option but it's effects full website listing, Listing not show webiste ads side
Here is the code line
<?php
if ($adforest_theme['communication_mode'] == 'both' || $adforest_theme['communication_mode'] == 'phone') {
$call_now = 'javascript:void(0);';
if (wp_is_mobile())
$call_now = 'tel:' . adforest_get_CallAbleNumber(get_post_meta($pid, '_adforest_poster_contact', true));
$contact_num = get_post_meta($pid, '_adforest_poster_contact', true);
$batch_text = '';
if (isset($adforest_theme['sb_phone_verification']) && $adforest_theme['sb_phone_verification']) {
$contact_num = get_user_meta($poster_id, '_sb_contact', true);
if ($contact_num != "") {
if (get_user_meta($poster_id, '_sb_is_ph_verified', true) == '1') {
$batch_text = __('Verified', 'adforest');
} else {
$batch_text = __('Not verified', 'adforest');
}
} else {
$contact_num = get_post_meta($pid, '_adforest_poster_contact', true);
$batch_text = __('Not verified', 'adforest');
}
}
if ($contact_num != "") {
if (adforest_showPhone_to_users()) {
$contact_num = __("Login To View", "adforest");
$call_now = "javascript:void(0)";
$adforest_login_page = isset($adforest_theme['sb_sign_in_page']) ? $adforest_theme['sb_sign_in_page'] : '';
$adforest_login_page = apply_filters('adforest_language_page_id', $adforest_login_page);
if ($adforest_login_page != '') {
$redirect_url = adforest_login_with_redirect_url_param(adforest_get_current_url());
$call_now = $redirect_url;
}
?>
<div class="col-xxl-6 col-lg-6 col-md-6 col-sm-12">
<div class="ad-detail-2-click-view phone">
<a data-ad-id="<?php echo intval($pid); ?>" href="<?php echo adforest_returnEcho($call_now); ?>" class="sb-click-num2" id="show_ph_div">
class="fa fa-phone">
<?php echo __('Login to view', 'adforest'); ?>
<?php if ($batch_text != "") { ?>
<small class="sb-small">-<?php echo adforest_returnEcho($batch_text); ?></small><?php } ?>
</a>
</div>
</div>
<?php
}
else { ?>
<div class="col-xxl-6 col-lg-6 col-md-6 col-sm-12">
<div class="ad-detail-2-click-view phone">
<a data-ad-id="<?php echo intval($pid); ?>" href="<?php echo adforest_returnEcho($call_now); ?>" class="sb-click-num" id="show_ph_div">
^__i class="fa fa-phone"><?php echo esc_html__('Phone :', 'adforest') ?>
<?php echo __('Click to view', 'adforest'); ?>
<?php if ($batch_text != "") { ?>
<small class="sb-small">-<?php echo adforest_returnEcho($batch_text); ?></small><?php } ?>
</a>
</div>
</div>
<?php } }
}
?>
<?php
if ($allow_whizchat) {
?>
<a href="javascript:void(0)" class="btn btn-whizchat chat_toggler btn-block" data-page_id="<?php echo esc_attr(get_the_ID()); ?>" data-user_id ="<?php echo esc_attr($poster_id) ?>">
^__i class="fa fa-commenting-o">
<?php echo __('Live Chat', 'adforest'); ?>
</a>
<?php }
if ($allow_whatsapp && $contact_num != "") {
$redirect_url = "https://api.whatsapp.com/send?phone=$contact_num";
if (adforest_showPhone_to_users()) {
$adforest_login_page = isset($adforest_theme['sb_sign_in_page']) ? $adforest_theme['sb_sign_in_page'] : '';
$adforest_login_page = apply_filters('adforest_language_page_id', $adforest_login_page);
if ($adforest_login_page != '') {
$redirect_url = adforest_login_with_redirect_url_param(adforest_get_current_url());
}
}
?>
<a href="<?php echo esc_url($redirect_url); ?>" class="btn btn-whatsap btn-block">
class="fa fa-whatsapp">
<?php echo __('WhatsApp', 'adforest'); ?>
</a>
<?php
}
?>
What I have tried:
I want to remove "Phone : Click to view -Not verified" I need show contact number without clicking view text. Just i want to clickble contact number, I tried to chnage few option but it's effects full website listing, Listing not show webiste ads side