| @@ -129,16 +129,12 @@ | ||
| 129 | 129 | * |
| 130 | 130 | * @return string The new html code. |
| 131 | 131 | */ |
| 132 | 132 | public function addProUpsell( $old, $feature = null ) { |
| 133 | - $pro_features = Visualizer_Module::get_features_for_license( 1 ); | |
| 134 | - $biz_features = Visualizer_Module::get_features_for_license( 2 ); | |
| 133 | + $biz_features = array( 'schedule-chart', 'chart-permissions', 'db-query' ); | |
| 135 | 134 | $return = ''; |
| 136 | 135 | $feature = strval( $feature ); |
| 137 | - if ( empty( $feature ) || | |
| 138 | - ( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) || | |
| 139 | - ( in_array( $feature, $pro_features, true ) && ! Visualizer_Module::is_pro() ) | |
| 140 | - ) { | |
| 136 | + if ( empty( $feature ) || ( in_array( $feature, $biz_features, true ) && ! apply_filters( 'visualizer_is_business', false ) ) ) { | |
| 141 | 137 | $msg = sprintf( __( 'Upgrade to %s to activate this feature!', 'visualizer' ), 'PRO' ); |
| 142 | 138 | if ( Visualizer_Module::is_pro() && in_array( $feature, $biz_features, true ) ) { |
| 143 | 139 | $msg = sprintf( __( 'Upgrade your license to at least the %s version to activate this feature!', 'visualizer' ), 'DEVELOPER' ); |
| 144 | 140 | } |
| @@ -145,9 +141,9 @@ | ||
| 145 | 141 | $return = '<div class="only-pro-content">'; |
| 146 | 142 | $return .= ' <div class="only-pro-container">'; |
| 147 | 143 | $return .= ' <div class="only-pro-inner">'; |
| 148 | 144 | $return .= ' <p>' . $msg . '</p>'; |
| 149 | - $return .= ' <a target="_blank" href="' . tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, esc_attr( $feature ) ) . '" title="' . __( 'Upgrade Now', 'visualizer' ) . '">' . __( 'Upgrade Now', 'visualizer' ) . '</a>'; | |
| 145 | + $return .= ' <a target="_blank" href="' . Visualizer_Plugin::PRO_TEASER_URL . '" title="' . __( 'Buy now', 'visualizer' ) . '">' . __( 'Buy now', 'visualizer' ) . '</a>'; | |
| 150 | 146 | $return .= ' </div>'; |
| 151 | 147 | $return .= ' </div>'; |
| 152 | 148 | $return .= '</div>'; |
| 153 | 149 | } |