| @@ -1,14 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: Visualizer: Tables and Charts for WordPress |
| 4 | 4 | Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs/ |
| 5 | - Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases. | |
| 6 | - Version: 3.10.13 | |
| 5 | + Description: Effortlessly create and embed responsive charts and tables with Visualizer, a powerful WordPress plugin that enhances data presentation from multiple sources. | |
| 6 | + Version: 3.11.7 | |
| 7 | 7 | Author: Themeisle |
| 8 | 8 | Author URI: http://themeisle.com |
| 9 | 9 | Requires at least: 5.2 |
| 10 | - Tested up to: 5.6 | |
| 10 | + Tested up to: 6.6 | |
| 11 | 11 | License: GPL v2.0 or later |
| 12 | 12 | WordPress Available: yes |
| 13 | 13 | Requires License: no |
| 14 | 14 | Pro Slug: visualizer-pro |
| @@ -143,9 +143,9 @@ | ||
| 143 | 143 | 'themeisle_sdk_compatibilities/' . VISUALIZER_DIRNAME, function ( $compatibilities ) { |
| 144 | 144 | $compatibilities['VisualizerPRO'] = array( |
| 145 | 145 | 'basefile' => defined( 'VISUALIZER_PRO_BASEFILE' ) ? VISUALIZER_PRO_BASEFILE : '', |
| 146 | 146 | 'required' => '1.8', |
| 147 | - 'tested_up' => '1.13', | |
| 147 | + 'tested_up' => '1.14', | |
| 148 | 148 | ); |
| 149 | 149 | return $compatibilities; |
| 150 | 150 | } |
| 151 | 151 | ); |
| @@ -156,12 +156,47 @@ | ||
| 156 | 156 | 'logo' => esc_url( VISUALIZER_ABSURL . 'images/visualizer-logo.svg' ), |
| 157 | 157 | 'location' => 'visualizer', |
| 158 | 158 | 'has_upgrade_menu' => ! Visualizer_Module::is_pro(), |
| 159 | 159 | 'upgrade_text' => esc_html__( 'Get Visualizer Pro', 'feedzy-rss-feeds' ), |
| 160 | - 'upgrade_link' => esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'aboutUsPage' ) ), | |
| 160 | + 'upgrade_link' => esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'sidebarMenuUpgrade', 'index' ) ), | |
| 161 | 161 | ); |
| 162 | 162 | } |
| 163 | 163 | ); |
| 164 | + | |
| 165 | + if ( ! defined( 'TI_CYPRESS_TESTING' ) && 'yes' === get_option( 'visualizer_logger_flag', 'no' ) ) { | |
| 166 | + add_filter( 'themeisle_sdk_enable_telemetry', '__return_true' ); | |
| 167 | + add_filter( | |
| 168 | + 'themeisle_sdk_telemetry_products', | |
| 169 | + function( $products ) { | |
| 170 | + $already_registered = false; | |
| 171 | + | |
| 172 | + $license = get_option( 'visualizer_pro_license_data', 'free' ); | |
| 173 | + if ( ! empty( $license ) && is_object( $license ) ) { | |
| 174 | + $license = $license->key; | |
| 175 | + } | |
| 176 | + $track_hash = 'free' === $license ? 'free' : wp_hash( $license ); | |
| 177 | + | |
| 178 | + foreach ( $products as &$product ) { | |
| 179 | + if ( strstr( $product['slug'], 'visualizer' ) !== false ) { | |
| 180 | + $already_registered = true; | |
| 181 | + $product['trackHash'] = $track_hash; | |
| 182 | + } | |
| 183 | + } | |
| 184 | + | |
| 185 | + if ( $already_registered ) { | |
| 186 | + return $products; | |
| 187 | + } | |
| 188 | + | |
| 189 | + // Add Visualizer to the list of products to track the usage of AI Block. | |
| 190 | + $products[] = array( | |
| 191 | + 'slug' => 'visualizer', | |
| 192 | + 'consent' => 'yes' === get_option( 'visualizer_logger_flag', 'no' ), | |
| 193 | + 'trackHash' => $track_hash, | |
| 194 | + ); | |
| 195 | + return $products; | |
| 196 | + } | |
| 197 | + ); | |
| 198 | + } | |
| 164 | 199 | } |
| 165 | 200 | |
| 166 | 201 | /** |
| 167 | 202 | * Registers with the SDK |