PluginProbe
M Chart / 2.2
M Chart v2.2
2.3.2 2.3.1 2.3 2.2.2 2.2.1 2.2 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.10 1.10.1 1.11 1.11.1 1.11.2 1.12 1.2 1.2.1 1.3 1.3.1 1.3.2 All 53 releases
m-chart / components / templates / chart-meta-box.php

chart-meta-box.php in M Chart 2.2, at components/templates/chart-meta-box.php

29 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6 if ( ! m_chart()->is_valid_library( $post_meta['library'] ) ) {
7 ?>
8 <div id="m-chart-settings-error" class="wrap">
9 <p>
10 <?php
11 echo str_replace(
12 esc_html__( 'M Chart Highcharts Library', 'm-chart' ),
13 '<strong>' . esc_html__( 'M Chart Highcharts Library', 'm-chart' ) . '</strong>',
14 esc_html__( 'This chart requires the M Chart Highcharts Library plugin.', 'm-chart' )
15 );
16 ?>
17 </p>
18 <p><?php esc_html_e( 'This chart will no longer display unless you install the plugin:', 'm-chart' ); ?></p>
19 <p><a href="https://github.com/methnen/m-chart-highcharts-library/" class="button-primary"><?php esc_html_e( 'Learn More', 'm-chart' ); ?></a></p>
20 </div>
21 <?php
22 return;
23 }
24
25 echo '<div id="m-chart-chart-root"></div>';
26 ?>
27 <canvas id="<?php echo esc_attr( $this->get_field_id( 'canvas-render-' . absint( $post->ID ) ) ); ?>" class="hide"></canvas>
28 <textarea name="<?php echo esc_attr( $this->get_field_name( 'img' ) ); ?>" class="hide" id="<?php echo esc_attr( $this->get_field_id( 'img' ) ); ?>"></textarea>
29