| @@ -318,9 +318,9 @@ | ||
| 318 | 318 | ), |
| 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' ); |
| 326 | 326 | } |
| @@ -339,9 +339,9 @@ | ||
| 339 | 339 | echo '<a class="visualizer-chart-action visualizer-chart-image" href="javascript:;" title="', esc_attr__( 'Download as image', 'visualizer' ), '" data-chart="visualizer-', $chart_id, '" data-chart-title="', $title, '"></a>'; |
| 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 | } |
| 347 | 347 | |