PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.1.3
LatePoint – Calendar Booking Plugin for Appointments and Events v5.1.3
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / settings / notifications.php
latepoint / lib / views / settings Last commit date
custom_day_schedule_form.php 1 year ago default_form_fields.php 1 year ago general.php 1 year ago get_pro.php 1 year ago import_modal.php 1 year ago notifications.php 1 year ago pages.php 1 year ago payments.php 1 year ago steps_order_modal.php 1 year ago version_5_intro.php 1 year ago work_periods.php 1 year ago
notifications.php
101 lines
1 <?php
2 /*
3 * Copyright (c) 2022 LatePoint LLC. All rights reserved.
4 */
5
6 /**
7 * @var $notification_types array
8 */
9 ?>
10 <?php
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly
13 }
14 ?>
15 <div class="latepoint-settings-w os-form-w">
16 <form action="" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('settings', 'update')); ?>">
17 <?php wp_nonce_field('update_settings'); ?>
18 <div class="notifications-types-wrapper os-mb-4">
19 <?php
20 foreach($notification_types as $notification_type){
21 ?>
22 <div class="os-section-header">
23 <h3>
24 <?php
25 // translators: %s is the number of processors
26 echo esc_html(sprintf(__('%s Processors', 'latepoint'), $notification_type['label'])); ?></h3></div>
27 <?php if(!empty($notification_type['processors'])){ ?>
28 <div class="os-mb-4">
29 <div id="<?php echo esc_attr($notification_type['code'].'_processors_list'); ?>" class="os-mb-4">
30 <div class="os-togglable-items-w">
31 <?php echo OsFormHelper::hidden_field('settings[notifications_'.$notification_type['code'].'_processor]', ''); ?>
32 <?php foreach($notification_type['processors'] as $processor){ ?>
33 <div class="os-togglable-item-w" id="notificationProcessorToggler_<?php echo esc_attr($processor['code']); ?>">
34 <div class="os-togglable-item-head">
35 <div class="os-toggler-w">
36 <?php echo OsFormHelper::toggler_radio_field('settings[notifications_'.$notification_type['code'].'_processor]', false, $processor['code'], OsNotificationsHelper::is_notification_processor_enabled($notification_type['code'], $processor['code']), 'toggleNotificationSettings_'.$processor['code'], 'large'); ?>
37 </div>
38 <?php if(!empty($processor['image_url'])) echo '<img class="os-togglable-item-logo-img" src="'.esc_url($processor['image_url']).'"/>'; ?>
39 <div class="os-togglable-item-name"><?php echo esc_html($processor['label']); ?></div>
40 </div>
41 <div class="os-togglable-item-body" style="<?php echo OsNotificationsHelper::is_notification_processor_enabled($notification_type['code'], $processor['code']) ? '' : 'display: none'; ?>" id="toggleNotificationSettings_<?php echo esc_attr($processor['code']); ?>">
42 <?php do_action('latepoint_'.$notification_type['code'].'_processor_settings', $processor['code']); ?>
43 </div>
44 </div>
45 <?php } ?>
46 </div>
47 </div>
48 </div>
49 <?php
50 }else{
51 echo '<div class="os-mb-4">'.OsUtilHelper::generate_missing_addon_link(__('Requires upgrade to a premium version', 'latepoint')).'</div>';
52 }?>
53 <?php
54 }
55 ?>
56 </div>
57 <div class="os-section-header"><h3><?php esc_html_e('Other Settings', 'latepoint'); ?></h3></div>
58 <div class="white-box">
59 <div class="white-box-header">
60 <div class="os-form-sub-header"><h3><?php esc_html_e('Email System Settings', 'latepoint'); ?></h3></div>
61 </div>
62 <div class="white-box-content no-padding">
63 <div class="sub-section-row">
64 <div class="sub-section-label">
65 <h3><?php esc_html_e('Email Layout', 'latepoint') ?></h3>
66 </div>
67 <div class="sub-section-content">
68 <div class="latepoint-message latepoint-message-subtle"><?php esc_html_e('This layout is used for your emails. You can customize it below and use {{content}} variable to insert content of the email that is generated by the Process that was triggered. Go to Automation, Workflows to manage actual content of the email that is being sent.', 'latepoint'); ?></div>
69 <div class="os-mb-2">
70 <a href="#" class="latepoint-btn latepoint-btn-outline latepoint-btn-sm open-layout-template-variables-panel"><i class="latepoint-icon latepoint-icon-zap"></i><span><?php esc_html_e('Show layout variables', 'latepoint'); ?></span></a>
71 </div>
72 <?php OsFormHelper::wp_editor_field('settings[email_layout_template]', 'settings_email_layout_template', false, OsEmailHelper::get_email_layout()); ?>
73 </div>
74 </div>
75 <div class="sub-section-row">
76 <div class="sub-section-label"><h3><?php esc_html_e('Password Reset', 'latepoint'); ?></h3></div>
77 <div class="sub-section-content">
78 <div class="latepoint-message latepoint-message-subtle"><?php esc_html_e('This email content will be used for password reset requests. Use {{token}} variable to insert a generated token, which is needed to reset the password.', 'latepoint'); ?></div>
79 <div class="os-mb-2">
80 <a href="#" class="latepoint-btn latepoint-btn-outline latepoint-btn-sm open-template-variables-panel"><i class="latepoint-icon latepoint-icon-zap"></i><span><?php esc_html_e('Show smart variables', 'latepoint'); ?></span></a>
81 </div>
82 <?php echo OsFormHelper::text_field('settings[email_customer_password_reset_request_subject]', __('Email Subject', 'latepoint'), OsNotificationsHelper::customer_password_reset_request_subject(), ['theme' => 'bordered']); ?>
83 <?php OsFormHelper::wp_editor_field('settings[email_customer_password_reset_request_content]', 'settings_email_customer_password_reset_request_content', __('Email Message', 'latepoint'), OsNotificationsHelper::customer_password_reset_request_content()); ?>
84 </div>
85 </div>
86 </div>
87 </div>
88 <?php
89 /**
90 * Plug your "other settings" blocks in notification settings
91 *
92 * @since 4.7.8
93 * @hook latepoint_settings_notifications_other_after
94 *
95 */
96 do_action('latepoint_settings_notifications_other_after'); ?>
97 <div class="os-form-buttons">
98 <?php echo OsFormHelper::button('submit', __('Save Settings', 'latepoint'), 'submit', ['class' => 'latepoint-btn']); ?>
99 </div>
100 </form>
101 </div>