payments-page.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Gateways\Pages; |
| 5 | |
| 6 | use Jet_Form_Builder\Admin\Pages\Base_Page; |
| 7 | use Jet_Form_Builder\Gateways\Table_Views\Payments; |
| 8 | |
| 9 | class Payments_Page extends Base_Page { |
| 10 | |
| 11 | const SLUG = 'jfb-payments'; |
| 12 | |
| 13 | public function slug(): string { |
| 14 | return self::SLUG; |
| 15 | } |
| 16 | |
| 17 | public function title(): string { |
| 18 | return __( 'Payments', 'jet-form-builder' ); |
| 19 | } |
| 20 | |
| 21 | public function page_config(): array { |
| 22 | $view = new Payments(); |
| 23 | |
| 24 | return $view->load_view(); |
| 25 | } |
| 26 | |
| 27 | public function assets() { |
| 28 | wp_enqueue_script( 'jet-form-builder-admin-vuex-package' ); |
| 29 | |
| 30 | parent::assets(); |
| 31 | } |
| 32 | |
| 33 | } |
| 34 |