helpful-links-box.php
2 years ago
pro-notice.php
2 years ago
settings-page.php
2 years ago
useful-banner-box.php
2 years ago
helpful-links-box.php
50 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Pages\Settings; |
| 5 | |
| 6 | use JFB_Components\Admin\Vui_Boxes\Base_Vui_Panel_Box; |
| 7 | use Jet_Form_Builder\Classes\Http\Utm_Url; |
| 8 | |
| 9 | // If this file is called directly, abort. |
| 10 | if ( ! defined( 'WPINC' ) ) { |
| 11 | die; |
| 12 | } |
| 13 | |
| 14 | class Helpful_Links_Box extends Base_Vui_Panel_Box { |
| 15 | |
| 16 | public function get_slug(): string { |
| 17 | return 'help'; |
| 18 | } |
| 19 | |
| 20 | public function get_title(): string { |
| 21 | return __( 'Help Center', 'jet-form-builder' ); |
| 22 | } |
| 23 | |
| 24 | public function get_description(): string { |
| 25 | return __( 'Support & Info', 'jet-form-builder' ); |
| 26 | } |
| 27 | |
| 28 | public function to_array(): array { |
| 29 | $utm = new Utm_Url( 'plugin' ); |
| 30 | $utm->set_medium( 'settings' ); |
| 31 | $utm->set_campaign( 'help-center-banner/knowledge-base' ); |
| 32 | $utm->set_content( $utm->get_license_and_theme( true ) ); |
| 33 | |
| 34 | return array_merge( |
| 35 | parent::to_array(), |
| 36 | array( |
| 37 | 'link_knowledge' => $utm->add_query( JET_FORM_BUILDER_SITE . '/features/overview/' ), |
| 38 | 'link_support' => 'https://support.crocoblock.com/support/home/', |
| 39 | 'link_community' => 'https://www.facebook.com/groups/CrocoblockCommunity', |
| 40 | 'link_git' => 'https://github.com/Crocoblock/jetformbuilder', |
| 41 | 'label_knowledge' => __( 'Knowledge base', 'jet-form-builder' ), |
| 42 | 'label_community' => __( 'Ask the community', 'jet-form-builder' ), |
| 43 | 'label_support' => __( 'Contact support', 'jet-form-builder' ), |
| 44 | 'label_git' => __( 'Feature requests & bug fixes', 'jet-form-builder' ), |
| 45 | ) |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | } |
| 50 |