actions
4 years ago
settings
4 years ago
addons-page.php
4 years ago
base-page.php
4 years ago
pages-manager.php
4 years ago
single-pages-manager.php
4 years ago
stable-pages-manager.php
4 years ago
addons-page.php
51 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Jet_Form_Builder\Admin\Pages; |
| 4 | |
| 5 | use Jet_Form_Builder\Plugin; |
| 6 | |
| 7 | class Addons_Page extends Base_Page { |
| 8 | |
| 9 | /** |
| 10 | * Page slug |
| 11 | */ |
| 12 | public function slug(): string { |
| 13 | return 'jfb-addons'; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Page title |
| 18 | */ |
| 19 | public function title(): string { |
| 20 | return __( 'Addons', 'jet-form-builder' ); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Return page config array |
| 25 | */ |
| 26 | public function page_config(): array { |
| 27 | |
| 28 | return apply_filters( |
| 29 | 'jfb-addons-page/page-localize-data', |
| 30 | array( |
| 31 | 'ajaxUrl' => esc_url_raw( admin_url( 'admin-ajax.php' ) ), |
| 32 | 'allAddons' => Plugin::instance()->addons_manager->get_plugin_data_list(), |
| 33 | 'licenseMode' => false, |
| 34 | 'licenseKey' => '', |
| 35 | 'licenseList' => array(), |
| 36 | 'themeInfo' => Plugin::instance()->addons_manager->get_theme_info(), |
| 37 | 'miscInfo' => array( |
| 38 | 'mainSiteUrl' => 'https://jetformbuilder.com/', |
| 39 | 'pricingPageUrl' => 'https://jetformbuilder.com/pricing/', |
| 40 | ), |
| 41 | ) |
| 42 | ); |
| 43 | } |
| 44 | |
| 45 | public function assets() { |
| 46 | wp_enqueue_script( 'jet-form-builder-admin-package' ); |
| 47 | |
| 48 | parent::assets(); |
| 49 | } |
| 50 | } |
| 51 |