Changeset 2320089
- Timestamp:
- 06/08/2020 09:57:00 AM (6 years ago)
- Location:
- charts-and-graphs-for-elementor/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
charts-and-graphs-for-elementor/trunk/README.md
r2314646 r2320089 2 2 Contributors: redlettuce 3 3 Tags: elementor, charts, graphs, elementor widget, block, blocks 4 Donate link: https://fundly.com/elementor-addons5 4 Requires at least: 5.0 6 Tested up to: 5.3.2 5 Tested up to: 5.4.1 6 Stable tag: 1.2.0 7 7 Requires PHP: 7.1 8 8 License: GPL v2 or later … … 30 30 1) Upload the plugin files to the /wp-content/plugins/сharts-graphs-elementor directory, or install the plugin through the WordPress plugins screen directly 31 31 2) Activate the plugin through the ‘Plugins’ screen in WordPress 32 33 == Changelog == 34 35 = 1.2.0 - 8 June 2020 = 36 * Added label switch 37 * Added changelog 38 39 = 1.1.1 - 30 May 2020 = 40 * Updated plugin details 41 * Tested up to WordPress 5.4.1 -
charts-and-graphs-for-elementor/trunk/index.php
r2314646 r2320089 4 4 * Description: Elementor addons to create beautiful, interactive charts and graphs. 5 5 * Plugin URI: https://redlettuce.com/charts-and-graphs-for-elementor 6 * Version: 1. 1.16 * Version: 1.2.0 7 7 * Author: RedLettuce Plugins 8 8 * Author URI: https://redlettuce.com … … 31 31 * @var string The plugin version. 32 32 */ 33 const VERSION = '1. 0.1';33 const VERSION = '1.2.0'; 34 34 35 35 /** -
charts-and-graphs-for-elementor/trunk/widgets/charts-graphs.php
r2227601 r2320089 150 150 151 151 $this->add_control( 152 'show_lable', 153 [ 154 'label' => __( 'Show Label', 'elementor-chart' ), 155 'type' => \Elementor\Controls_Manager::SWITCHER, 156 'label_on' => __( 'Show', 'elementor-chart' ), 157 'label_off' => __( 'Hide', 'elementor-chart' ), 158 'default' => 'yes', 159 ] 160 ); 161 162 $this->add_control( 152 163 'chart_label_line', 153 164 [ 154 'label' => __( 'Lab le', 'elementor-chart' ),165 'label' => __( 'Label', 'elementor-chart' ), 155 166 'type' => \Elementor\Controls_Manager::TEXT, 156 167 'default' => __( '# of Votes', 'elementor-chart' ), … … 164 175 'chart_label_bar', 165 176 [ 166 'label' => __( 'Lab le', 'elementor-chart' ),177 'label' => __( 'Label', 'elementor-chart' ), 167 178 'type' => \Elementor\Controls_Manager::TEXT, 168 179 'default' => __( '# of Votes', 'elementor-chart' ), … … 176 187 'chart_label_horizontalBar', 177 188 [ 178 'label' => __( 'Lab le', 'elementor-chart' ),189 'label' => __( 'Label', 'elementor-chart' ), 179 190 'type' => \Elementor\Controls_Manager::TEXT, 180 191 'default' => __( '# of Votes', 'elementor-chart' ), … … 188 199 'chart_label_pie', 189 200 [ 190 'label' => __( 'Lab le', 'elementor-chart' ),201 'label' => __( 'Label', 'elementor-chart' ), 191 202 'type' => \Elementor\Controls_Manager::TEXT, 192 203 'default' => __( '# of Votes', 'elementor-chart' ), … … 200 211 'chart_label_doughnut', 201 212 [ 202 'label' => __( 'Lab le', 'elementor-chart' ),213 'label' => __( 'Label', 'elementor-chart' ), 203 214 'type' => \Elementor\Controls_Manager::TEXT, 204 215 'default' => __( '# of Votes', 'elementor-chart' ), … … 212 223 'chart_label_polarArea', 213 224 [ 214 'label' => __( 'Lab le', 'elementor-chart' ),225 'label' => __( 'Label', 'elementor-chart' ), 215 226 'type' => \Elementor\Controls_Manager::TEXT, 216 227 'default' => __( '# of Votes', 'elementor-chart' ), … … 802 813 $id_gen = $this->generateRandomString(); 803 814 $chart_type = $settings['chart_type']; 815 $show_lable = $settings['show_lable']; 816 817 818 if($show_lable == 'yes'){ 819 $top_lable = 'true'; 820 } 821 if(empty($show_lable)){ 822 $top_lable = 'false'; 823 } 824 825 804 826 805 827 if ($chart_type == 'line') { … … 887 909 }, 888 910 889 options: {} 911 options: { 912 legend: { 913 display: <?php echo $top_lable ?>, 914 }, 915 } 890 916 }); 891 917 </script> … … 913 939 }, 914 940 915 options: {} 941 options: { 942 legend: { 943 display: <?php echo $top_lable ?>, 944 }, 945 } 916 946 }); 917 947 </script> … … 938 968 }, 939 969 940 options: {} 970 options: { 971 legend: { 972 display: <?php echo $top_lable ?>, 973 }, 974 } 941 975 }); 942 976 </script> … … 963 997 }, 964 998 965 options: {} 999 options: { 1000 legend: { 1001 display: <?php echo $top_lable ?>, 1002 }, 1003 } 966 1004 }); 967 1005 </script> … … 988 1026 }, 989 1027 990 options: {} 1028 options: { 1029 legend: { 1030 display: <?php echo $top_lable ?>, 1031 }, 1032 } 991 1033 }); 992 1034 </script> … … 1013 1055 }, 1014 1056 1015 options: {} 1057 options: { 1058 legend: { 1059 display: <?php echo $top_lable ?>, 1060 }, 1061 } 1016 1062 }); 1017 1063 </script> … … 1038 1084 }, 1039 1085 1040 options: {} 1086 options: { 1087 legend: { 1088 display: <?php echo $top_lable ?>, 1089 }, 1090 } 1041 1091 }); 1042 1092 </script>
Note: See TracChangeset
for help on using the changeset viewer.