クラス
Panetteria
Panetteria customizations for Review
ソース ソース
ファイル: src/Views/ConfirmPageReview/Themes/Panetteria.php
class Panetteria extends Review { /** * Enqueues necessary assets for this View * * @author Evan D Shaw <evandanielshaw@gmail.com> * @return Review */ public function init() { add_filter('wcexaap_filter_purchase_button_class', [$this, 'filterPurchaseButtonClass'], 10, 1); parent::init(); wp_enqueue_style( 'wcexaap-checkout-review-panetteria', WCEXAAP_PLUGIN_URL . '/src/Views/ConfirmPageReview/Themes/Panetteria.css', [], WCEXAAP_VERSION ); return $this; } /** * Changes purchase button color for panetteria * * @author Evan D Shaw <evandanielshaw@gmail.com> * @param string $class * @return string */ public function filterPurchaseButtonClass($class) { $secondary = AmazonPay::getThemeConfig()['btnsecondary']; $class = 'ui ' . $secondary . ' button'; return $class; } }
- filterPurchaseButtonClass — Changes purchase button color for panetteria
- init — Enqueues necessary assets for this View