Skip to content

Commit 426bf8b

Browse files
Add links to survey
1 parent 03ead67 commit 426bf8b

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ 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+
129+
define( 'VISUALIZER_SURVEY', Visualizer_Module::is_pro() ? 'https://docs.google.com/forms/d/1WYZTHLnL7Nb6MpdjaOSo07iEjlDvolVB2wFDxUL9YnQ/' : 'https://docs.google.com/forms/d/10JiVg_XAFHOy9Vh7TFZuFybd4U_IOlldXXf1Z8Kkf7I' );
130+
127131
}
128132

129133
/**

templates/improve.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="pro-feature">
2+
<div class="pro-feature-inner">
3+
<div class="pro-feature-features">
4+
<h2>Some heading</h2>
5+
<p>Some lovely text.</p>
6+
<p><a href="<?php echo VISUALIZER_SURVEY; ?>" target="_blank">the survey</a></p>
7+
</div>
8+
<div class="clear"></div>
9+
</div>
10+
</div>
11+
<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)