PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / includes / admin / views / smtp / smtp.php

smtp.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at includes/admin/views/smtp/smtp.php

159 lines 6.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7
8 /**
9 * Display the main smtp page wrapper.
10 *
11 * @author David Bisset
12 * @package Charitable/Admin View/Tools
13 * @copyright Copyright (c) 2023, WP Charitable LLC
14 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
15 * @since 1.8.1.8
16 * @version 1.8.1.8
17 * @version 1.8.8.6
18 */
19
20 ob_start();
21 ?>
22
23 <div id="charitable-smtp" class="wrap">
24 <h1 class="screen-reader-text"><?php echo esc_html( get_admin_page_title() ); ?></h1>
25
26 <div class="charitable-intergrations-container intergration-smtp">
27
28 <img class="charitable-smtp-logo" src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ) . 'images/integrations/smtp.png'; ?>" alt="<?php echo esc_html__( 'Integrate WP Mail SMTP Into Charitable For Improved Email Reliability', 'charitable' ); ?>">
29
30 <h1><?php echo esc_html__( 'Making Email Deliverability Easy for WordPress', 'charitable' ); ?></h1>
31
32 <h2><?php echo esc_html__( 'WP Mail SMTP fixes deliverability problems with your WordPress emails and form notifications. It\'s built by the same folks behind Charitable.', 'charitable' ); ?></h2>
33
34 <div class="bullets-thumbnail">
35
36 <div>
37 <div class="charitable-screenshot">
38 <img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/integrations/smtp-screenshot-thumnbail.png' ); ?>" alt="<?php echo esc_html__( 'Integrate WP Mail SMTP Into Charitable For Improved Email Reliability', 'charitable' ); ?>">
39 <a href="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/integrations/smtp-screenshot-full.png' ); ?>" class="hover" data-lity=""></a>
40 </div>
41 </div>
42 <div>
43 <div class="vertical-wrapper">
44 <ul>
45 <li><?php echo esc_html__( 'Improves email deliverability in WordPress.', 'charitable' ); ?></li>
46 <li><?php echo esc_html__( 'Used by 2+ million websites.', 'charitable' ); ?></li>
47 <li><?php echo esc_html__( 'Free mailers: SendLayer, SMTP.com, Brevo, Google Workspace / Gmail, Mailgun, Postmark, SendGrid.', 'charitable' ); ?></li>
48 <li><?php echo esc_html__( 'Pro mailers: Amazon SES, Microsoft 365 / Outlook.com, Zoho Mail.', 'charitable' ); ?></li>
49 </ul>
50 </div>
51 </div>
52
53 </div>
54
55 <div class="charitable-intergration-steps">
56
57 <?php
58
59 $charitable_plugins_third_party = new Charitable_Admin_Plugins_Third_Party(); // phpcs:ignore
60
61 // determine if the SMTP plugin is installed and activated.
62 $charitable_is_smtp_installed = $charitable_plugins_third_party->is_plugin_installed( 'wp-mail-smtp' );
63 $charitable_is_smtp_active = $charitable_plugins_third_party->is_plugin_activated( 'wp-mail-smtp' );
64
65 if ( ! $charitable_is_smtp_installed ) {
66
67 $charitable_install_button_html = $charitable_plugins_third_party->get_install_button_html( 'wp-mail-smtp', 'Install WP Mail SMTP' );
68
69 ?>
70
71 <div class="charitable-intergration-step charitable-intergration-step-1" data-status="install">
72 <div class="instructions">
73 <h3><?php echo esc_html__( 'Install and Activate WP Mail SMTP', 'charitable' ); ?></h3>
74 <p><?php echo esc_html__( 'Install the WP Mail SMTP plugin by clicking this button', 'charitable' ); ?></p>
75 <?php echo $charitable_install_button_html; // phpcs:ignore ?>
76 </div>
77 <div class="step">
78 <div class="vertical-wrapper">
79 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-1.png' ); ?>" alt="<?php echo esc_html__( 'Step 1', 'charitable' ); ?>" /></div>
80 </div>
81 </div>
82 </div>
83
84 <?php
85 } elseif ( ! $charitable_is_smtp_active ) {
86
87 $charitable_basename = $charitable_plugins_third_party->get_basename_from_slug( 'wp-mail-smtp' );
88
89 if ( $charitable_basename ) :
90
91 $charitable_activate_button_html = $charitable_plugins_third_party->get_activation_button_html( 'wp-mail-smtp', 'Activate WP Mail SMTP' );
92
93 ?>
94
95 <div class="charitable-intergration-step charitable-intergration-step-1" data-status="activate">
96 <div class="instructions">
97 <h3><?php echo esc_html__( 'Activate WP Mail SMTP', 'charitable' ); ?></h3>
98 <p><?php echo esc_html__( 'Activate WP Mail SMTP by clicking this button:', 'charitable' ); ?></p>
99 <?php echo $charitable_activate_button_html; // phpcs:ignore ?>
100 </div>
101 <div class="step">
102 <div class="vertical-wrapper">
103 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-1.png' ); ?>" alt="<?php echo esc_html__( 'Step 1', 'charitable' ); ?>" /></div>
104 </div>
105 </div>
106 </div>
107
108 <?php
109
110 endif;
111
112 } else {
113
114 $charitable_setup_url = $charitable_plugins_third_party->get_setup_screen_for_plugin( 'wp-mail-smtp' );
115
116 ?>
117
118 <div class="charitable-intergration-step charitable-intergration-step-1" data-status="setup">
119 <div class="instructions">
120 <h3><?php echo esc_html__( 'Setup WP Mail SMTP', 'charitable' ); ?></h3>
121 <p><?php echo esc_html__( 'Setup WP Mail SMTP plugin by clicking this button:', 'charitable' ); ?></p>
122 <a href="<?php echo esc_url( $charitable_setup_url ); ?>" target="_blank" class="charitable-button button-link charitable-button-setup"><?php echo esc_html__( 'Set Up WP Mail SMTP', 'charitable' ); ?></a>
123 </div>
124 <div class="step">
125 <div class="vertical-wrapper">
126 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-1.png' ); ?>" alt="<?php echo esc_html__( 'Step 1', 'charitable' ); ?>" /></div>
127 </div>
128 </div>
129 </div>
130
131 <?php } ?>
132
133 <?php if ( ! charitable_is_installed_mi_pro() ) : ?>
134
135 <div class="charitable-intergration-step charitable-intergration-step-1">
136 <div class="instructions">
137 <h3><?php echo esc_html__( 'Upgrade to WP Mail SMTP Pro', 'charitable' ); ?></h3>
138 <p><?php echo esc_html__( 'Unlock addition features by upgrading to WP Mail SMTP Pro. Special offer: Get $50 OFF your plan!', 'charitable' ); ?></p>
139 <a href="https://www.wpmailsmtp.com/lite-upgrade/?utm_source=liteplugin&utm_medium=settings-panel&utm_campaign=ecommerce-tab&utm_content=8.22.0" target="_blank" class="charitable-button button-link"><?php echo esc_html__( 'Upgrade To Pro', 'charitable' ); ?></a>
140 </div>
141 <div class="step">
142 <div class="vertical-wrapper">
143 <div class="step-image"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/step-2.png' ); ?>" alt="<?php echo esc_html__( 'Step 2', 'charitable' ); ?>" /></div>
144 </div>
145 </div>
146 </div>
147
148 <?php endif; ?>
149
150 </div> <!-- charitable intergration steps -->
151
152 </div> <!-- charitable integrations container -->
153
154
155 </div>
156
157 <?php
158 echo ob_get_clean(); // phpcs:ignore
159