関数
LinkMembersToAmazon::template()
会員情報とAmazonアカウントへリンクするためのチェックボックスを表示する
戻り値 戻り値
ファイル: src/Components/LinkMembersToAmazon/LinkMembersToAmazon.php
public function template() { global $usces; $this->agree_member = isset($usces->options['agree_member']) && 'activate' === $usces->options['agree_member']; $propsAndEvents = []; if ($this->controlledComponent === true) { $propsAndEvents[] = '@update-payload="updatePayload"'; $propsAndEvents[] = '@delete-from-payload="deleteFromPayload"'; } $allPropsAndEvents = join(' ', $propsAndEvents); ?> <link-members-to-amazon-component inline-template <?php echo $allPropsAndEvents; ?> > <div v-cloak> <div class="linkmember-comp"> <div class="ui checkbox linkcheckbox"> <input v-model="linkmember" type="checkbox" id="linkmember" class="hidden"> <label for="linkmember"> <?php _e('Link members with Amazon accounts', 'wcexaap'); ?> </label> </div> </div> <div v-if="linkmember" class="ui warning message autologin-info"> <p><?php _e('By selecting it, you can log in with your Amazon account from the next time.', 'wcexaap'); ?></p> </div> <?php /** * Fires at the end of the `link-members-to-amazon-component` shown on the member page * * @param \Aivec\Welcart\SettlementModules\AmazonPay\Components\LinkMembersToAmazon\LinkMembersToAmazon $instance */ do_action('wcexaap_checkout_review_after_linkmember_checkbox', $this); ?> </div> </link-members-to-amazon-component> <?php }