Skip to content

Commit 131665c

Browse files
show more features even for plan 1
1 parent c0e2c4b commit 131665c

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

templates/upsell.php renamed to templates/more.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<?php
2+
if ( ! Visualizer_Module::is_pro() ) {
3+
?>
14
<div class="pro-feature">
25
<div class="pro-feature-inner">
36
<div class="pro-feature-features">
@@ -37,6 +40,11 @@
3740
</div>
3841
<div class="clear"></div>
3942

43+
<?php
44+
}
45+
if ( ! apply_filters( 'visualizer_is_business', false ) ) {
46+
?>
47+
4048
<div class="pro-feature">
4149
<div class="pro-feature-inner">
4250
<div class="pro-feature-features">
@@ -48,3 +56,7 @@
4856
<div class="clear"></div>
4957
</div>
5058
</div>
59+
60+
<?php
61+
}
62+
?>

templates/support.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<?php
44
$active_tab = isset( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : 'help';
5-
$show_more = ! Visualizer_Module::is_pro();
5+
$show_more = ! apply_filters( 'visualizer_is_business', false );
66
?>
77

88
<div class="pro-features-header">
@@ -12,7 +12,7 @@
1212
<div class="header-btns">
1313
<?php if ( $show_more ) { ?>
1414
<a target="_blank" href="<?php echo Visualizer_Plugin::PRO_TEASER_URL; ?>" class="buy-now"><span
15-
class="dashicons dashicons-cart"></span> More features</a>
15+
class="dashicons dashicons-cart"></span>More features</a>
1616
<?php } ?>
1717
</div>
1818
<div class="clear"></div>
@@ -22,8 +22,6 @@ 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>
2725
<?php
2826
if ( $show_more ) {
2927
?>
@@ -32,6 +30,8 @@ class="nav-tab <?php echo $active_tab === 'more' ? 'nav-tab-active' : ''; ?>"><?
3230
<?php
3331
}
3432
?>
33+
<a href="<?php echo esc_url( admin_url( 'admin.php?page=viz-support&tab=improve' ) ); ?>"
34+
class="nav-tab <?php echo $active_tab === 'improve' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Help us improve!', 'visualizer' ); ?></a>
3535
</h2>
3636

3737
<div class="viz-features-content">
@@ -43,7 +43,7 @@ class="nav-tab <?php echo $active_tab === 'more' ? 'nav-tab-active' : ''; ?>"><?
4343
include_once VISUALIZER_ABSPATH . '/templates/docs.php';
4444
break;
4545
case 'more':
46-
include_once VISUALIZER_ABSPATH . '/templates/upsell.php';
46+
include_once VISUALIZER_ABSPATH . '/templates/more.php';
4747
break;
4848
case 'improve':
4949
include_once VISUALIZER_ABSPATH . '/templates/improve.php';

0 commit comments

Comments
 (0)