PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.4
Kubio AI Page Builder v2.8.4
2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / lib / recommendations / index.php
kubio / lib / recommendations Last commit date
contact-forms 11 months ago contact-forms.php 11 months ago fluent-booking.php 9 months ago index.php 1 month ago newsletters.php 11 months ago recommendation-page-post-type.php 11 months ago recommendations-trait.php 3 months ago siteleads.php 3 months ago
index.php
70 lines
1 <?php
2 use Kubio\Flags;
3
4
5 require_once __DIR__ . '/recommendations-trait.php';
6 require_once __DIR__ . '/contact-forms.php';
7 require_once __DIR__ . '/newsletters.php';
8 require_once __DIR__ . '/fluent-booking.php';
9 require_once __DIR__ . '/siteleads.php';
10 require_once __DIR__ . '/recommendation-page-post-type.php';
11
12 function kubio_get_recommendations_settings() {
13 return array(
14 'contactForm' => array(
15 'pluginIsActive' => kubio_is_recommendation_contact_form_plugin_active(),
16 'inited' => Flags::getSetting( 'contactFormsInstalled', false ),
17 'itemsList' => array(),
18 ),
19 'newsletters' => array(
20 'pluginIsActive' => kubio_is_recommendation_newsletter_plugin_active(),
21 'inited' => Flags::getSetting( 'newslettersInstalled', false ),
22 'itemsList' => array(),
23 ),
24 'fluentBooking' => array(
25 'pluginIsActive' => kubio_is_fluent_booking_plugin_active(),
26 'inited' => Flags::getSetting( 'fluentBookingInstalled', false ),
27 'itemsList' => array(),
28 ),
29 'siteleads' => array(
30 'proIsInstalled' => kubio_is_siteleads_pro_plugin_installed(),
31 'pluginIsActive' => kubio_is_siteleads_plugin_active(),
32 'pluginIsInstalled' => kubio_is_siteleads_plugin_installed(),
33 'inited' => Flags::getSetting( 'siteleadsInstalled', false ),
34 'itemsList' => kubio_get_siteleads_widgets(),
35 'previewNonce' => wp_create_nonce( 'events_nonce' ),
36 ),
37 );
38 }
39 add_filter(
40 'kubio/kubio-utils-data/extras',
41 function ( $utils_data ) {
42
43 $utils_data['recommendations'] = isset( $utils_data['recommendations'] ) ? $utils_data['recommendations'] : array();
44
45 $utils_data['recommendations'] = array_merge(
46 $utils_data['recommendations'],
47 array(
48 'displayButtonActionsOptions' => true,
49 )
50 );
51
52 return $utils_data;
53 }
54 );
55
56 //add_action(
57 // 'kubio/after_activation',
58 // function () {
59 // Flags::setSetting( 'displayButtonActionsOptions', true );
60 // }
61 //);
62
63
64 add_action(
65 'after_switch_theme',
66 function () {
67 kubio_import_recommendation_page_post_type_template( false );
68 }
69 );
70