PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.5.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.5.3
3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / addons / WPBakeryBuilder / WPBakeryBuilder.php
everest-forms / addons / WPBakeryBuilder Last commit date
Helper.php 1 year ago WPBakeryBuilder.php 1 year ago
WPBakeryBuilder.php
85 lines
1 <?php
2 /**
3 * Oxygen builder integration.
4 *
5 * @since 3.0.5
6 * @package EverestForms\Addons\WPBakeryBuilder\WPBakeryBuilder
7 */
8 namespace EverestForms\Addons\WPBakeryBuilder;
9
10 use EverestForms\Traits\Singleton;
11 use EverestForms\Addons\WPBakeryBuilder\Helper;
12
13 /**
14 * WPBakeryBuilder.
15 *
16 * @since 3.0.5
17 */
18 class WPBakeryBuilder {
19
20 use Singleton;
21
22 public function __construct() {
23 $this->setup();
24 }
25
26 /**
27 * Init.
28 *
29 * @since 3.0.5
30 */
31 public function setup() {
32
33 if ( ! Helper::is_wpbakery_active() ) {
34
35 Helper::print_admin_notice();
36
37 return;
38 }
39
40 /**
41 * Action to create WPBakery Widget for Everest Forms.
42 *
43 * @since 3.0.5
44 */
45 add_action( 'vc_before_init', array( $this, 'evf_create_wpbakery_widget_category' ) );
46 }
47
48 /**
49 * Create WPBakery Widgets for Everest Forms.
50 *
51 * @since 3.0.5
52 */
53 public function evf_create_wpbakery_widget_category() {
54 $evf_get_all_forms = evf_get_all_forms();
55 $evf_all_forms = array_flip( $evf_get_all_forms );
56
57 if ( empty( $evf_all_forms ) ) {
58 $evf_all_forms = array( '0' => esc_html__( 'Please create a form to use.', 'everest-forms' ) );
59 } else {
60 $evf_all_forms = array_merge( array( 0 => esc_html__( 'Select Form', 'everest-forms' ) ), $evf_all_forms );
61 }
62
63 vc_map(
64 array(
65 'name' => esc_html__( 'Everest Forms', 'everest-forms' ),
66 'base' => 'everest_form',
67 'icon' => 'icon-wpb-vc_everest_forms',
68 'category' => esc_html__( 'Everest Forms', 'everest-forms' ),
69 'description' => esc_html__( 'Everest Forms widget for WPBakery.', 'everest-forms' ),
70 'params' => array(
71 array(
72 'type' => 'dropdown',
73 'heading' => esc_html__( 'Form', 'everest-forms' ),
74 'param_name' => 'id',
75 'value' => $evf_all_forms,
76 'description' => esc_html__( 'Select Form.', 'everest-forms' ),
77 ),
78 ),
79 )
80 );
81
82 do_action( 'everest_forms_add_wpbakery_widget' );
83 }
84 }
85