Changeset 2380732
- Timestamp:
- 09/14/2020 05:46:18 AM (6 years ago)
- Location:
- zone-pandemic-covid-19
- Files:
-
- 87 added
- 4 edited
-
assets/screenshot-9.png (added)
-
tags/1.0.5 (added)
-
tags/1.0.5/LICENSE.txt (added)
-
tags/1.0.5/admin (added)
-
tags/1.0.5/admin/class-pandemic-covid19-admin.php (added)
-
tags/1.0.5/admin/css (added)
-
tags/1.0.5/admin/css/bootstrap (added)
-
tags/1.0.5/admin/css/bootstrap/bootstrap.min.css (added)
-
tags/1.0.5/admin/css/datatable (added)
-
tags/1.0.5/admin/css/datatable/jquery.dataTables.css (added)
-
tags/1.0.5/admin/css/pandemic-covid19-admin.css (added)
-
tags/1.0.5/admin/css/pnotify (added)
-
tags/1.0.5/admin/css/pnotify/pnotify.css (added)
-
tags/1.0.5/admin/index.php (added)
-
tags/1.0.5/admin/js (added)
-
tags/1.0.5/admin/js/bootstrap (added)
-
tags/1.0.5/admin/js/bootstrap/bootstrap.min.js (added)
-
tags/1.0.5/admin/js/datatable (added)
-
tags/1.0.5/admin/js/datatable/jquery.dataTables.js (added)
-
tags/1.0.5/admin/js/pandemic-covid19-admin-ajax.js (added)
-
tags/1.0.5/admin/js/pandemic-covid19-admin.js (added)
-
tags/1.0.5/admin/view (added)
-
tags/1.0.5/admin/view/pandemic-covid19-admin-display.php (added)
-
tags/1.0.5/admin/view/tab-help.php (added)
-
tags/1.0.5/admin/view/tab-home.php (added)
-
tags/1.0.5/admin/view/widget-pandemic-covid19-global.php (added)
-
tags/1.0.5/composer.json (added)
-
tags/1.0.5/elementor (added)
-
tags/1.0.5/elementor/assets (added)
-
tags/1.0.5/elementor/assets/css (added)
-
tags/1.0.5/elementor/assets/css/pandemic-covid19-elementor.css (added)
-
tags/1.0.5/elementor/assets/js (added)
-
tags/1.0.5/elementor/assets/js/pandemic-covid19-elementor.js (added)
-
tags/1.0.5/elementor/class-pandemic-covid19-elementor.php (added)
-
tags/1.0.5/elementor/index.php (added)
-
tags/1.0.5/elementor/widgets (added)
-
tags/1.0.5/elementor/widgets/class-pandemic-covid19-widget-card-continent.php (added)
-
tags/1.0.5/elementor/widgets/class-pandemic-covid19-widget-card-country.php (added)
-
tags/1.0.5/elementor/widgets/class-pandemic-covid19-widget-card-global.php (added)
-
tags/1.0.5/elementor/widgets/class-pandemic-covid19-widget-graph.php (added)
-
tags/1.0.5/elementor/widgets/class-pandemic-covid19-widget-map.php (added)
-
tags/1.0.5/elementor/widgets/class-pandemic-covid19-widget-table.php (added)
-
tags/1.0.5/includes (added)
-
tags/1.0.5/includes/class-pandemic-covid19-activator.php (added)
-
tags/1.0.5/includes/class-pandemic-covid19-deactivator.php (added)
-
tags/1.0.5/includes/class-pandemic-covid19-i18n.php (added)
-
tags/1.0.5/includes/class-pandemic-covid19-loader.php (added)
-
tags/1.0.5/includes/class-pandemic-covid19.php (added)
-
tags/1.0.5/includes/index.php (added)
-
tags/1.0.5/index.php (added)
-
tags/1.0.5/languages (added)
-
tags/1.0.5/languages/pandemic-covid19.pot (added)
-
tags/1.0.5/pandemic-covid19.php (added)
-
tags/1.0.5/public (added)
-
tags/1.0.5/public/class-pandemic-covid19-public.php (added)
-
tags/1.0.5/public/css (added)
-
tags/1.0.5/public/css/bulma.min.css (added)
-
tags/1.0.5/public/css/datatable (added)
-
tags/1.0.5/public/css/datatable/jquery.dataTables.css (added)
-
tags/1.0.5/public/css/pandemic-covid19-public.css (added)
-
tags/1.0.5/public/fonts (added)
-
tags/1.0.5/public/fonts/inter (added)
-
tags/1.0.5/public/fonts/inter/Inter-italic-var.woff2 (added)
-
tags/1.0.5/public/fonts/inter/Inter-upright-var.woff2 (added)
-
tags/1.0.5/public/index.php (added)
-
tags/1.0.5/public/js (added)
-
tags/1.0.5/public/js/amchart (added)
-
tags/1.0.5/public/js/amchart/animated.js (added)
-
tags/1.0.5/public/js/amchart/charts.js (added)
-
tags/1.0.5/public/js/amchart/core.js (added)
-
tags/1.0.5/public/js/amchart/geodata (added)
-
tags/1.0.5/public/js/amchart/geodata/worldLow.js (added)
-
tags/1.0.5/public/js/amchart/maps.js (added)
-
tags/1.0.5/public/js/datatable (added)
-
tags/1.0.5/public/js/datatable/jquery.dataTables.js (added)
-
tags/1.0.5/public/js/pandemic-covid19-ajax.js (added)
-
tags/1.0.5/public/js/pandemic-covid19-public.js (added)
-
tags/1.0.5/public/view (added)
-
tags/1.0.5/public/view/zone-pandemic-covid19-continent.php (added)
-
tags/1.0.5/public/view/zone-pandemic-covid19-country.php (added)
-
tags/1.0.5/public/view/zone-pandemic-covid19-global.php (added)
-
tags/1.0.5/public/view/zone-pandemic-covid19-graph.php (added)
-
tags/1.0.5/public/view/zone-pandemic-covid19-map.php (added)
-
tags/1.0.5/public/view/zone-pandemic-covid19-table.php (added)
-
tags/1.0.5/readme.txt (added)
-
tags/1.0.5/uninstall.php (added)
-
trunk/elementor/class-pandemic-covid19-elementor.php (modified) (3 diffs)
-
trunk/includes/class-pandemic-covid19-cli.php (added)
-
trunk/includes/class-pandemic-covid19.php (modified) (2 diffs)
-
trunk/pandemic-covid19.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zone-pandemic-covid-19/trunk/elementor/class-pandemic-covid19-elementor.php
r2372050 r2380732 28 28 class Pandemic_Covid19_Elementor 29 29 { 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'; 30 47 31 48 /** … … 72 89 * @param string $version The version of this plugin. 73 90 */ 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) { 88 92 $this->plugin_name = $plugin_name; 89 93 $this->version = $version; … … 113 117 add_action( 'elementor/elements/categories_registered', array(&$this,'add_elementor_widget_categories') ); 114 118 // Check for required Elementor version 115 if ( ! version_compare( ELEMENTOR_VERSION, $this->elementor_version, '>=' ) ) {119 if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) { 116 120 add_action( 'admin_notices', array(&$this, 'admin_notice_minimum_elementor_version') ); 117 121 } 118 122 } 119 123 // Check for required PHP version 120 if ( version_compare( PHP_VERSION, $this->php_version, '<' ) ) {124 if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) { 121 125 add_action( 'admin_notices', array(&$this, 'admin_notice_minimum_php_version') ); 122 126 } -
zone-pandemic-covid-19/trunk/includes/class-pandemic-covid19.php
r2372050 r2380732 76 76 $this->version = PANDEMIC_COVID19_VERSION; 77 77 } else { 78 $this->version = '1.0. 5';78 $this->version = '1.0.6'; 79 79 } 80 80 $this->plugin_name = 'pandemic-covid19'; … … 134 134 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'elementor/class-pandemic-covid19-elementor.php'; 135 135 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 136 142 $this->loader = new Pandemic_Covid19_Loader(); 137 143 -
zone-pandemic-covid-19/trunk/pandemic-covid19.php
r2372050 r2380732 17 17 * Plugin URI: https://github.com/zekinah/wp-pandemic-covid19 18 18 * Description: This plugin provides shortcode that displays the live recorded data of the covid19 in the whole world. 19 * Version: 1.0. 519 * Version: 1.0.6 20 20 * Author: Zekinah Lecaros 21 21 * Author URI: zekinahlecaros.com … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 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' ); 38 define( 'PANDEMIC_COVID19_VERSION', '1.0.6' ); 55 39 56 40 /** -
zone-pandemic-covid-19/trunk/readme.txt
r2372050 r2380732 49 49 * Heat Map 50 50 51 == WP-CLI Commands == (WP-CLI is required on server*) 52 CLI 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 67 wp zn_covid19 display_continent 68 69 // Displays the covid19 data of a continent 70 wp zn_covid19 display_continent 'North America' 71 72 // Displays the cases for today of continent 73 wp zn_covid19 display_continent 'North America' todayCases 74 ``` 75 51 76 == API used == 52 77 … … 96 121 8. Result of the Shortcode for the World Heat Map. 97 122 123 9. Result of the WP-CLI Command showing the global data. 124 98 125 == 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 99 130 = 1.0.5 = 100 131 * Elementor Integration … … 109 140 110 141 = 1.0.0 = 111 * In tial Release142 * Initial Release
Note: See TracChangeset
for help on using the changeset viewer.