PluginProbe
WP-Members Membership Plugin / trunk
WP-Members Membership Plugin vtrunk
trunk 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.4.2 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.4.9.1 3.4.9.2 3.4.9.3 3.4.9.4 3.4.9.5 3.4.9.6 3.4.9.7 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 All 34 releases
wp-members / includes / admin / partials / onboarding_notice.php

onboarding_notice.php in WP-Members Membership Plugin trunk, at includes/admin/partials/onboarding_notice.php

60 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $current_screen, $wpmem;
3
4 $which = ( 'update_pending' == $wpmem->install_state ) ? 'update_pending_notice_args' : 'new_install_notice_args';
5
6 $utms = array(
7 'utm_source' => get_site_url(),
8 'utm_medium' => 'wp-members-core-plugin',
9 'utm_campaign' => 'plugin-install',
10 );
11
12 $action_complete = ( 'update_pending' == $wpmem->install_state ) ? esc_html__( 'WP-Members update complete', 'wp-members' ) : esc_html__( 'WP-Members installation complete', 'wp-members' );
13
14 if ( 'finalize' == wpmem_get( 'wpmem_onboarding_action' ) ) {
15 ?>
16 <div class="notice notice-info is-dismissible">
17 <h3><?php echo $action_complete; ?></h3>
18 <?php if ( 'update_pending' != $wpmem->install_state ) { ?>
19 <p>WP-Members installs some basic defaults to get you started. Be sure to review <a href="<?php echo admin_url(); ?>options-general.php?page=wpmem-settings">the plugin's default setup here</a>.
20 There are links to related documentation in the plugin settings. There are also some helpful links below.</p>
21 <?php } ?>
22 <ul>
23 <li>&raquo; <a href="<?php echo $release_notes_link . "?" . http_build_query( $utms ); ?>" target="_blank"><?php printf( esc_html__( 'WP-Members version %s release notes', 'wp-members' ), $wpmem->version ); ?></a></li>
24 <li>&raquo; <a href="https://rocketgeek.com/plugins/wp-members/docs/?<?php echo http_build_query( $utms ); ?>" target="_blank"><?php _e( 'WP-Members documentation', 'wp-members' ); ?></a></li>
25 </ul>
26 <h3><?php _e( 'Want more features? Or need help?', 'wp-members' ); ?></h3>
27 <p>There are <a href="https://rocketgeek.com/store/?<?php echo http_build_query( $utms ); ?>" target="_blank">premium plugin add-ons</a> available as well as a <a href="https://rocketgeek.com/plugins/wp-members/support-options/?<?php echo http_build_query( $utms ); ?>" target="_blank">discounted bundle</a>.<br />
28 If you need assistance, consider a <a href="https://rocketgeek.com/plugins/wp-members/support-options/?<?php echo http_build_query( $utms ); ?>" target="_blank">premium support subscription</a>.</p>
29 <p>
30 <a href="<?php echo admin_url() . 'options-general.php?page=wpmem-settings'; ?>"><?php _e( 'Go to WP-Members settings', 'wp-members' ); ?></a> |
31 <a href="<?php echo admin_url() . 'plugins.php'; ?>"><?php _e( 'Go to WordPress plugins page', 'wp-members' ); ?></a> |
32 <a href="<?php echo admin_url() . 'update-core.php'; ?>"><?php _e( 'Go to WordPress updates page', 'wp-members' ); ?></a>
33 </p>
34 </div>
35
36 <?php } else { ?>
37
38 <div class="notice notice-info">
39 <form action="" method="post">
40 <p style="font-weight:bold;"><?php echo esc_html( $notice_heading ); ?></p>
41
42 <?php if ( $show_release_notes ) { ?>
43 <p class="description"><a href="<?php echo esc_url_raw( $release_notes_link ); ?>" target="_blank"><?php esc_html_e( 'Read the release notes', 'wp-members' ); ?></a></p>
44 <?php } ?>
45 <?php if ( false == $this->has_user_opted_in() ) { ?>
46 <h3><?php esc_html_e( 'Never miss an important update!', 'wp-members' ); ?></h3>
47 <p><input type="checkbox" name="optin" value="1" checked />
48 <?php esc_html_e( 'Opt-in to our security and feature updates notifications and non-sensitive diagnostic tracking.', 'wp-members' );?>
49 </p>
50 <p class="description">
51 <?php esc_html_e( 'This is only so we know how the plugin is being used so we can make it better and more secure.', 'wp-members' ); ?><br />
52 <?php esc_html_e( 'We do not track any personal information, and no data is ever shared with third parties!', 'wp-members' ); ?>
53 </p>
54 <?php } ?>
55 <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo esc_attr( $notice_button ); ?> &raquo;"></p>
56 <input type="hidden" name="wpmem_onboarding_action" value="finalize" />
57 </form>
58 </div>
59
60 <?php } ?>