@@ -319,7 +319,7 @@ private function _renderChartBox( $placeholder_id, $chart_id ) {
319
319
admin_url ( 'admin-ajax.php ' )
320
320
);
321
321
322
- $ chart_status = array ( 'date ' => get_the_modified_date ( get_option ( 'date_format ' ) . ' ' . get_option ( 'time_format ' ), $ chart_id ), 'error ' => get_post_meta ( $ chart_id , Visualizer_Plugin::CF_ERROR , true ), 'icon ' => 'dashicons-yes-alt ' , 'title ' => '' );
322
+ $ chart_status = array ( 'date ' => get_the_modified_date ( get_option ( 'date_format ' ) . ' ' . get_option ( 'time_format ' ), $ chart_id ), 'error ' => get_post_meta ( $ chart_id , Visualizer_Plugin::CF_ERROR , true ), 'icon ' => 'dashicons-yes-alt ' , 'title ' => 'A-OK! ' );
323
323
if ( ! empty ( $ chart_status ['error ' ] ) ) {
324
324
$ chart_status ['icon ' ] = 'error dashicons-dismiss ' ;
325
325
$ chart_status ['title ' ] = __ ( 'Click to view the error ' , 'visualizer ' );
@@ -340,7 +340,7 @@ private function _renderChartBox( $placeholder_id, $chart_id ) {
340
340
}
341
341
echo '<a class="visualizer-chart-action visualizer-chart-shortcode" href="javascript:;" title=" ' , esc_attr__ ( 'Click to copy shortcode ' , 'visualizer ' ), '" data-clipboard-text=" ' , esc_attr ( $ shortcode ), '"></a> ' ;
342
342
echo '<span> </span> ' ;
343
- echo '<hr><div class="visualizer-chart-status"><span class="visualizer-date" title=" ' . __ ( 'Last Updated ' , 'visualizer ' ) . '"> ' . $ chart_status ['date ' ] . '</span><span class="visualizer-error"><i class="dashicons ' . $ chart_status ['icon ' ] . '" data-viz-error=" ' . esc_attr ( str_replace ( '" ' , "' " , $ chart_status ['error ' ] ) ) . '" title=" ' . esc_attr ( $ chart_status ['title ' ] ) . '"></i></span></div> ' ;
343
+ echo '<hr><div class="visualizer-chart-status"><span title=" ' . __ ( ' Chart ID ' , ' visualizer ' ) . ' ">( ' . $ chart_id . ' ):</span> <span class="visualizer-date" title=" ' . __ ( 'Last Updated ' , 'visualizer ' ) . '"> ' . $ chart_status ['date ' ] . '</span><span class="visualizer-error"><i class="dashicons ' . $ chart_status ['icon ' ] . '" data-viz-error=" ' . esc_attr ( str_replace ( '" ' , "' " , $ chart_status ['error ' ] ) ) . '" title=" ' . esc_attr ( $ chart_status ['title ' ] ) . '"></i></span></div> ' ;
344
344
echo '</div> ' ;
345
345
echo '</div> ' ;
346
346
}
0 commit comments