関数
RegisterWithAmazon::termsAndConditions()
設定されている場合、会員になるための条件をチェックボックスで表示する
戻り値 戻り値
ファイル: src/Components/RegisterWithAmazon/RegisterWithAmazon.php
public function termsAndConditions() { global $usces; $html = ''; ob_start(); ?> <div v-if="showterms" class="field agree-member-box"> <?php if (isset($usces->options['member_page_data']['agree_member_exp'])) : ?> <label> <?php echo $usces->options['member_page_data']['agree_member_exp']; ?> </label> <?php endif; ?> <?php if (isset($usces->options['member_page_data']['agree_member_cont'])) : ?> <textarea name="at_cont_text" class="at_cont_text" readonly="readonly"><?php echo $usces->options['member_page_data']['agree_member_cont']; ?> </textarea> <div class="at_check_area"> <div class="ui checkbox"> <input v-model="agree_member_check" name="aap_agree_member_check" id="aap_agree_member_check" type="checkbox" > <label for="aap_agree_member_check" style="cursor:pointer;" > <?php _e('Accept the membership agreement', 'usces'); ?> </label> </div> </div> <?php endif; ?> </div> <?php $html = ob_get_clean(); /** * Filters HTML of the terms and conditions shown on the Quickpay page * * @param string $html * @param bool $agree_member */ $html = apply_filters('wcexaap_filter_agree_field', $html, $this->agree_member); return $html; }