関数
Container::getPageTemplate()
テンプレートHTML
戻り値 戻り値
ファイル: src/Components/CheckoutReview/Container.php
public function getPageTemplate() { /** * Filters whether or not to call `get_header()` and `get_footer()` on the Quickpay page * * *This filter will not run for themes using their own `wc_amazon_quickpay_page.php` * template file* * * @param bool $flag Default: `true` */ $withHeaderFooter = apply_filters('wcexaap_filter_checkout_review_template_header_footer_flag', true); ob_start(); if ($withHeaderFooter === true) { get_header(); } ?> <div id="primary" class="site-content"> <div id="content" class="cart-page" role="main"> <?php if (have_posts()) : usces_remove_filter(); ?> <article class="post" id="wc_confirm"> <?php /** * Used to load all Vue components on the Quickpay page */ do_action('wcexaap_checkout_review_template'); ?> </article> <?php else : ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </div> </div> <?php if ($withHeaderFooter === true) { get_footer(); } $template = ob_get_clean(); /** * Filters all Quickpay page HTML * * *This filter will not run for themes using their own `wc_amazon_quickpay_page.php` * template file* * * @param string $template * @param \Aivec\Welcart\SettlementModules\AmazonPay\Components\CheckoutReview\Container $instance */ return apply_filters('wcexaap_filter_checkout_review_template', $template, $this); }