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
useful-banner-box.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Pages\Settings; |
| 5 | |
| 6 | use Jet_Form_Builder\Admin\Buttons\Base_Vui_Button as Button; |
| 7 | use Jet_Form_Builder\Admin\Vui_Boxes\Base_Vui_Banner_Box; |
| 8 | use Jet_Form_Builder\Classes\Http\Utm_Url; |
| 9 | |
| 10 | class Useful_Banner_Box extends Base_Vui_Banner_Box { |
| 11 | |
| 12 | public function get_label(): string { |
| 13 | return __( 'Useful', 'jet-form-builder' ); |
| 14 | } |
| 15 | |
| 16 | public function get_title(): string { |
| 17 | return __( 'Try more options with PRO addons from JetFormBuilder.', 'jet-form-builder' ); |
| 18 | } |
| 19 | |
| 20 | public function get_content(): string { |
| 21 | return __( '15 Addons Available', 'jet-form-builder' ); |
| 22 | } |
| 23 | |
| 24 | public function get_slug(): string { |
| 25 | return 'useful'; |
| 26 | } |
| 27 | |
| 28 | public function get_classes(): array { |
| 29 | return array( 'light-1-preset' ); |
| 30 | } |
| 31 | |
| 32 | public function get_buttons(): array { |
| 33 | $utm = new Utm_Url( 'jetformbuilder-dashboard/settings-try-more' ); |
| 34 | $utm->set_campaign( 'discover-addons' ); |
| 35 | |
| 36 | return array( |
| 37 | ( new Button( 'useful-button' ) ) |
| 38 | ->set_label( __( 'Discover addons', 'jet-form-builder' ) ) |
| 39 | ->set_size( Button::SIZE_MINI ) |
| 40 | ->set_style( Button::STYLE_ACCENT_BORDER ) |
| 41 | ->set_url( $utm->add_query( JET_FORM_BUILDER_SITE . '/addons' ) ), |
| 42 | ); |
| 43 | } |
| 44 | } |
| 45 |