PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.0.3
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.0.3
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 +2 -77 3.1.13.0.3 View file →
@@ -83,24 +83,8 @@
83 83 */
84 84 protected $_alignments;
85 85
86 86 /**
87 - * Whether this chart supports animation or not.
88 - *
89 - * @access protected
90 - * @var bool
91 - */
92 - protected $_supportsAnimation = true;
93 -
94 - /**
95 - * Which library does this this chart implement?
96 - *
97 - * @access protected
98 - * @var string
99 - */
100 - protected $_library = null;
101 -
102 - /**
103 87 * Constructor.
104 88 *
105 89 * @since 1.0.0
106 90 *
@@ -131,10 +115,8 @@
131 115 '' => '',
132 116 '1' => esc_html__( 'Yes', 'visualizer' ),
133 117 '0' => esc_html__( 'No', 'visualizer' ),
134 118 );
135 -
136 - $this->hooks();
137 119 }
138 120
139 121 /**
140 122 * Renders chart title settings.
@@ -174,9 +156,9 @@
174 156 self::_renderGroupEnd();
175 157
176 158 self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) );
177 159 self::_renderSectionStart();
178 - self::_renderSectionDescription( '<span class="viz-gvlink">' . sprintf( __( 'Configure the graph by providing configuration variables right from the %1$sGoogle Visualization API%2$s', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/gallery/?#configuration-options" target="_blank">', '</a>' ) . '</span>' );
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.' );
179 161
180 162 $example = '
181 163 {
182 164 "vAxis": {
@@ -192,10 +174,9 @@
192 174 esc_html__( 'Configuration', 'visualizer' ),
193 175 'manual',
194 176 $this->manual,
195 177 sprintf(
196 - esc_html__( 'One per line in valid JSON (key:value) format e.g. %s', 'visualizer' ),
197 - '<br><code>' . $example . '</code>'
178 + esc_html__( 'One per line in valid JSON (key:value) format e.g. %s', 'visualizer' ), '<br><code>' . $example . '</code>'
198 179 ),
199 180 '',
200 181 array( 'rows' => 5 )
201 182 );
@@ -329,61 +310,12 @@
329 310
330 311 self::_renderSectionStart( esc_html__( 'Tooltip', 'visualizer' ), false );
331 312 $this->_renderTooltipSettigns();
332 313 self::_renderSectionEnd();
333 -
334 - $this->_renderAnimationSettings();
335 -
336 314 self::_renderGroupEnd();
337 315 }
338 316
339 317 /**
340 - * Renders animation settings section.
341 - *
342 - * @access protected
343 - */
344 - protected function _renderAnimationSettings() {
345 - if ( ! $this->_supportsAnimation ) {
346 - return;
347 - }
348 -
349 - self::_renderSectionStart( esc_html__( 'Animation', 'visualizer' ), false );
350 -
351 - self::_renderCheckboxItem(
352 - esc_html__( 'Animate on startup', 'visualizer' ),
353 - 'animation[startup]',
354 - $this->animation['startup'],
355 - true,
356 - esc_html__( 'Determines if the chart will animate on the initial draw.', 'visualizer' )
357 - );
358 -
359 - self::_renderTextItem(
360 - esc_html__( 'Duration', 'visualizer' ),
361 - 'animation[duration]',
362 - isset( $this->animation['duration'] ) ? $this->animation['duration'] : 0,
363 - esc_html__( 'The duration of the animation, in milliseconds', 'visualizer' ),
364 - 0,
365 - 'number'
366 - );
367 -
368 - self::_renderSelectItem(
369 - esc_html__( 'Easing', 'visualizer' ),
370 - 'animation[easing]',
371 - isset( $this->animation['easing'] ) ? $this->animation['easing'] : null,
372 - array(
373 - 'linear' => esc_html__( 'Constant speed', 'visualizer' ),
374 - 'in' => esc_html__( 'Start slow and speed up', 'visualizer' ),
375 - 'out' => esc_html__( 'Start fast and slow down', 'visualizer' ),
376 - 'inAndOut' => esc_html__( 'Start slow, speed up, then slow down', 'visualizer' ),
377 - ),
378 - esc_html__( 'The easing function applied to the animation.', 'visualizer' )
379 - );
380 -
381 - self::_renderSectionEnd();
382 -
383 - }
384 -
385 - /**
386 318 * Renders tooltip settings section.
387 319 *
388 320 * @since 1.4.0
389 321 *
@@ -756,14 +688,7 @@
756 688 echo '<b>', $title, '</b>';
757 689 echo '<textarea class="control-text" ', $attributes, ' name="', $name, '" placeholder="', $placeholder, '">', $value, '</textarea>';
758 690 echo '<p class="viz-section-description">', $desc, '</p>';
759 691 echo '</div>';
760 - }
761 -
762 - /**
763 - * Returns the library this chart implements.
764 - */
765 - public function getLibrary() {
766 - return $this->_library;
767 692 }
768 693
769 694 }