easy-charts-configuration-metabox-display.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?php
  2. /**
  3. * Markup file for metabox
  4. *
  5. * HTML markup for configuration matabox.
  6. *
  7. * @link http://kiranpotphode.com
  8. * @since 1.0.0
  9. *
  10. * @package Easy_Charts
  11. * @subpackage Easy_Charts/admin/partials
  12. */
  13. global $post;
  14. $plugin = new Easy_Charts();
  15. $font_family = $plugin->get_font_family_array();
  16. ?>
  17. <div id="easy-charts-configuration-metabox-wrap">
  18. <div id="easy-chart-configuration-box">
  19. <div id="ec-tabs">
  20. <div class="resp-tabs-container">
  21. <div id="ec-tabs-graph" class="ec-tab" data-pws-tab-name="<?php _e( 'General', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-graph" data-pws-tab-icon="fa-university">
  22. <?php $ec_chart_type = get_post_meta( $post->ID, '_ec_chart_type', true );
  23. $plugin->ec_render_field( 'dropdown', 'ec_chart_type','Chart Type', $ec_chart_type, array(
  24. 'ec_bar_chart' => __( 'Bar Chart', 'easy-charts' ),
  25. 'ec_area_chart' => __( 'Area Chart', 'easy-charts' ),
  26. 'ec_stacked_bar_chart' => __( 'Stacked Bar Chart', 'easy-charts' ),
  27. 'ec_stacked_area_chart' => __( 'Stacked Area Chart', 'easy-charts' ),
  28. 'ec_percent_bar_chart' => __( 'Percent Bar Chart', 'easy-charts' ),
  29. 'ec_percent_area_chart' => __( 'Percent Area Chart', 'easy-charts' ),
  30. 'ec_pie_chart' => __( 'Pie Chart', 'easy-charts' ),
  31. 'ec_donut_chart' => __( 'Donut Chart', 'easy-charts' ),
  32. 'ec_step_up_bar_chart' => __( 'Step Up Bar Chart', 'easy-charts' ),
  33. 'ec_waterfall_chart' => __( 'Waterfall Chart', 'easy-charts' ),
  34. 'ec_line_chart' => __( 'Line Chart', 'easy-charts' ),
  35. 'ec_polar_area_chart' => __( 'Polar Area Chart', 'easy-charts' ),
  36. ) );
  37. $ec_chart_graph = $plugin->ec_get_chart_configuration( $post->ID, 'graph' );
  38. $plugin->ec_render_field( 'radio', 'ec_chart_graph_responsive','Responsive', $ec_chart_graph['responsive'], array( 'Yes' => true, 'No' => false ) );
  39. $plugin->ec_render_field( 'dropdown', 'ec_chart_graph_palette','Palette', $ec_chart_graph['palette'], array( 'Default' => 'Default', 'OldDefault' => 'OldDefault', 'Plain' => 'Plain', 'Android' => 'Android', 'Simple' => 'Simple', 'Soft' => 'Soft', 'Egypt' => 'Egypt', 'Olive' => 'Olive', 'Candid' => 'Candid', 'Sulphide' => 'Sulphide', 'Lint' => 'Lint' ) );
  40. $plugin->ec_render_field( 'color-picker', 'ec_chart_graph_bgcolor','Background Color', $ec_chart_graph['bgcolor'] );
  41. $plugin->ec_render_field( 'radio', 'ec_chart_graph_orientation','Orientation', $ec_chart_graph['orientation'], array( 'Horizontal' => 'Horizontal', 'Vertical' => 'Vertical' ) );
  42. $plugin->ec_render_field( 'slider', 'ec_chart_graph_opacity','Opacity', $ec_chart_graph['opacity'] );
  43. ?>
  44. </div>
  45. <div id="ec-tabs-meta" class="ec-tab" data-pws-tab-name="<?php _e( 'Meta', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-meta" data-pws-tab-icon="fa-table">
  46. <?php $ec_chart_meta = $plugin->ec_get_chart_configuration( $post->ID, 'meta' ); ?>
  47. <input type="hidden" value=".uv-div-<?php echo $post->ID; ?>" name="ec_chart_meta_position" />
  48. <?php
  49. $plugin->ec_render_field( 'text', 'ec_chart_meta_caption','Caption', $ec_chart_meta['caption'] );
  50. $plugin->ec_render_field( 'text', 'ec_chart_meta_subcaption','Sub Caption', $ec_chart_meta['subcaption'] );
  51. $plugin->ec_render_field( 'text', 'ec_chart_meta_hlabel','Horizontal Label', $ec_chart_meta['hlabel'] );
  52. $plugin->ec_render_field( 'text', 'ec_chart_meta_hsublabel','Horizontal Sub Label', $ec_chart_meta['hsublabel'] );
  53. $plugin->ec_render_field( 'text', 'ec_chart_meta_vlabel','Vertical Label', $ec_chart_meta['vlabel'] );
  54. $plugin->ec_render_field( 'text', 'ec_chart_meta_vsublabel','Vertical Sub Label', $ec_chart_meta['vsublabel'] );
  55. $plugin->ec_render_field( 'radio', 'ec_chart_meta_isDownloadable','Is Downloadable', $ec_chart_meta['isDownloadable'], array( 'Yes' => '1', 'No' => '0' ) );
  56. $plugin->ec_render_field( 'text', 'ec_chart_meta_downloadLabel','Download Label', $ec_chart_meta['downloadLabel'] );
  57. ?>
  58. </div>
  59. <div id="ec-tabs-dimension" class="ec-tab" data-pws-tab-name="<?php _e( 'Dimension', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-dimension" data-pws-tab-icon="fa-text-height">
  60. <?php $ec_chart_dimension = $plugin->ec_get_chart_configuration( $post->ID, 'dimension' );
  61. $plugin->ec_render_field( 'text', 'ec_chart_dimension_width', 'Width', $ec_chart_dimension['width'] );
  62. $plugin->ec_render_field( 'text', 'ec_chart_dimension_height', 'Height', $ec_chart_dimension['height'] );
  63. ?>
  64. </div>
  65. <div id="ec-tabs-margin" class="ec-tab" data-pws-tab-name="<?php _e( 'Margin', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-margin" data-pws-tab-icon="fa-arrows">
  66. <?php $ec_chart_margin = $plugin->ec_get_chart_configuration( $post->ID, 'margin' );
  67. $plugin->ec_render_field( 'text', 'ec_chart_margin_top','Top', $ec_chart_margin['top'] );
  68. $plugin->ec_render_field( 'text', 'ec_chart_margin_bottom','Bottom', $ec_chart_margin['bottom'] );
  69. $plugin->ec_render_field( 'text', 'ec_chart_margin_left','Left', $ec_chart_margin['left'] );
  70. $plugin->ec_render_field( 'text', 'ec_chart_margin_right','Right', $ec_chart_margin['right'] );
  71. ?>
  72. </div>
  73. <div id="ec-tabs-frame" class="ec-tab" data-pws-tab-name="<?php _e( 'Frame', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-frame" data-pws-tab-icon="fa-television">
  74. <?php $ec_chart_frame = $plugin->ec_get_chart_configuration( $post->ID, 'frame' );
  75. $plugin->ec_render_field( 'color-picker', 'ec_chart_frame_bgcolor','Background Color', $ec_chart_frame['bgcolor'] );
  76. ?>
  77. </div>
  78. <div id="ec-tabs-axis" class="ec-tab" data-pws-tab-name="<?php _e( 'Axis', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-axis" data-pws-tab-icon="fa-long-arrow-right">
  79. <?php $ec_chart_axis = $plugin->ec_get_chart_configuration( $post->ID, 'axis' );
  80. $plugin->ec_render_field( 'slider', 'ec_chart_axis_opacity', 'Opacity', $ec_chart_axis['opacity'] );
  81. $plugin->ec_render_field( 'number', 'ec_chart_axis_ticks', 'Ticks', $ec_chart_axis['ticks'], array( 'min' => 0, 'max' => '' ) );
  82. $plugin->ec_render_field( 'number', 'ec_chart_axis_subticks','Subticks', $ec_chart_axis['subticks'], array( 'min' => 0 ) );
  83. $plugin->ec_render_field( 'number', 'ec_chart_axis_padding','Padding', $ec_chart_axis['padding'], array( 'min' => 0 ) );
  84. $plugin->ec_render_field( 'color-picker', 'ec_chart_axis_strokecolor','Stroke Color', $ec_chart_axis['strokecolor'] );
  85. $plugin->ec_render_field( 'number', 'ec_chart_axis_minor','Minor', $ec_chart_axis['minor'], array( 'max' => 0 ) );
  86. $plugin->ec_render_field( 'dropdown', 'ec_chart_axis_fontfamily','Font Family', $ec_chart_axis['fontfamily'], $font_family, 'Arial' );
  87. $plugin->ec_render_field( 'number', 'ec_chart_axis_fontsize','Font Size', $ec_chart_axis['fontsize'], array( 'min' => 0 ) );
  88. $plugin->ec_render_field( 'dropdown', 'ec_chart_axis_fontweight','Font Weight', $ec_chart_axis['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700 ) );
  89. $plugin->ec_render_field( 'radio', 'ec_chart_axis_showticks','Show Ticks', $ec_chart_axis['showticks'], array( 'Yes' => 1, 'No' => 0 ) );
  90. $plugin->ec_render_field( 'radio', 'ec_chart_axis_showsubticks','Show Sub Ticks', $ec_chart_axis['showsubticks'], array( 'Yes' => 1, 'No' => 0 ) );
  91. $plugin->ec_render_field( 'radio', 'ec_chart_axis_showtext', 'Show Text', $ec_chart_axis['showtext'], array( 'Yes' => 1, 'No' => 0 ) );
  92. ?>
  93. </div>
  94. <div id="ec-tabs-label" class="ec-tab" data-pws-tab-name="<?php _e( 'Label', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-label" data-pws-tab-icon="fa-tag">
  95. <?php $ec_chart_label = $plugin->ec_get_chart_configuration( $post->ID, 'label' );
  96. $plugin->ec_render_field( 'dropdown', 'ec_chart_label_fontfamily','Font Family', $ec_chart_label['fontfamily'], $font_family, 'Arial' );
  97. $plugin->ec_render_field( 'number', 'ec_chart_label_fontsize','Font Size', $ec_chart_label['fontsize'], array( 'min' => 0 ) );
  98. $plugin->ec_render_field( 'dropdown', 'ec_chart_label_fontweight','Font Weight', $ec_chart_label['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  99. $plugin->ec_render_field( 'color-picker', 'ec_chart_label_strokecolor','Stroke Color', $ec_chart_label['strokecolor'] );
  100. $plugin->ec_render_field( 'radio', 'ec_chart_label_showlabel','Show Label', $ec_chart_label['showlabel'], array( 'Yes' => 1, 'No' => 0 ) );
  101. $plugin->ec_render_field( 'number', 'ec_chart_label_precision','Precision', $ec_chart_label['precision'], array( 'min' => 0 ) );
  102. $plugin->ec_render_field( 'text', 'ec_chart_label_prefix','Prefix', $ec_chart_label['prefix'] );
  103. $plugin->ec_render_field( 'text', 'ec_chart_label_suffix','Suffix', $ec_chart_label['suffix'] );
  104. ?>
  105. </div>
  106. <div id="ec-tabs-legend" class="ec-tab" data-pws-tab-name="<?php _e( 'Legend', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-legend" data-pws-tab-icon="fa-info">
  107. <?php $ec_chart_legend = $plugin->ec_get_chart_configuration( $post->ID, 'legend' );
  108. $plugin->ec_render_field( 'dropdown', 'ec_chart_legend_position','Position', $ec_chart_legend['position'], array( 'bottom' => 'Bottom', 'right' => 'Right' ) );
  109. $plugin->ec_render_field( 'dropdown', 'ec_chart_legend_fontfamily','Font Family', $ec_chart_legend['fontfamily'], $font_family, 'Arial' );
  110. $plugin->ec_render_field( 'number', 'ec_chart_legend_fontsize','Font Size', $ec_chart_legend['fontsize'], array( 'min' => 0 ) );
  111. $plugin->ec_render_field( 'dropdown', 'ec_chart_legend_fontweight','Font Weight', $ec_chart_legend['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  112. $plugin->ec_render_field( 'color-picker', 'ec_chart_legend_color','Stroke Color', $ec_chart_legend['color'] );
  113. $plugin->ec_render_field( 'number', 'ec_chart_legend_strokewidth','Stroke Width', $ec_chart_legend['strokewidth'], array( 'min' => 0, 'step' => .05 ) );
  114. $plugin->ec_render_field( 'number', 'ec_chart_legend_textmargin','Text Margin', $ec_chart_legend['textmargin'], array( 'min' => 0 ) );
  115. $plugin->ec_render_field( 'number', 'ec_chart_legend_symbolsize','Symbol Size', $ec_chart_legend['symbolsize'], array( 'min' => 0 ) );
  116. $plugin->ec_render_field( 'color-picker', 'ec_chart_legend_inactivecolor','Inactive Color', $ec_chart_legend['inactivecolor'] );
  117. $plugin->ec_render_field( 'number', 'ec_chart_legend_legendstart','Start', $ec_chart_legend['legendstart'], array( 'min' => 0 ) );
  118. $plugin->ec_render_field( 'radio', 'ec_chart_legend_showlegends','Show Legend', $ec_chart_legend['showlegends'], array( 'Yes' => 1, 'No' => 0 ) );
  119. ?>
  120. </div>
  121. <div id="ec-tabs-scale" class="ec-tab" data-pws-tab-name="<?php _e( 'Scale', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-scale" data-pws-tab-icon="fa-balance-scale">
  122. <?php $ec_chart_scale = $plugin->ec_get_chart_configuration( $post->ID, 'scale' );
  123. $plugin->ec_render_field( 'radio', 'ec_chart_scale_type','Type', $ec_chart_scale['type'], array( 'Linear' => 'linear', 'Log' => 'log', 'Pow' => 'pow', 'SQRT' => 'sqrt' ) );
  124. $plugin->ec_render_field( 'slider', 'ec_chart_scale_ordinality','Ordinality', $ec_chart_scale['ordinality'] );
  125. ?>
  126. </div>
  127. <div id="ec-tabs-tooltip" class="ec-tab" data-pws-tab-name="<?php _e( 'Tooltip', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-tooltip" data-pws-tab-icon="fa-comment">
  128. <?php $ec_chart_tooltip = $plugin->ec_get_chart_configuration( $post->ID, 'tooltip' );
  129. $plugin->ec_render_field( 'radio', 'ec_chart_tooltip_show','Show', $ec_chart_tooltip['show'], array( 'Yes' => 1, 'No' => 0 ) );
  130. $plugin->ec_render_field( 'text', 'ec_chart_tooltip_format','Format', $ec_chart_tooltip['format'] );
  131. ?>
  132. </div>
  133. <div id="ec-tabs-caption" class="ec-tab" data-pws-tab-name="<?php _e( 'Caption', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-caption" data-pws-tab-icon="fa-header">
  134. <?php $ec_chart_caption = $plugin->ec_get_chart_configuration( $post->ID, 'caption' );
  135. $plugin->ec_render_field( 'dropdown', 'ec_chart_caption_fontfamily','Font Family', $ec_chart_caption['fontfamily'], $font_family, 'Arial' );
  136. $plugin->ec_render_field( 'number', 'ec_chart_caption_fontsize','Font Size', $ec_chart_caption['fontsize'], array( 'min' => 0 ) );
  137. $plugin->ec_render_field( 'dropdown', 'ec_chart_caption_fontweight','Font Weight', $ec_chart_caption['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  138. $plugin->ec_render_field( 'dropdown', 'ec_chart_caption_textdecoration','Textdecoration', $ec_chart_caption['textdecoration'], array( 'none' => 'none', 'blink' => 'blink', 'line-through' => 'line-through', 'overline' => 'overline', 'underline' => 'underline' ) );
  139. $plugin->ec_render_field( 'color-picker', 'ec_chart_caption_strokecolor','Stroke Color', $ec_chart_caption['strokecolor'] );
  140. $plugin->ec_render_field( 'dropdown', 'ec_chart_caption_cursor','Cursor', $ec_chart_caption['cursor'], array( 'pointer' => 'pointer', 'move' => 'move', 'auto' => 'auto', 'text' => 'text', 'none' => 'none' ) );
  141. ?>
  142. </div>
  143. <div id="ec-tabs-subcaption" class="ec-tab" data-pws-tab-name="<?php _e( 'Subcaption', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-subcaption" data-pws-tab-icon="fa-font">
  144. <?php $ec_chart_subcaption = $plugin->ec_get_chart_configuration( $post->ID, 'subcaption' );
  145. $plugin->ec_render_field( 'dropdown', 'ec_chart_subcaption_fontfamily','Font Family', $ec_chart_subcaption['fontfamily'], $font_family, 'Arial' );
  146. $plugin->ec_render_field( 'number', 'ec_chart_subcaption_fontsize','Font Size', $ec_chart_subcaption['fontsize'], array( 'min' => 0 ) );
  147. $plugin->ec_render_field( 'dropdown', 'ec_chart_subcaption_fontweight','Font Weight', $ec_chart_subcaption['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  148. $plugin->ec_render_field( 'dropdown', 'ec_chart_subcaption_textdecoration','Textdecoration', $ec_chart_subcaption['textdecoration'], array( 'none' => 'none', 'blink' => 'blink', 'line-through' => 'line-through', 'overline' => 'overline', 'underline' => 'underline' ) );
  149. $plugin->ec_render_field( 'color-picker', 'ec_chart_subcaption_strokecolor','Stroke Color', $ec_chart_subcaption['strokecolor'] );
  150. $plugin->ec_render_field( 'dropdown', 'ec_chart_subcaption_cursor','Cursor', $ec_chart_subcaption['cursor'], array( 'pointer' => 'pointer', 'move' => 'move', 'auto' => 'auto', 'text' => 'text', 'none' => 'none' ) );
  151. ?>
  152. </div>
  153. <div id="ec-tabs-bar" class="ec-tab" data-pws-tab-name="<?php _e( 'Bar', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-bar" data-pws-tab-icon="fa-bar-chart">
  154. <?php $ec_chart_bar = $plugin->ec_get_chart_configuration( $post->ID, 'bar' );
  155. $plugin->ec_render_field( 'dropdown', 'ec_chart_bar_fontfamily','Font Family', $ec_chart_bar['fontfamily'], $font_family, 'Arial' );
  156. $plugin->ec_render_field( 'number', 'ec_chart_bar_fontsize','Font Size', $ec_chart_bar['fontsize'], array( 'min' => 0 ) );
  157. $plugin->ec_render_field( 'dropdown', 'ec_chart_bar_fontweight','Font Weight', $ec_chart_bar['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  158. $plugin->ec_render_field( 'color-picker', 'ec_chart_bar_strokecolor','Stroke Color', $ec_chart_bar['strokecolor'] );
  159. $plugin->ec_render_field( 'color-picker', 'ec_chart_bar_textcolor','TextColor', $ec_chart_bar['textcolor'] );
  160. ?>
  161. </div>
  162. <div id="ec-tabs-line" class="ec-tab" data-pws-tab-name="<?php _e( 'Line', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-line" data-pws-tab-icon="fa-line-chart">
  163. <?php $ec_chart_line = $plugin->ec_get_chart_configuration( $post->ID, 'line' );
  164. $plugin->ec_render_field( 'dropdown', 'ec_chart_line_interpolation','Interpolation', $ec_chart_line['interpolation'], array( 'linear' => 'linear', 'basis' => 'basis', 'cardinal' => 'cardinal', 'monotone' => 'monotone' ) );
  165. ?>
  166. </div>
  167. <div id="ec-tabs-area" class="ec-tab" data-pws-tab-name="<?php _e( 'Area', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-area" data-pws-tab-icon="fa-area-chart">
  168. <?php $ec_chart_area = $plugin->ec_get_chart_configuration( $post->ID, 'area' );
  169. $plugin->ec_render_field( 'dropdown', 'ec_chart_area_interpolation','Interpolation', $ec_chart_area['interpolation'], array( 'linear' => 'linear', 'basis' => 'basis', 'cardinal' => 'cardinal', 'monotone' => 'monotone' ) );
  170. $plugin->ec_render_field( 'slider', 'ec_chart_area_opacity','Opacity', $ec_chart_area['opacity'] );
  171. $plugin->ec_render_field( 'dropdown', 'ec_chart_area_offset','Offset', $ec_chart_area['offset'], array( 'zero' => 'zero', 'wiggle' => 'wiggle', 'silhoutte' => 'silhoutte', 'expand' => 'expand' ) );
  172. ?>
  173. </div>
  174. <div id="ec-tabs-pie" class="ec-tab" data-pws-tab-name="<?php _e( 'Pie', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-pie" data-pws-tab-icon="fa-pie-chart">
  175. <?php $ec_chart_pie = $plugin->ec_get_chart_configuration( $post->ID, 'pie' );
  176. $plugin->ec_render_field( 'dropdown', 'ec_chart_pie_fontfamily','Font Family', $ec_chart_pie['fontfamily'], $font_family, 'Arial' );
  177. $plugin->ec_render_field( 'number', 'ec_chart_pie_fontsize','Font Size', $ec_chart_pie['fontsize'], array( 'min' => 0 ) );
  178. $plugin->ec_render_field( 'dropdown', 'ec_chart_pie_fontweight','Font Weight', $ec_chart_pie['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  179. $plugin->ec_render_field( 'dropdown', 'ec_chart_pie_fontvariant','Font Varient', $ec_chart_pie['fontvariant'], array( 'normal' => 'normal', 'small-caps' => 'small-caps' ) );
  180. $plugin->ec_render_field( 'color-picker', 'ec_chart_pie_fontfill','Font Fill', $ec_chart_pie['fontfill'] );
  181. $plugin->ec_render_field( 'color-picker', 'ec_chart_pie_strokecolor','Stroke Color', $ec_chart_pie['strokecolor'] );
  182. $plugin->ec_render_field( 'number', 'ec_chart_pie_strokewidth','Stroke Width', $ec_chart_pie['strokewidth'], array( 'min' => 0 ) );
  183. ?>
  184. </div>
  185. <div id="ec-tabs-donut" class="ec-tab" data-pws-tab-name="<?php _e( 'Donut', 'easy-charts' ); ?>" data-pws-tab="ec-tabs-donut" data-pws-tab-icon="fa-pie-chart">
  186. <?php $ec_chart_donut = $plugin->ec_get_chart_configuration( $post->ID, 'donut' );
  187. $plugin->ec_render_field( 'dropdown', 'ec_chart_donut_fontfamily','Font Family', $ec_chart_donut['fontfamily'], $font_family, 'Arial' );
  188. $plugin->ec_render_field( 'number', 'ec_chart_donut_fontsize','Font Size', $ec_chart_pie['fontsize'], array( 'min' => 0 ) );
  189. $plugin->ec_render_field( 'dropdown', 'ec_chart_donut_fontweight','Font Weight', $ec_chart_donut['fontweight'], array( '100' => 100, '200' => 200, '300' => 300, '400' => 400, '500' => 500, '600' => 600, '700' => 700, '800' => 800, '900' => 900 ) );
  190. $plugin->ec_render_field( 'dropdown', 'ec_chart_donut_fontvariant','Font Varient', $ec_chart_donut['fontvariant'], array( 'normal' => 'normal', 'small-caps' => 'small-caps' ) );
  191. $plugin->ec_render_field( 'color-picker', 'ec_chart_donut_fontfill','Font Fill', $ec_chart_donut['fontfill'] );
  192. $plugin->ec_render_field( 'color-picker', 'ec_chart_donut_strokecolor','Stroke Color', $ec_chart_donut['strokecolor'] );
  193. $plugin->ec_render_field( 'number', 'ec_chart_donut_strokewidth','Stroke Width', $ec_chart_donut['strokewidth'], array( 'min' => 0 ) );
  194. $plugin->ec_render_field( 'number', 'ec_chart_donut_strokewidth','Stroke Width', $ec_chart_donut['strokewidth'], array( 'min' => 0 ) );
  195. $plugin->ec_render_field( 'slider', 'ec_chart_donut_factor','Factor', $ec_chart_donut['factor'] );
  196. ?>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. </div>