Plugin Directory

Changeset 2380732


Ignore:
Timestamp:
09/14/2020 05:46:18 AM (6 years ago)
Author:
zekinah
Message:

Released version 1.0.6

Location:
zone-pandemic-covid-19
Files:
87 added
4 edited

Legend:

Unmodified
Added
Removed
  • zone-pandemic-covid-19/trunk/elementor/class-pandemic-covid19-elementor.php

    r2372050 r2380732  
    2828class Pandemic_Covid19_Elementor
    2929{
     30    /**
     31     * Minimum Elementor Version
     32     *
     33     * @since 1.0.0
     34     *
     35     * @var string Minimum Elementor version required to run the plugin integration with elementor.
     36     */
     37    const MINIMUM_ELEMENTOR_VERSION = '2.0.0';
     38
     39    /**
     40     * Minimum PHP Version
     41     *
     42     * @since 1.0.0
     43     *
     44     * @var string Minimum PHP version required to run the plugin integration with elementor.
     45     */
     46    const MINIMUM_PHP_VERSION = '7.0';
    3047
    3148    /**
     
    7289     * @param      string    $version    The version of this plugin.
    7390     */
    74     public function __construct($plugin_name, $version)
    75     {
    76         if ( defined( 'MINIMUM_ELEMENTOR_VERSION' ) ) {
    77             $this->elementor_version = MINIMUM_ELEMENTOR_VERSION;
    78         } else {
    79             $this->elementor_version = '2.0.0';
    80         }
    81 
    82         if ( defined( 'MINIMUM_PHP_VERSION' ) ) {
    83             $this->php_version = MINIMUM_PHP_VERSION;
    84         } else {
    85             $this->php_version = '7.0';
    86         }
    87 
     91    public function __construct($plugin_name, $version) {
    8892        $this->plugin_name = $plugin_name;
    8993        $this->version = $version;
     
    113117            add_action( 'elementor/elements/categories_registered', array(&$this,'add_elementor_widget_categories') );
    114118            // Check for required Elementor version
    115             if ( ! version_compare( ELEMENTOR_VERSION, $this->elementor_version, '>=' ) ) {
     119            if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {
    116120                add_action( 'admin_notices', array(&$this, 'admin_notice_minimum_elementor_version') );
    117121            }
    118122        }
    119123        // Check for required PHP version
    120         if ( version_compare( PHP_VERSION, $this->php_version, '<' ) ) {
     124        if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
    121125            add_action( 'admin_notices', array(&$this, 'admin_notice_minimum_php_version') );
    122126        }
  • zone-pandemic-covid-19/trunk/includes/class-pandemic-covid19.php

    r2372050 r2380732  
    7676            $this->version = PANDEMIC_COVID19_VERSION;
    7777        } else {
    78             $this->version = '1.0.5';
     78            $this->version = '1.0.6';
    7979        }
    8080        $this->plugin_name = 'pandemic-covid19';
     
    134134        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'elementor/class-pandemic-covid19-elementor.php';
    135135
     136        /**
     137         * The class responsible for defining all cli-commands functionality
     138         * side of the site.
     139         */
     140        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-pandemic-covid19-cli.php';
     141
    136142        $this->loader = new Pandemic_Covid19_Loader();
    137143
  • zone-pandemic-covid-19/trunk/pandemic-covid19.php

    r2372050 r2380732  
    1717 * Plugin URI:        https://github.com/zekinah/wp-pandemic-covid19
    1818 * Description:       This plugin provides shortcode that displays the live recorded data of the covid19 in the whole world.
    19  * Version:           1.0.5
     19 * Version:           1.0.6
    2020 * Author:            Zekinah Lecaros
    2121 * Author URI:        zekinahlecaros.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'PANDEMIC_COVID19_VERSION', '1.0.5' );
    39 /**
    40  * Minimum Elementor Version
    41  *
    42  * @since 1.0.0
    43  *
    44  * @var string Minimum Elementor version required to run the plugin integration with elementor.
    45  */
    46 define( 'MINIMUM_ELEMENTOR_VERSION', '2.0.0' );
    47 /**
    48  * Minimum PHP Version
    49  *
    50  * @since 1.0.0
    51  *
    52  * @var string Minimum PHP version required to run the plugin integration with elementor.
    53  */
    54 define( 'MINIMUM_PHP_VERSION', '7.0' );
     38define( 'PANDEMIC_COVID19_VERSION', '1.0.6' );
    5539
    5640/**
  • zone-pandemic-covid-19/trunk/readme.txt

    r2372050 r2380732  
    4949* Heat Map
    5050
     51== WP-CLI Commands == (WP-CLI is required on server*)
     52CLI version to get tabular form of Covid19.
     53
     54__Synopsis__ - `wp zn_covid19 <command>` <br>
     55__Help__ - `wp zn_covid19 --help`
     56__Parameter available__ - `cases, todayCases, deaths, todayDeaths, recovered, active, critical, tests`
     57
     58__Subcommands__
     59* `display_continent` - Show the List of Continent and its Covid Datas
     60* `display_country` - Show the List of Country and its Covid Datas
     61* `global` - Show Total Global Cases
     62* `version` - Show the plugin version
     63
     64#### Example
     65```
     66// Displays the list of Continent
     67wp zn_covid19 display_continent
     68
     69// Displays the covid19 data of a continent
     70wp zn_covid19 display_continent 'North America'
     71
     72// Displays the cases for today of continent
     73wp zn_covid19 display_continent 'North America' todayCases
     74```
     75
    5176== API used ==
    5277
     
    961218. Result of the Shortcode for the World Heat Map.
    97122
     1239. Result of the WP-CLI Command showing the global data.
     124
    98125== Changelog ==
     126= 1.0.6 =
     127* Added WP-CLI Commands (WP-CLI is required on server*)
     128    * `wp zn_covid19 --help` to show available commands
     129
    99130= 1.0.5 =
    100131* Elementor Integration
     
    109140
    110141= 1.0.0 =
    111 * Intial Release
     142* Initial Release
Note: See TracChangeset for help on using the changeset viewer.