PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.7
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/Page/Data.php +17 -0 3.10.133.11.7 View file →
@@ -77,9 +77,26 @@
77 77 *
78 78 * @access protected
79 79 */
80 80 protected function _renderSidebarContent() {
81 +
82 + $chartSettings = get_post_meta( $this->chart->ID, Visualizer_Plugin::CF_SETTINGS, true );
83 + $hasTitle = isset( $chartSettings['backend-title'] ) && '' !== $chartSettings['backend-title'];
84 +
81 85 ?>
86 + <div class="viz-info-panel">
87 + <div class="viz-info-item">
88 + <label for="viz-shortcode"><?php _e( 'Shortcode', 'visualizer' ); ?></label>
89 + <div class="viz-info-row">
90 + <input type="text" id="viz-shortcode" value="[visualizer id=&quot;<?php echo $this->chart->ID; ?>&quot; class='']" readonly>
91 + <button class="button" id="viz-copy-shortcode"><?php _e( 'Copy', 'visualizer' ); ?></button>
92 + </div>
93 + </div>
94 + <div class="viz-info-item">
95 + <label for="viz-backend-name"><?php _e( 'Backend chart title for internal usage', 'visualizer' ); ?></label>
96 + <input type="text" id="viz-backend-name" value="<?php echo $hasTitle ? $chartSettings['backend-title'] : ( '#' . esc_attr( $this->chart->ID ) ); ?>">
97 + </div>
98 + </div>
82 99 <div id="viz-tabs">
83 100 <ul>
84 101 <li><a href="#viz-tab-basic-content" id="viz-tab-basic"><?php _e( 'Source', 'visualizer' ); ?></a></li>
85 102 <li><a href="#viz-tab-advanced-content" id="viz-tab-advanced"><?php _e( 'Settings', 'visualizer' ); ?></a></li>