| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Display the MonsterInsights integration step for the Analytics report. |
| 10 |
* |
| 11 |
* @author WP Charitable LLC |
| 12 |
* @since 1.0.0 |
| 13 |
* @package Charitable/Admin Views/Reports |
| 14 |
* @version 1.8.8.6 |
| 15 |
*/ |
| 16 |
|
| 17 |
?> |
| 18 |
<div class="charitable-analytics-container intergration-monsterinsights"> |
| 19 |
|
| 20 |
<img class="charitable-monsterinsights-logo" src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/logos.png' ); ?>" alt="<?php echo esc_html__( 'Integrate Monster Insights Into Charitable For Analytics', 'charitable' ); ?>"> |
| 21 |
|
| 22 |
<h1><?php echo esc_html__( 'Increase Donations with MonsterInsights', 'charitable' ); ?></h1> |
| 23 |
|
| 24 |
<h2><?php echo esc_html__( 'MonsterInsights connects Google Analytics to your website so that you see what campaigns are working best with no coding needed.', 'charitable' ); ?></h2> |
| 25 |
|
| 26 |
<div class="bullets-thumbnail"> |
| 27 |
|
| 28 |
<div> |
| 29 |
<img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) . 'images/reports/analytics/monsterinsights.jpg' ); ?>" alt="<?php echo esc_html__( 'Integrate MonsterInsights Into Charitable For Analytics', 'charitable' ); ?>"> |
| 30 |
</div> |
| 31 |
<div> |
| 32 |
<div class="vertical-wrapper"> |
| 33 |
<ul> |
| 34 |
<li><?php echo esc_html__( 'See what types of website traffic are delivering results and donations', 'charitable' ); ?></li> |
| 35 |
<li><?php echo esc_html__( 'Easily track donation form performance to maximize results', 'charitable' ); ?></li> |
| 36 |
<li><?php echo esc_html__( 'View all key traffic and donation stats and reporting inside WordPress Admin area', 'charitable' ); ?></li> |
| 37 |
<li><?php echo esc_html__( 'Automatic one-click setup with WP Charitable', 'charitable' ); ?></li> |
| 38 |
</ul> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
|
| 42 |
</div> |
| 43 |
|
| 44 |
<div class="charitable-intergration-steps"> |
| 45 |
|
| 46 |
<?php |
| 47 |
|
| 48 |
$charitable_plugins_third_party = new Charitable_Admin_Plugins_Third_Party(); |
| 49 |
|
| 50 |
// determine if the MonsterInsights plugin is installed and activated. |
| 51 |
$charitable_is_monsterinsights_installed = $charitable_plugins_third_party->is_plugin_installed( 'monsterinsights' ); |
| 52 |
$charitable_is_monsterinsights_active = $charitable_plugins_third_party->is_plugin_activated( 'monsterinsights' ); |
| 53 |
|
| 54 |
if ( ! $charitable_is_monsterinsights_installed ) { |
| 55 |
|
| 56 |
$charitable_install_button_html = $charitable_plugins_third_party->get_install_button_html( 'monsterinsights', esc_html__( 'Install MonsterInsights', 'charitable' ) ); |
| 57 |
|
| 58 |
?> |
| 59 |
|
| 60 |
<div class="charitable-intergration-step charitable-intergration-step-1" data-status="install"> |
| 61 |
<div class="instructions"> |
| 62 |
<h3><?php echo esc_html__( 'Install and Activate MonsterInsights', 'charitable' ); ?></h3> |
| 63 |
<p><?php echo esc_html__( 'Install the MonsterInsights plugin by clicking this button', 'charitable' ); ?></p> |
| 64 |
<?php echo $charitable_install_button_html; // phpcs:ignore ?> |
| 65 |
</div> |
| 66 |
<div class="step"> |
| 67 |
<div class="vertical-wrapper"> |
| 68 |
<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> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
|
| 73 |
<?php |
| 74 |
} elseif ( ! $charitable_is_monsterinsights_active ) { |
| 75 |
|
| 76 |
$charitable_basename = $charitable_plugins_third_party->get_basename_from_slug( 'monsterinsights' ); |
| 77 |
|
| 78 |
if ( $charitable_basename ) : |
| 79 |
|
| 80 |
$charitable_activate_button_html = $charitable_plugins_third_party->get_activation_button_html( 'monsterinsights', esc_html__( 'Activate MonsterInsights', 'charitable' ) ); |
| 81 |
|
| 82 |
?> |
| 83 |
|
| 84 |
<div class="charitable-intergration-step charitable-intergration-step-1" data-status="activate"> |
| 85 |
<div class="instructions"> |
| 86 |
<h3><?php echo esc_html__( 'Activate MonsterInsights', 'charitable' ); ?></h3> |
| 87 |
<p><?php echo esc_html__( 'Activate MonsterInsights plugin by clicking this button:', 'charitable' ); ?></p> |
| 88 |
<?php echo $charitable_activate_button_html; // phpcs:ignore ?> |
| 89 |
</div> |
| 90 |
<div class="step"> |
| 91 |
<div class="vertical-wrapper"> |
| 92 |
<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> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
|
| 97 |
<?php |
| 98 |
|
| 99 |
endif; |
| 100 |
|
| 101 |
} else { |
| 102 |
|
| 103 |
$charitable_setup_url = $charitable_plugins_third_party->get_setup_screen_for_plugin( 'monsterinsights' ); |
| 104 |
|
| 105 |
?> |
| 106 |
|
| 107 |
<div class="charitable-intergration-step charitable-intergration-step-1" data-status="setup"> |
| 108 |
<div class="instructions"> |
| 109 |
<h3><?php echo esc_html__( 'Setup MonsterInsights', 'charitable' ); ?></h3> |
| 110 |
<p><?php echo esc_html__( 'Setup MonsterInsights plugin by clicking this button:', 'charitable' ); ?></p> |
| 111 |
<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 MonsterInsights', 'charitable' ); ?></a> |
| 112 |
</div> |
| 113 |
<div class="step"> |
| 114 |
<div class="vertical-wrapper"> |
| 115 |
<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> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
</div> |
| 119 |
|
| 120 |
<?php } ?> |
| 121 |
|
| 122 |
<?php if ( ! charitable_is_installed_mi_pro() ) : ?> |
| 123 |
|
| 124 |
<div class="charitable-intergration-step charitable-intergration-step-1"> |
| 125 |
<div class="instructions"> |
| 126 |
<h3><?php echo esc_html__( 'Upgrade to MonsterInsights Pro', 'charitable' ); ?></h3> |
| 127 |
<p><?php echo esc_html__( 'Unlock all tracking, reports, and one-click Charitable integration by upgrading to MonsterInsights Pro. Special offer: Save Up To 50%!', 'charitable' ); ?></p> |
| 128 |
<a href="https://www.monsterinsights.com/lite/?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> |
| 129 |
</div> |
| 130 |
<div class="step"> |
| 131 |
<div class="vertical-wrapper"> |
| 132 |
<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> |
| 133 |
</div> |
| 134 |
</div> |
| 135 |
</div> |
| 136 |
|
| 137 |
<?php endif; ?> |
| 138 |
|
| 139 |
</div> <!-- charitable intergration steps --> |
| 140 |
|
| 141 |
</div> <!-- charitable analytics container --> |
| 142 |
|