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 / automation / automation.php

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

159 lines 6.8 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 automation 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.8
16 * @version 1.8.8
17 * @version 1.8.8.6
18 */
19
20 ob_start();
21 ?>
22
23 <div id="charitable-automation" 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-automation">
27
28 <img class="charitable-automation-logo" src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ) . 'images/integrations/automator.png'; ?>" alt="<?php echo esc_html__( 'Integrate Automation Tools Into Charitable For Streamlined Fundraising', 'charitable' ); ?>">
29
30 <h1><?php echo esc_html__( 'Automate Your Fundraising Campaigns', 'charitable' ); ?></h1>
31
32 <h2><?php echo esc_html__( 'Put your campaigns on autopilot with Uncanny Automator. Automatically run actions in hundreds of supported plugins and apps when visitors make donations.', '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/automation-screenshot-thumbnail.png' ); ?>" alt="<?php echo esc_html__( 'Integrate Automation Tools Into Charitable For Streamlined Fundraising', 'charitable' ); ?>">
39 <a href="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/integrations/automation-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__( 'Automatically push donors and donations to Google Sheets, Airtable, Trello and more.', 'charitable' ); ?></li>
46 <li><?php echo esc_html__( 'Automatically publish campaign updates on social media.', 'charitable' ); ?></li>
47 <li><?php echo esc_html__( 'Automatically schedule and send follow-up messages on email, WhatsApp, Telegram, SMS and more.', 'charitable' ); ?></li>
48 <li><?php echo esc_html__( 'Build automations in minutes with a powerful, no-code recipe builder.', '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 Automation plugin is installed and activated.
62 $charitable_is_automation_installed = $charitable_plugins_third_party->is_plugin_installed( 'automation' );
63 $charitable_is_automation_active = $charitable_plugins_third_party->is_plugin_activated( 'automation' );
64
65 if ( ! $charitable_is_automation_installed ) {
66
67 $charitable_install_button_html = $charitable_plugins_third_party->get_install_button_html( 'uncanny-automator', 'Install Uncanny Automator' );
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 Uncanny Automator', 'charitable' ); ?></h3>
74 <p><?php echo esc_html__( 'Install the Uncanny Automator 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_automation_active ) {
86
87 $charitable_basename = $charitable_plugins_third_party->get_basename_from_slug( 'uncanny-automator' );
88
89 if ( $charitable_basename ) :
90
91 $charitable_activate_button_html = $charitable_plugins_third_party->get_activation_button_html( 'uncanny-automator', 'Activate Uncanny Automator' );
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 Uncanny Automator', 'charitable' ); ?></h3>
98 <p><?php echo esc_html__( 'Activate Automation 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( 'uncanny-automator' );
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 Uncanny Automator', 'charitable' ); ?></h3>
121 <p><?php echo esc_html__( 'Setup Automation 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 Uncanny Automator', '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 Uncanny Automator Pro', 'charitable' ); ?></h3>
138 <p><?php echo esc_html__( 'Unlock thousands of additional triggers, tokens and actions by upgrading to Uncanny Automator Pro. Special introductory offer: Save at least 25%!', 'charitable' ); ?></p>
139 <a href="https://automatorplugin.com/pricing" 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