Plugin Directory

Changeset 2320089


Ignore:
Timestamp:
06/08/2020 09:57:00 AM (6 years ago)
Author:
redlettuce
Message:

1.2.0 release

Location:
charts-and-graphs-for-elementor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • charts-and-graphs-for-elementor/trunk/README.md

    r2314646 r2320089  
    22Contributors: redlettuce
    33Tags: elementor, charts, graphs, elementor widget, block, blocks
    4 Donate link: https://fundly.com/elementor-addons
    54Requires at least: 5.0
    6 Tested up to: 5.3.2
     5Tested up to: 5.4.1
     6Stable tag: 1.2.0
    77Requires PHP: 7.1
    88License: GPL v2 or later
     
    30301) Upload the plugin files to the /wp-content/plugins/сharts-graphs-elementor directory, or install the plugin through the WordPress plugins screen directly
    31312) 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  
    44 * Description: Elementor addons to create beautiful, interactive charts and graphs.
    55 * Plugin URI:  https://redlettuce.com/charts-and-graphs-for-elementor
    6  * Version:     1.1.1
     6 * Version:     1.2.0
    77 * Author:      RedLettuce Plugins
    88 * Author URI:  https://redlettuce.com
     
    3131     * @var string The plugin version.
    3232     */
    33     const VERSION = '1.0.1';
     33    const VERSION = '1.2.0';
    3434
    3535    /**
  • charts-and-graphs-for-elementor/trunk/widgets/charts-graphs.php

    r2227601 r2320089  
    150150
    151151        $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(
    152163            'chart_label_line',
    153164            [
    154                 'label' => __( 'Lable', 'elementor-chart' ),
     165                'label' => __( 'Label', 'elementor-chart' ),
    155166                'type' => \Elementor\Controls_Manager::TEXT,
    156167                'default' => __( '# of Votes', 'elementor-chart' ),
     
    164175            'chart_label_bar',
    165176            [
    166                 'label' => __( 'Lable', 'elementor-chart' ),
     177                'label' => __( 'Label', 'elementor-chart' ),
    167178                'type' => \Elementor\Controls_Manager::TEXT,
    168179                'default' => __( '# of Votes', 'elementor-chart' ),
     
    176187            'chart_label_horizontalBar',
    177188            [
    178                 'label' => __( 'Lable', 'elementor-chart' ),
     189                'label' => __( 'Label', 'elementor-chart' ),
    179190                'type' => \Elementor\Controls_Manager::TEXT,
    180191                'default' => __( '# of Votes', 'elementor-chart' ),
     
    188199            'chart_label_pie',
    189200            [
    190                 'label' => __( 'Lable', 'elementor-chart' ),
     201                'label' => __( 'Label', 'elementor-chart' ),
    191202                'type' => \Elementor\Controls_Manager::TEXT,
    192203                'default' => __( '# of Votes', 'elementor-chart' ),
     
    200211            'chart_label_doughnut',
    201212            [
    202                 'label' => __( 'Lable', 'elementor-chart' ),
     213                'label' => __( 'Label', 'elementor-chart' ),
    203214                'type' => \Elementor\Controls_Manager::TEXT,
    204215                'default' => __( '# of Votes', 'elementor-chart' ),
     
    212223            'chart_label_polarArea',
    213224            [
    214                 'label' => __( 'Lable', 'elementor-chart' ),
     225                'label' => __( 'Label', 'elementor-chart' ),
    215226                'type' => \Elementor\Controls_Manager::TEXT,
    216227                'default' => __( '# of Votes', 'elementor-chart' ),
     
    802813        $id_gen = $this->generateRandomString();
    803814        $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       
    804826       
    805827        if ($chart_type == 'line') {
     
    887909                    },
    888910
    889                     options: {}
     911                    options: {
     912                        legend: {
     913                                display: <?php echo $top_lable ?>,
     914                            },
     915                    }
    890916                });
    891917                </script>               
     
    913939                    },
    914940
    915                     options: {}
     941                    options: {
     942                        legend: {
     943                                display: <?php echo $top_lable ?>,
     944                            },
     945                    }
    916946                });
    917947                </script>               
     
    938968                        },
    939969   
    940                         options: {}
     970                        options: {
     971                            legend: {
     972                                display: <?php echo $top_lable ?>,
     973                            },
     974                        }
    941975                    });
    942976                    </script>               
     
    963997                        },
    964998   
    965                         options: {}
     999                        options: {
     1000                            legend: {
     1001                                display: <?php echo $top_lable ?>,
     1002                            },
     1003                        }
    9661004                    });
    9671005                    </script>               
     
    9881026                        },
    9891027   
    990                         options: {}
     1028                        options: {
     1029                            legend: {
     1030                                display: <?php echo $top_lable ?>,
     1031                            },
     1032                        }
    9911033                    });
    9921034                    </script>               
     
    10131055                        },
    10141056   
    1015                         options: {}
     1057                        options: {
     1058                            legend: {
     1059                                display: <?php echo $top_lable ?>,
     1060                            },
     1061                        }
    10161062                    });
    10171063                    </script>               
     
    10381084                        },
    10391085   
    1040                         options: {}
     1086                        options: {
     1087                            legend: {
     1088                                display: <?php echo $top_lable ?>,
     1089                            },
     1090                        }
    10411091                    });
    10421092                    </script>               
Note: See TracChangeset for help on using the changeset viewer.