Skip to content

Commit 6c70647

Browse files
Merge pull request #488 from contactashish13/test-3.3.0
upgrade and money-back guarantee related text
2 parents 8b0de3f + 8e0afff commit 6c70647

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

classes/Visualizer/Module/Sources.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ public function addProUpsell( $old, $feature = null ) {
134134
$return = '';
135135
$feature = strval( $feature );
136136
if ( empty( $feature ) || ( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) ) {
137-
$plan = 'PRO';
138-
if ( in_array( $feature, $biz_features, true ) ) {
139-
$plan = 'DEVELOPER';
137+
$msg = sprintf( __( 'Upgrade to %s to activate this feature!', 'visualizer' ), 'PRO' );
138+
if ( Visualizer_Module::is_pro() && in_array( $feature, $biz_features, true ) ) {
139+
$msg = sprintf( __( 'Upgrade your license to at least the %s version to activate this feature!', 'visualizer' ), 'DEVELOPER' );
140140
}
141141
$return = '<div class="only-pro-content">';
142142
$return .= ' <div class="only-pro-container">';
143143
$return .= ' <div class="only-pro-inner">';
144-
$return .= ' <p>' . sprintf( __( 'Activate your %s version to use this feature!', 'visualizer' ), $plan ) . '</p>';
144+
$return .= ' <p>' . $msg . '</p>';
145145
$return .= ' <a target="_blank" href="' . Visualizer_Plugin::PRO_TEASER_URL . '" title="' . __( 'Buy now', 'visualizer' ) . '">' . __( 'Buy now', 'visualizer' ) . '</a>';
146146
$return .= ' </div>';
147147
$return .= ' </div>';

classes/Visualizer/Render/Library.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private function _renderSidebar() {
243243
if ( ! Visualizer_Module::is_pro() ) {
244244
echo '<div id="visualizer-sidebar">';
245245
echo '<div class="visualizer-sidebar-box">';
246-
echo '<h3>' . __( 'Gain more editing power', 'visualizer' ) . '</h3><ul>';
246+
echo '<h3>' . __( 'Discover the power of PRO!', 'visualizer' ) . '</h3><ul>';
247247
echo '<li>' . __( 'Spreadsheet like editor', 'visualizer' ) . '</li>';
248248
echo '<li>' . __( 'Import from other charts', 'visualizer' ) . '</li>';
249249
echo '<li>' . __( 'Use database query to create charts', 'visualizer' ) . '</li>';
@@ -253,6 +253,7 @@ private function _renderSidebar() {
253253
echo '<li>' . __( 'Auto-sync with online files', 'visualizer' ) . '</li>';
254254
echo '<li>' . __( '6 more chart types', 'visualizer' ) . '</li></ul>';
255255
echo '<p><a href="' . Visualizer_Plugin::PRO_TEASER_URL . '" target="_blank" class="button button-primary">' . __( 'View more features', 'visualizer' ) . '</a></p>';
256+
echo '<p style="background-color: #0073aac7; color: #ffffff; padding: 2px; font-weight: bold;">' . __( 'We offer a 30-day no-questions-asked money back guarantee!', 'visualizer' ) . '</p>';
256257
echo '<p><a href="' . VISUALIZER_SURVEY . '" target="_blank" class="">' . __( 'Don\'t see the features you need? Help us improve!', 'visualizer' ) . '</a></p>';
257258
echo '</div>';
258259
echo '</div>';

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function visualizer_launch() {
125125
add_filter( 'themeisle_sdk_products', 'visualizer_register_sdk', 10, 1 );
126126
add_filter( 'pirate_parrot_log', 'visualizer_register_parrot', 10, 1 );
127127

128-
define( 'VISUALIZER_SURVEY', Visualizer_Module::is_pro() ? 'https://docs.google.com/forms/d/1WYZTHLnL7Nb6MpdjaOSo07iEjlDvolVB2wFDxUL9YnQ/' : 'https://docs.google.com/forms/d/10JiVg_XAFHOy9Vh7TFZuFybd4U_IOlldXXf1Z8Kkf7I' );
128+
define( 'VISUALIZER_SURVEY', Visualizer_Module::is_pro() ? 'https://forms.gle/7Zo7FuZbvQ8DTvRi6' : 'https://forms.gle/muMtbcyvHn1aTvmJ7' );
129129

130130
}
131131

0 commit comments

Comments
 (0)