PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 2.1.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v2.1.1
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/Library.php +31 -42 3.1.22.1.1 View file →
@@ -77,9 +77,8 @@
77 77 if ( isset( $_GET['s'] ) && strlen( $_GET['s'] ) > 0 ) {
78 78 $filterBy = filter_input( INPUT_GET, 's', FILTER_SANITIZE_STRING );
79 79 }
80 80 // Added by Ash/Upwork
81 - echo $this->custom_css;
82 81 echo '<div id="visualizer-types" class="visualizer-clearfix">';
83 82 echo '<ul class="subsubsub">';
84 83 foreach ( $this->types as $type => $array ) {
85 84 if ( ! is_array( $array ) ) {
@@ -86,16 +85,12 @@
86 85 // support for old pro
87 86 $array = array( 'enabled' => true, 'name' => $array );
88 87 }
89 88 $label = $array['name'];
90 - $link = '<a class=" " href="' . esc_url(
91 - add_query_arg(
92 - array(
93 - 'type' => $type,
94 - 'vpage' => false,
95 - )
96 - )
97 - ) . '">';
89 + $link = '<a class=" " href="' . esc_url( add_query_arg( array(
90 + 'type' => $type,
91 + 'vpage' => false,
92 + ) ) ) . '">';
98 93 if ( ! $array['enabled'] ) {
99 94 $link = "<a class=' visualizer-pro-only' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>";
100 95 }
101 96 echo '<li class="visualizer-list-item all">';
@@ -163,40 +158,26 @@
163 158 * @param string $placeholder_id The placeholder's id for the chart.
164 159 * @param int $chart_id The id of the chart.
165 160 */
166 161 private function _renderChartBox( $placeholder_id, $chart_id ) {
167 - $settings = get_post_meta( $chart_id, Visualizer_Plugin::CF_SETTINGS );
168 - $title = '#' . $chart_id;
169 - if ( ! empty( $settings[0]['title'] ) ) {
170 - $title = $settings[0]['title'];
171 - }
172 162 $ajax_url = admin_url( 'admin-ajax.php' );
173 - $delete_url = add_query_arg(
174 - array(
175 - 'action' => Visualizer_Plugin::ACTION_DELETE_CHART,
176 - 'nonce' => wp_create_nonce(),
177 - 'chart' => $chart_id,
178 - ),
179 - $ajax_url
180 - );
181 - $clone_url = add_query_arg(
182 - array(
183 - 'action' => Visualizer_Plugin::ACTION_CLONE_CHART,
184 - 'nonce' => wp_create_nonce( Visualizer_Plugin::ACTION_CLONE_CHART ),
185 - 'chart' => $chart_id,
186 - 'type' => $this->type,
187 - ),
188 - $ajax_url
189 - );
190 - $export_link = add_query_arg(
191 - array(
192 - 'action' => Visualizer_Plugin::ACTION_EXPORT_DATA,
193 - 'chart' => $chart_id,
194 - 'security' => wp_create_nonce( Visualizer_Plugin::ACTION_EXPORT_DATA . Visualizer_Plugin::VERSION ),
195 - ),
196 - admin_url( 'admin-ajax.php' )
197 - );
198 - echo '<div class="visualizer-chart"><div class="visualizer-chart-title">', esc_html( $title ), '</div>';
163 + $delete_url = add_query_arg( array(
164 + 'action' => Visualizer_Plugin::ACTION_DELETE_CHART,
165 + 'nonce' => wp_create_nonce(),
166 + 'chart' => $chart_id,
167 + ), $ajax_url );
168 + $clone_url = add_query_arg( array(
169 + 'action' => Visualizer_Plugin::ACTION_CLONE_CHART,
170 + 'nonce' => wp_create_nonce( Visualizer_Plugin::ACTION_CLONE_CHART ),
171 + 'chart' => $chart_id,
172 + 'type' => $this->type,
173 + ), $ajax_url );
174 + $export_link = add_query_arg( array(
175 + 'action' => Visualizer_Plugin::ACTION_EXPORT_DATA,
176 + 'chart' => $chart_id,
177 + 'security' => wp_create_nonce( Visualizer_Plugin::ACTION_EXPORT_DATA . Visualizer_Plugin::VERSION ),
178 + ), admin_url( 'admin-ajax.php' ) );
179 + echo '<div class="visualizer-chart">';
199 180 echo '<div id="', $placeholder_id, '" class="visualizer-chart-canvas">';
200 181 echo '<img src="', VISUALIZER_ABSURL, 'images/ajax-loader.gif" class="loader">';
201 182 echo '</div>';
202 183 echo '<div class="visualizer-chart-footer visualizer-clearfix">';
@@ -215,18 +196,26 @@
215 196 * Render sidebar.
216 197 */
217 198 private function _renderSidebar() {
218 199 if ( ! VISUALIZER_PRO ) {
200 + $checked = apply_filters( 'visualizer_logger_flag', false );
201 + $checked = ( $checked === false ) ? '' : 'checked';
219 202 echo '<div id="visualizer-sidebar">';
220 203 echo '<div class="visualizer-sidebar-box">';
221 204 echo '<h3>' . __( 'Gain more editing power', 'visualizer' ) . '</h3><ul>';
222 205 echo '<li>' . __( 'Spreadsheet like editor', 'visualizer' ) . '</li>';
223 206 echo '<li>' . __( 'Import from other charts', 'visualizer' ) . '</li>';
224 - echo '<li>' . __( 'Frontend editor', 'visualizer' ) . '</li>';
225 - echo '<li>' . __( 'Private charts', 'visualizer' ) . '</li>';
226 207 echo '<li>' . __( 'Auto-sync with online files', 'visualizer' ) . '</li>';
227 208 echo '<li>' . __( '3 more chart types', 'visualizer' ) . '</li></ul>';
228 209 echo '<a href="' . Visualizer_Plugin::PRO_TEASER_URL . '" target="_blank" class="button button-primary">' . __( 'View more features', 'visualizer' ) . '</a>';
210 + echo '</div>';
211 + echo '<div class="visualizer-sidebar-box visualizer-tracking">';
212 + echo '<label class="visualizer-switch">';
213 + echo '<input type="checkbox" ' . $checked . ' >';
214 + echo '<div class="visualizer-slider visualizer-round"></div>';
215 + echo '</label>';
216 + echo '<span>' . __( 'Enable Tracking', 'visualizer' ) . '<sup>*</sup></span>';
217 + echo '<p><small><sup>*</sup>' . __( 'Allow Visualizer to anonymously track how this plugin is used and help us make the plugin better. No sensitive data is tracked.', 'visualizer' ) . '</small></p>';
229 218 echo '</div>';
230 219 echo '</div>';
231 220 }
232 221 }