export-page.php
2 years ago
gateways-pages-trait.php
2 years ago
payments-page.php
2 years ago
print-page.php
2 years ago
single-payment-page.php
2 years ago
single-payment-print-page.php
2 years ago
single-payment-print-page.php
57 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Gateways\Pages; |
| 5 | |
| 6 | use Jet_Form_Builder\Admin\Pages\Pages_Manager; |
| 7 | use Jet_Form_Builder\Admin\Single_Pages\Base_Single_Page; |
| 8 | use Jet_Form_Builder\Admin\Single_Pages\Meta_Containers; |
| 9 | use JFB_Modules\Gateways\Meta_Boxes\Payer_Box; |
| 10 | use JFB_Modules\Gateways\Meta_Boxes\Payer_Shipping_Box; |
| 11 | use Jet_Form_Builder\Gateways\Meta_Boxes\Payment_Details_Box; |
| 12 | |
| 13 | // If this file is called directly, abort. |
| 14 | if ( ! defined( 'WPINC' ) ) { |
| 15 | die; |
| 16 | } |
| 17 | |
| 18 | class Single_Payment_Print_Page extends Base_Single_Page { |
| 19 | |
| 20 | use Gateways_Pages_Trait; |
| 21 | |
| 22 | /** |
| 23 | * Page title |
| 24 | */ |
| 25 | public function title(): string { |
| 26 | return __( 'JetFormBuilder Payment', 'jet-form-builder' ); |
| 27 | } |
| 28 | |
| 29 | public function slug(): string { |
| 30 | return 'payment-print'; |
| 31 | } |
| 32 | |
| 33 | public function parent_slug(): string { |
| 34 | return Payments_Page::SLUG; |
| 35 | } |
| 36 | |
| 37 | public function meta_containers(): array { |
| 38 | return array( |
| 39 | new Meta_Containers\Normal_Meta_Container( |
| 40 | new Payer_Box(), |
| 41 | new Payer_Shipping_Box() |
| 42 | ), |
| 43 | new Meta_Containers\Side_Meta_Container( |
| 44 | new Payment_Details_Box() |
| 45 | ), |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | public function assets() { |
| 50 | wp_enqueue_style( Pages_Manager::STYLE_ADMIN ); |
| 51 | wp_enqueue_script( Pages_Manager::SCRIPT_VUEX_PACKAGE ); |
| 52 | |
| 53 | parent::assets(); |
| 54 | } |
| 55 | |
| 56 | } |
| 57 |