| @@ -138,16 +138,21 @@ | ||
| 138 | 138 | ( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) || |
| 139 | 139 | ( in_array( $feature, $pro_features, true ) && ! Visualizer_Module::is_pro() ) |
| 140 | 140 | ) { |
| 141 | 141 | $msg = sprintf( __( 'Upgrade to %s to activate this feature!', 'visualizer' ), 'PRO' ); |
| 142 | - if ( Visualizer_Module::is_pro() && in_array( $feature, $biz_features, true ) ) { | |
| 143 | - $msg = sprintf( __( 'Upgrade your license to at least the %s version to activate this feature!', 'visualizer' ), 'DEVELOPER' ); | |
| 142 | + $plus_msg = sprintf( __( 'Upgrade to %s plan to activate this feature!', 'visualizer' ), 'Plus' ); | |
| 143 | + if ( in_array( $feature, $biz_features, true ) && Visualizer_Module::is_pro() ) { | |
| 144 | + $msg = $plus_msg; | |
| 144 | 145 | } |
| 146 | + if ( in_array( $feature, [ 'db-query', 'chart-permissions' ], true ) ) { | |
| 147 | + $msg = $plus_msg; | |
| 148 | + } | |
| 149 | + | |
| 145 | 150 | $return = '<div class="only-pro-content">'; |
| 146 | 151 | $return .= ' <div class="only-pro-container">'; |
| 147 | 152 | $return .= ' <div class="only-pro-inner">'; |
| 148 | 153 | $return .= ' <p>' . $msg . '</p>'; |
| 149 | - $return .= ' <a target="_blank" href="' . tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, esc_attr( $feature ) ) . '" title="' . __( 'Buy now', 'visualizer' ) . '">' . __( 'Buy now', 'visualizer' ) . '</a>'; | |
| 154 | + $return .= ' <a target="_blank" href="' . tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, esc_attr( $feature ) ) . '" title="' . __( 'Upgrade Now', 'visualizer' ) . '">' . __( 'Upgrade Now', 'visualizer' ) . '</a>'; | |
| 150 | 155 | $return .= ' </div>'; |
| 151 | 156 | $return .= ' </div>'; |
| 152 | 157 | $return .= '</div>'; |
| 153 | 158 | } |