"전화: 클릭하여 보기 -확인되지 않음"을 제거하고 싶습니다. 텍스트 보기를 클릭하지 않고 연락처를 표시해야 합니다.
8152 단어 php
if ($adforest_theme['communication_mode'] == '둘 다' || $adforest_theme['communication_mode'] == '전화') {
$call_now = 'javascript:void(0);';
if (wp_is_mobile())
$call_now = '전화:' . 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">
<span class="info-heading"><i class="fa fa-phone"></i><?php echo esc_html__('Phone :', 'adforest') ?></span>
<span class="sb-phonenumber"><?php echo __('Login to view', 'adforest'); ?></span>
<?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">
<span class="info-heading"><i class="fa fa-phone"></i><?php echo esc_html__('Phone :', 'adforest') ?></span>
<span class="sb-phonenumber"><?php echo __('Click to view', 'adforest'); ?></span>
<?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"></i>
<span class=""><?php echo __('Live Chat', 'adforest'); ?></span>
</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">
<i class="fa fa-whatsapp"></i>
<span class=""><?php echo __('WhatsApp', 'adforest'); ?></span>
</a>
<?php
}
?>
Reference
이 문제에 관하여("전화: 클릭하여 보기 -확인되지 않음"을 제거하고 싶습니다. 텍스트 보기를 클릭하지 않고 연락처를 표시해야 합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/chrisewon/i-want-to-remove-phone-click-to-view-not-verified-i-need-show-contact-number-without-clicking-view-text-1g8a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)