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