PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.3.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.3.1
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Render/Sidebar.php +8 -3 3.3.03.3.1 View file →
@@ -269,9 +269,14 @@
269 269 if ( is_readable( $vendor_file ) ) {
270 270 include_once( $vendor_file );
271 271 }
272 272
273 - return class_exists( 'PhpOffice\PhpSpreadsheet\Spreadsheet' ) && extension_loaded( 'zip' ) && extension_loaded( 'xml' ) && extension_loaded( 'fileinfo' ) && version_compare( PHP_VERSION, '5.6.0', '>' );
273 + if ( version_compare( phpversion(), '5.6.0', '<' ) ) {
274 + do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'PHP version %s not supported', phpversion() ), 'error', __FILE__, __LINE__ );
275 + return false;
276 + }
277 +
278 + return class_exists( 'PhpOffice\PhpSpreadsheet\Spreadsheet' ) && extension_loaded( 'zip' ) && extension_loaded( 'xml' ) && extension_loaded( 'fileinfo' );
274 279 }
275 280
276 281 /**
277 282 * Renders chart general settings group.
@@ -712,11 +717,11 @@
712 717 * @static
713 718 * @access public
714 719 * @param string $description The description text.
715 720 */
716 - public static function _renderSectionDescription( $description ) {
721 + public static function _renderSectionDescription( $description, $classes = '' ) {
717 722 echo '<div class="viz-section-item">';
718 - echo '<div class="viz-section-description">', $description, '</div>';
723 + echo '<div class="viz-section-description ' . $classes . '">', $description, '</div>';
719 724 echo '</div>';
720 725 }
721 726
722 727 /**