Удалить поле «Телефон» из календаря бронирования встреч - PullRequest
0 голосов
/ 27 января 2020

Я использую бесплатное издание «Календарь бронирования». Существует обязательное поле «Ваш номер телефона», которое я хотел бы отключить и скрыть. Я ОЧЕНЬ мало знаю о программировании, но разработчик сказал мне отредактировать файл 'cpabc_scheduler.in c. php'.

Просто удалить эти строки?

<?php _e('Your phone number','appointment-booking-calendar'); ?>:<br />
<input type="text" name="phone" value=""><br />

Это код для формы:

 * Note: Repeat / recurrent options are displayed after selecting a time-slot in the calendar.
  </fieldset> 
<?php } ?>
<div style="clear:both;"></div>
<?php _e('Your phone number','appointment-booking-calendar'); ?>:<br />
<input type="text" name="phone" value=""><br />
<?php _e('Your name','appointment-booking-calendar'); ?>:<br />
<input type="text" name="name" value="<?php /** if (isset($current_user->user_firstname)) echo $current_user->user_firstname." ".$current_user->user_lastname; */ ?>"><br />
<?php _e('Your email','appointment-booking-calendar'); ?>:<br />
<input type="email" name="email" value="<?php /** if (isset($current_user->user_email)) echo $current_user->user_email; */ ?>"><br />
<?php _e('Comments/Questions','appointment-booking-calendar'); ?>:<br />
<textarea name="question" style="width:100%"></textarea><br />
<?php if (!is_admin() && cpabc_get_option('dexcv_enable_captcha', CPABC_TDEAPP_DEFAULT_dexcv_enable_captcha) != 'false') { ?>
  <?php _e('Please enter the security code:','appointment-booking-calendar'); ?><br />
  <img src="<?php echo cpabc_appointment_get_site_url().'/?cpabc_app=captcha'.cpabc_get_captcha_params(); ?>"  id="captchaimg" alt="security code" border="0" class="skip-lazy"  />
  <br />
  <?php _e('Security Code:','appointment-booking-calendar'); ?><br />
  <div class="dfield">
  <input type="text" size="20" name="hdcaptcha" id="hdcaptcha" value="" />
  <div class="error message" id="hdcaptcha_error" generated="true" style="display:none;position: absolute; left: 0px; top: 25px;"></div>
  </div>
  <br />
<?php } ?>
<input type="submit" name="subbtn" class="cp_subbtn" value="<?php _e($button_label,'appointment-booking-calendar'); ?>">
</form>

Спасибо,

Лютер

...