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
payments-page.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Gateways\Pages; |
| 5 | |
| 6 | use Jet_Form_Builder\Admin\Pages\Base_Page; |
| 7 | use Jet_Form_Builder\Admin\Pages\Pages_Manager; |
| 8 | use JFB_Modules\Gateways\Table_Views\Payments; |
| 9 | |
| 10 | // If this file is called directly, abort. |
| 11 | if ( ! defined( 'WPINC' ) ) { |
| 12 | die; |
| 13 | } |
| 14 | |
| 15 | class Payments_Page extends Base_Page { |
| 16 | |
| 17 | use Gateways_Pages_Trait; |
| 18 | |
| 19 | const SLUG = 'jfb-payments'; |
| 20 | |
| 21 | public function slug(): string { |
| 22 | return self::SLUG; |
| 23 | } |
| 24 | |
| 25 | public function title(): string { |
| 26 | return __( 'Payments', 'jet-form-builder' ); |
| 27 | } |
| 28 | |
| 29 | public function page_config(): array { |
| 30 | $view = new Payments(); |
| 31 | |
| 32 | return $view->load_view(); |
| 33 | } |
| 34 | |
| 35 | public function assets() { |
| 36 | wp_enqueue_script( Pages_Manager::SCRIPT_VUEX_PACKAGE ); |
| 37 | |
| 38 | parent::assets(); |
| 39 | } |
| 40 | |
| 41 | } |
| 42 |