PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.6.22
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.6.22
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 1.8.0 All 210 releases
charitable / includes / admin / views / welcome-page / page.php

page.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.6.22, at includes/admin/views/welcome-page/page.php

165 lines 11.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Display the Welcome page.
4 *
5 * @author Studio 164a
6 * @package Charitable/Admin View/Welcome Page
7 * @since 1.0.0
8 */
9
10 wp_enqueue_style( 'charitable-admin-pages' );
11
12 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
13
14 $gateways = Charitable_Gateways::get_instance()->get_active_gateways_names();
15 $campaigns = wp_count_posts( 'campaign' );
16 $campaigns_count = $campaigns->publish + $campaigns->draft + $campaigns->future + $campaigns->pending + $campaigns->private;
17 $emails = charitable_get_helper( 'emails' )->get_enabled_emails_names();
18 $install = isset( $_GET['install'] ) && $_GET['install'];
19 $languages = wp_get_available_translations();
20 $locale = get_locale();
21 $language = isset( $languages[ $locale ]['native_name'] ) ? $languages[ $locale ]['native_name'] : $locale;
22 $currency = charitable_get_option( 'currency', 'AUD' );
23 $extensions = array();
24
25 if ( 'en_ZA' == $locale || 'ZAR' == $currency ) {
26
27 $extensions['payfast'] = __( 'Accept donations in South African Rand', 'charitable' );
28 $extensions['recurring-donations'] = __( 'Accept recurring donations', 'charitable' );
29 $extensions['ambassadors'] = __( 'Peer to peer fundraising or crowdfunding', 'charitable' );
30 $extensions['anonymous-donations'] = __( 'Let donors give anonymously', 'charitable' );
31
32 } elseif ( 'hi_IN' == $locale || 'INR' == $currency ) {
33
34 $extensions['ambassadors'] = __( 'Peer to peer fundraising or crowdfunding', 'charitable' );
35 $extensions['payu-money'] = __( 'Accept donations in Indian Rupees', 'charitable' );
36 $extensions['anonymous-donations'] = __( 'Let donors give anonymously', 'charitable' );
37 $extensions['user-avatar'] = __( 'Let your donors upload their own profile photo', 'charitable' );
38
39 } elseif ( class_exists( 'EDD' ) ) {
40
41 $extensions['ambassadors'] = __( 'Peer to peer fundraising or crowdfunding', 'charitable' );
42 $extensions['easy-digital-downloads-connect'] = __( 'Collect donations with Easy Digital Downloads', 'charitable' );
43 $extensions['anonymous-donations'] = __( 'Let donors give anonymously', 'charitable' );
44 $extensions['user-avatar'] = __( 'Let your donors upload their own profile photo', 'charitable' );
45
46 } else {
47
48 $extensions['recurring-donations'] = __( 'Accept recurring donations', 'charitable' );
49 $extensions['ambassadors'] = __( 'Peer to peer fundraising or crowdfunding', 'charitable' );
50 $extensions['stripe'] = __( 'Accept credit card donations with Stripe', 'charitable' );
51 $extensions['authorize-net'] = __( 'Collect donations with Authorize.Net', 'charitable' );
52
53 }
54
55 ?>
56 <div class="wrap about-wrap charitable-wrap">
57 <h1>
58 <strong>Charitable</strong>
59 <sup class="version"><?php echo charitable()->get_version(); ?></sup>
60 </h1>
61 <div class="badge">
62 <a href="https://www.wpcharitable.com/?utm_source=welcome-page&amp;utm_medium=wordpress-dashboard&amp;utm_campaign=home&amp;utm_content=icon" target="_blank"><i class="charitable-icon charitable-icon-charitable"></i></a>
63 </div>
64 <div class="intro">
65 <?php
66 if ( $install ) :
67 _e( 'Thank you for installing Charitable!', 'charitable' );
68 else :
69 printf(
70 __( 'Enjoying Charitable? Why not <a href="%s" target="_blank">leave a %s review</a> on WordPress.org? We\'d really appreciate it.', 'charitable' ),
71 'https://wordpress.org/support/view/plugin-reviews/charitable?rate=5#postform',
72 '<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span>'
73 );
74 endif;
75 ?>
76 </div>
77 <hr />
78 <div class="column-left">
79 <div class="column-inside">
80 <h2><?php _e( 'The WordPress Fundraising Toolkit', 'charitable' ); ?></h2>
81 <p><?php _e( 'Charitable is everything you need to start accepting donations today. PayPal and offline donations work right out of the box, and when your organization is ready to grow, our extensions give you the tools you need to move forward.', 'charitable' ); ?></p>
82 <?php if ( current_user_can( 'manage_charitable_settings' ) ) : ?>
83 <hr />
84 <h3><?php _e( 'Getting Started', 'charitable' ); ?></h3>
85 <ul class="checklist">
86 <?php if ( count( $gateways ) > 0 ) : ?>
87 <li class="done"><?php
88 printf(
89 _x( 'You have activated %s. <a href="%s">Change settings</a>', 'You have activated x and y. Change gateway settings.', 'charitable' ),
90 charitable_list_to_sentence_part( $gateways ),
91 admin_url( 'admin.php?page=charitable-settings&tab=gateways' )
92 ); ?>
93 </li>
94 <?php else : ?>
95 <li class="not-done"><a href="<?php echo admin_url( 'admin.php?page=charitable-settings&tab=gateways' ); ?>"><?php _e( 'You need to enable a payment gateway', 'charitable' ); ?></a></li>
96 <?php endif ?>
97 <?php if ( $campaigns_count > 0 ) : ?>
98 <li class="done"><?php
99 printf(
100 __( 'You have created your first campaign. <a href="%s">Create another one.</a>', 'charitable' ),
101 admin_url( 'post-new.php?post_type=campaign' )
102 ); ?>
103 </li>
104 <?php else : ?>
105 <li class="not-done"><a href="<?php echo admin_url( 'post-new.php?post_type=campaign' ); ?>"><?php _e( 'Create your first campaign', 'charitable' ); ?></a></li>
106 <?php endif ?>
107 <?php if ( count( $emails ) > 0 ) : ?>
108 <li class="done"><?php
109 printf(
110 _x( 'You have turned on the %s. <a href="%s">Change settings</a>', 'You have activated x and y. Change email settings.', 'charitable' ),
111 charitable_list_to_sentence_part( $emails ),
112 admin_url( 'admin.php?page=charitable-settings&tab=emails' )
113 ); ?>
114 </li>
115 <?php else : ?>
116 <li class="not-done"><a href="<?php echo admin_url( 'admin.php?page=charitable-settings&tab=emails' ); ?>"><?php _e( 'Turn on email notifications', 'charitable' ); ?></a></li>
117 <?php endif ?>
118 </ul>
119 <p style="margin-bottom: 0;"><?php
120 printf(
121 __( 'Need a hand with anything? You might find the answer in <a href="%s">our documentation</a>, or you can always get in touch with us via <a href="%s">our support page</a>.', 'charitable' ),
122 'https://www.wpcharitable.com/documentation/?utm_source=welcome-page&utm_medium=wordpress-dashboard&utm_campaign=documentation',
123 'https://www.wpcharitable.com/support/?utm_source=welcome-page&utm_medium=wordpress-dashboard&utm_campaign=support'
124 ); ?>
125 </p>
126 <?php endif ?>
127 <hr />
128 <?php if ( strpos( $locale, 'en' ) !== 0 ) : ?>
129 <h3><?php printf( _x( 'Translate Charitable into %s', 'translate Charitable into language', 'charitable' ), $language ); ?></h3>
130 <p><?php printf( __( 'You can help us translate Charitable into %s by <a href="https://translate.wordpress.org/projects/wp-plugins/charitable">contributing to the translation project</a>.', 'charitable' ),
131 $language
132 ); ?></p>
133 <hr />
134 <?php endif ?>
135 <h3><?php _e( 'Developer? Contribute to Charitable', 'charitable' ); ?></h3>
136 <p><?php printf(
137 __( 'Found a bug? Want to contribute a patch or create a new feature? <a href="%s">GitHub is the place to go!</a>', 'charitable' ),
138 'https://github.com/Charitable/Charitable'
139 ); ?></p>
140 <hr />
141 <h3><?php _e( 'Try Reach, a free theme designed for fundraising', 'charitable' ); ?></h3>
142 <img src="<?php echo charitable()->get_path( 'assets', false ); ?>images/reach-mockup.png" alt="<?php _e( 'Screenshot of Reach, a WordPress fundraising theme designed to complement Charitable', 'charitable' ); ?>" style="margin-bottom: 21px; float: right; margin-left: 20px;" width="336" height="166" />
143 <p><?php _e( 'We built Reach to help non-profits &amp; social entrepreneurs run beautiful online fundraising campaigns. Whether you’re creating a website for your organization’s peer-to-peer fundraising event or building an online crowdfunding platform, Reach is the perfect starting point.', 'charitable' ); ?></p>
144 <p><a href="https://www.wpcharitable.com/download-reach/?utm_source=welcome-page&amp;utm_medium=wordpress-dashboard&amp;utm_campaign=reach" class="button-primary" style="margin-right: 8px;" target="_blank"><?php _e( 'Download it free', 'charitable' ); ?></a><a href="http://demo.wpcharitable.com/reach/?utm_source=welcome-page&amp;utm_medium=wordpress-dashboard&amp;utm_campaign=reach" class="button-secondary" target="_blank"><?php _e( 'View demo', 'charitable' ); ?></a></p>
145 </div>
146 </div>
147 <div class="column-right">
148 <div class="bundle-promo">
149 <h2><?php _e( 'Bundle & Save', 'charitable' ); ?></h2>
150 <p><?php _e( 'Choose one of our popular extension packages and <strong>save over 50%</strong>.', 'charitable' ); ?></p>
151 <p style="text-align: center;"><a href="https://www.wpcharitable.com/packages/?utm_source=welcome-page&amp;utm_medium=wordpress-dashboard&amp;utm_campaign=pwyw-packages" class="button-primary"><?php _e( 'View Pricing', 'charitable' ); ?></a></p>
152 </div>
153 <div class="column-inside">
154 <h3><?php _e( 'Recommended Extensions', 'charitable' ); ?></h3>
155 <ul class="extensions">
156 <?php foreach ( $extensions as $extension => $description ) : ?>
157 <li class="<?php echo $extension ?>">
158 <a href="https://www.wpcharitable.com/extensions/charitable-<?php echo $extension ?>/?utm_source=welcome-page&amp;utm_medium=wordpress-dashboard&amp;utm_campaign=<?php echo $extension ?>"><img src="<?php echo charitable()->get_path( 'assets', false ); ?>images/extensions/<?php echo $extension ?>.png" width="615" height="289" alt="<?php echo esc_attr( sprintf( _x( '%s banner', 'extension banner', 'charitable' ), $extension ) ); ?>" /><?php echo $description ?></a>
159 </li>
160 <?php endforeach ?>
161 </ul>
162 </div>
163 </div>
164 </div>
165