Skip to content

Commit e5dd5f9

Browse files
Merge pull request #480 from contactashish13/issue-479
Add links to survey
2 parents 03ead67 + cb89d93 commit e5dd5f9

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

classes/Visualizer/Render/Library.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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><a href="' . VISUALIZER_SURVEY . '" target="_blank" class="">' . __( 'Don\'t see the features you need? Help us improve!', 'visualizer' ) . '</a></p>';
256257
echo '</div>';
257258
echo '</div>';
258259
}

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ function visualizer_launch() {
124124
}
125125
add_filter( 'themeisle_sdk_products', 'visualizer_register_sdk', 10, 1 );
126126
add_filter( 'pirate_parrot_log', 'visualizer_register_parrot', 10, 1 );
127+
128+
define( 'VISUALIZER_SURVEY', Visualizer_Module::is_pro() ? 'https://docs.google.com/forms/d/1WYZTHLnL7Nb6MpdjaOSo07iEjlDvolVB2wFDxUL9YnQ/' : 'https://docs.google.com/forms/d/10JiVg_XAFHOy9Vh7TFZuFybd4U_IOlldXXf1Z8Kkf7I' );
129+
127130
}
128131

129132
/**

templates/docs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<p>We have many more features and charts, and offer email & chat support if you purchase our <a href="<?php echo Visualizer_Plugin::PRO_TEASER_URL; ?>">Pro Version</a>.</p>
2424
<?php } ?>
2525

26-
<p>Ready to begin? Let's <a href="<?php echo admin_url( 'admin.php?page=' . Visualizer_Plugin::NAME . '&vaction=addnew' ); ?>">create a chart!
26+
<p>Ready to begin? Let's <a href="<?php echo admin_url( 'admin.php?page=' . Visualizer_Plugin::NAME . '&vaction=addnew' ); ?>">create a chart!</a>
2727
</div>
2828
</div>
2929
</div>

templates/improve.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="pro-feature">
2+
<div class="pro-feature-inner">
3+
<div class="pro-feature-features">
4+
<h2>Answer a few questions for us to help us improve the product</h2>
5+
<p>We're always looking for suggestions to further improve Visualizer. If you'd like to help us, please fill out this <a href="<?php echo VISUALIZER_SURVEY; ?>" target="_blank">survey</a>.</p>
6+
<?php if ( ! Visualizer_Module::is_pro() ) { ?>
7+
<p>If your feedback is especially helpful and we choose to do an interview with you to discuss your suggestions, you will even gain a yearly membership for free for your trouble.</p>
8+
<?php } ?>
9+
</div>
10+
<div class="clear"></div>
11+
</div>
12+
</div>
13+
<div class="clear"></div>

templates/support.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class="dashicons dashicons-cart"></span> More features</a>
2222
<h2 class="nav-tab-wrapper">
2323
<a href="<?php echo esc_url( admin_url( 'admin.php?page=viz-support&tab=help' ) ); ?>"
2424
class="nav-tab <?php echo $active_tab === 'help' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Support', 'visualizer' ); ?></a>
25+
<a href="<?php echo esc_url( admin_url( 'admin.php?page=viz-support&tab=improve' ) ); ?>"
26+
class="nav-tab <?php echo $active_tab === 'improve' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Help us improve!', 'visualizer' ); ?></a>
2527
<?php
2628
if ( $show_more ) {
2729
?>
@@ -43,6 +45,9 @@ class="nav-tab <?php echo $active_tab === 'more' ? 'nav-tab-active' : ''; ?>"><?
4345
case 'more':
4446
include_once VISUALIZER_ABSPATH . '/templates/upsell.php';
4547
break;
48+
case 'improve':
49+
include_once VISUALIZER_ABSPATH . '/templates/improve.php';
50+
break;
4651
}
4752
?>
4853
</div>

0 commit comments

Comments
 (0)