PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.0.2
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.0.2
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 3.10.4 All 148 releases
← All changes | classes/Visualizer/Render/Sidebar.php +7 -12 3.0.83.0.2 View file →
@@ -156,9 +156,9 @@
156 156 self::_renderGroupEnd();
157 157
158 158 self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) );
159 159 self::_renderSectionStart();
160 - self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the', 'visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
160 + self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the','visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
161 161
162 162 $example = '
163 163 {
164 164 "vAxis": {
@@ -191,10 +191,8 @@
191 191 *
192 192 * @access protected
193 193 */
194 194 protected function _renderActionSettings() {
195 - global $wp_version;
196 - $disable_actions = version_compare( $wp_version, '4.7.0', '<' );
197 195 self::_renderSectionStart( esc_html__( 'Actions', 'visualizer' ), false );
198 196 self::_renderCheckboxItem(
199 197 esc_html__( 'Print', 'visualizer' ),
200 198 'actions[]',
@@ -199,10 +197,9 @@
199 197 esc_html__( 'Print', 'visualizer' ),
200 198 'actions[]',
201 199 isset( $this->actions ) && in_array( 'print', $this->actions ) ? true : false,
202 200 'print',
203 - $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : esc_html__( 'To enable printing the data.', 'visualizer' ),
204 - $disable_actions
201 + esc_html__( 'To enable printing the data.', 'visualizer' )
205 202 );
206 203 self::_renderCheckboxItem(
207 204 esc_html__( 'CSV', 'visualizer' ),
208 205 'actions[]',
@@ -207,10 +204,9 @@
207 204 esc_html__( 'CSV', 'visualizer' ),
208 205 'actions[]',
209 206 isset( $this->actions ) && in_array( 'csv;application/csv', $this->actions ) ? true : false,
210 207 'csv;application/csv',
211 - $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : esc_html__( 'To enable downloading the data as a CSV.', 'visualizer' ),
212 - $disable_actions
208 + esc_html__( 'To enable downloading the data as a CSV.', 'visualizer' )
213 209 );
214 210
215 211 $disabled = ! ( class_exists( 'PHPExcel' ) && extension_loaded( 'zip' ) && extension_loaded( 'xml' ) && version_compare( PHP_VERSION, '5.2.0', '>' ) );
216 212 self::_renderCheckboxItem(
@@ -217,10 +213,10 @@
217 213 esc_html__( 'Excel', 'visualizer' ),
218 214 'actions[]',
219 215 isset( $this->actions ) && in_array( 'xls;application/vnd.ms-excel', $this->actions ) ? true : false,
220 216 'xls;application/vnd.ms-excel',
221 - $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : ( $disabled ? '<span class="viz-section-error">' . esc_html__( 'Enable the ZIP and XML extensions to use this setting.', 'visualizer' ) . '</span>' : esc_html__( 'To enable downloading the data as an Excel spreadsheet.', 'visualizer' ) ),
222 - $disable_actions || $disabled
217 + $disabled ? '<span class="viz-section-error">' . esc_html__( 'Enable the ZIP and XML extensions to use this setting.', 'visualizer' ) . '</span>' : esc_html__( 'To enable downloading the data as an Excel spreadsheet.', 'visualizer' ),
218 + $disabled
223 219 );
224 220 self::_renderCheckboxItem(
225 221 esc_html__( 'Copy', 'visualizer' ),
226 222 'actions[]',
@@ -225,10 +221,9 @@
225 221 esc_html__( 'Copy', 'visualizer' ),
226 222 'actions[]',
227 223 isset( $this->actions ) && in_array( 'copy', $this->actions ) ? true : false,
228 224 'copy',
229 - $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : esc_html__( 'To enable copying the data to the clipboard.', 'visualizer' ),
230 - $disable_actions
225 + esc_html__( 'To enable copying the data to the clipboard.', 'visualizer' )
231 226 );
232 227 self::_renderSectionEnd();
233 228 }
234 229
@@ -667,9 +662,9 @@
667 662 protected static function _renderCheckboxItem( $title, $name, $value, $default, $desc, $disabled = false ) {
668 663 echo '<div class="viz-section-item">';
669 664 echo '<a class="more-info" href="javascript:;">[?]</a>';
670 665 echo '<b>', $title, '</b>';
671 - echo '<input type="checkbox" class="control-check" value="', $default, '" name="', $name, '" ', ( $value == $default ? 'checked' : '' ), ' ', ( $disabled ? 'disabled=disabled' : '' ), '>';
666 + echo '<input type="checkbox" class="control-check" value="', $default, '" name="', $name, '" ', ($value == $default ? 'checked' : ''), ' ', ($disabled ? 'disabled=disabled' : ''), '>';
672 667 echo '<p class="viz-section-description">', $desc, '</p>';
673 668 echo '</div>';
674 669 }
675 670