PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.28
Booktics – Appointment Booking Calendar for Service Businesses v1.0.28
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
← All changes | core/admin/notification.php +23 -2 1.0.16 → 1.0.28 View file →
@@ -23,8 +23,9 @@
23 23 array(
24 24 'plugin_name' => 'Booktics',
25 25 'plugin_slug' => 'booktics',
26 26 'general_prefix' => 'bt',
27 + 'hook_prefix' => 'booktics',
27 28 'text_domain' => 'booktics',
28 29 'admin_script_handler' => 'booktics-dashboard-scripts',
29 30 'sub_menu_filter_hook' => 'booktics_menu',
30 31 'sub_menu_details' =>
@@ -40,8 +41,16 @@
40 41 ->init();
41 42
42 43 add_filter(
43 44 'ens_bt_available_actions', function ( $actions ) {
45 + // Google Meet link generation is gated behind Pro (the pro plugin is what
46 + // adds the enable_google_meet field to the service model), but the tag
47 + // itself is registered here in free. Without this, a free user picks the
48 + // tag, gets an empty value in the email and reads it as a broken feature.
49 + $meet_label = booktics_is_pro_active()
50 + ? __( 'Google Meet URL', 'booktics' )
51 + : __( 'Google Meet URL (Pro)', 'booktics' );
52 +
44 53 $actions = array(
45 54 array(
46 55 'trigger_label' => __( 'Order Created', 'booktics' ),
47 56 'trigger_value' => 'order_created',
@@ -106,9 +115,9 @@
106 115 'value' => 'customer_name',
107 116 'type' => 'string',
108 117 ),
109 118 array(
110 - 'label' => __( 'Google meet Url', 'booktics' ),
119 + 'label' => $meet_label,
111 120 'value' => 'google_meet_url',
112 121 'type' => 'string',
113 122 ),
114 123 array(
@@ -184,9 +193,9 @@
184 193 'value' => 'user_email',
185 194 'type' => 'string',
186 195 ),
187 196 array(
188 - 'label' => __( 'Google Meet URL', 'booktics' ),
197 + 'label' => $meet_label,
189 198 'value' => 'google_meet_url',
190 199 'type' => 'string',
191 200 ),
192 201 array(
@@ -424,13 +433,25 @@
424 433 return $message;
425 434 }
426 435 $template = file_get_contents( $template_path );
427 436 $default_image = get_template_directory_uri() . '/assets/images/placeholder.jpg';
437 + $plugin_name = apply_filters(
438 + 'booktics_plugin_name',
439 + BOOKTICS_PLUGIN_NAME
440 + );
441 + $show_powered_by = apply_filters( 'booktics_show_email_powered_by', true );
442 +
443 + // Build powered-by HTML if enabled
444 + $powered_by_html = '';
445 + if ( $show_powered_by ) {
446 + $powered_by_html = '<p class="bkt-powered-by">Powered by ' . esc_html( $plugin_name ) . '</p>';
447 + }
428 448 $variables = array(
429 449 '{{MESSAGE}}' => wp_kses_post( $message ),
430 450 '{{COMPANY_NAME}}' => booktics_get_option( 'business_name', get_bloginfo( 'name' ) ),
431 451 '{{COMPANY_LOGO}}' => booktics_get_option( 'business_logo', $default_image ),
432 452 '{{COMPANY_ADDRESS}}' => booktics_get_option( 'business_address', 'California, USA' ),
453 + '{%powered_by_section%}' => $powered_by_html,
433 454 );
434 455
435 456 return str_replace( array_keys( $variables ), array_values( $variables ), $template );
436 457 }