Changeset 2314774
- Timestamp:
- 05/29/2020 09:04:10 PM (4 years ago)
- Location:
- virusweather
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
virusweather/trunk/README.txt
r2314327 r2314774 6 6 Requires at least: 4.0.3 7 7 Tested up to: 5.4.1 8 Stable tag: 1.1. 08 Stable tag: 1.1. 9 9 Requires PHP: 5.6 10 10 License: GPLv2 or later … … 123 123 * Additional banner layout: horizontal 124 124 125 126 127 128 125 129 == Upgrade Notice == 126 130 -
virusweather/trunk/admin/class-virus-weather-admin.php
r2314361 r2314774 5 5 * 6 6 * @link https://www.datasub.com 7 * @since 1.1. 07 * @since 1.1. 8 8 * 9 9 * @package Virus_Weather … … 26 26 * The ID of this plugin. 27 27 * 28 * @since 1.1. 028 * @since 1.1. 29 29 * @access private 30 30 * @var string $plugin_name The ID of this plugin. … … 35 35 * The version of this plugin. 36 36 * 37 * @since 1.1. 037 * @since 1.1. 38 38 * @access private 39 39 * @var string $version The current version of this plugin. … … 44 44 * Initialize the class and set its properties. 45 45 * 46 * @since 1.1. 046 * @since 1.1. 47 47 * @param string $plugin_name The name of this plugin. 48 48 * @param string $version The version of this plugin. … … 58 58 * Register the stylesheets for the admin area. 59 59 * 60 * @since 1.1. 060 * @since 1.1. 61 61 */ 62 62 public function enqueue_styles() { … … 80 80 * Register the JavaScript for the admin area. 81 81 * 82 * @since 1.1. 082 * @since 1.1. 83 83 */ 84 84 public function enqueue_scripts() { -
virusweather/trunk/admin/js/virus-weather-admin.js
r2314327 r2314774 97 97 mwWidgetDimensions = [ '1465', '180']; 98 98 mwWidgetHeight = mwWidgetSize; 99 mwWidgetW = mwWidgetDimensions[0] == '1465' ? 1456 :mwWidgetDimensions[0];99 mwWidgetW = mwWidgetDimensions[0]; 100 100 mwWidgetWidth = Math.floor( mwWidgetHeight * mwWidgetW / mwWidgetDimensions[1] ); 101 101 break; -
virusweather/trunk/includes/class-virus-weather-activator.php
r2314361 r2314774 5 5 * 6 6 * @link https://www.datasub.com 7 * @since 1.1. 07 * @since 1.1. 8 8 * 9 9 * @package Virus_Weather … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.1. 018 * @since 1.1. 19 19 * @package Virus_Weather 20 20 * @subpackage Virus_Weather/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.1. 030 * @since 1.1. 31 31 */ 32 32 public static function activate() { -
virusweather/trunk/includes/class-virus-weather-deactivator.php
r2314361 r2314774 5 5 * 6 6 * @link https://www.datasub.com 7 * @since 1.1. 07 * @since 1.1. 8 8 * 9 9 * @package Virus_Weather … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.1. 018 * @since 1.1. 19 19 * @package Virus_Weather 20 20 * @subpackage Virus_Weather/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.1. 030 * @since 1.1. 31 31 */ 32 32 public static function deactivate() { -
virusweather/trunk/includes/class-virus-weather-i18n.php
r2314361 r2314774 8 8 * 9 9 * @link https://www.datasub.com 10 * @since 1.1. 010 * @since 1.1. 11 11 * 12 12 * @package Virus_Weather … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.1. 022 * @since 1.1. 23 23 * @package Virus_Weather 24 24 * @subpackage Virus_Weather/includes … … 31 31 * Load the plugin text domain for translation. 32 32 * 33 * @since 1.1. 033 * @since 1.1. 34 34 */ 35 35 public function load_plugin_textdomain() { -
virusweather/trunk/includes/class-virus-weather-loader.php
r2314361 r2314774 5 5 * 6 6 * @link https://www.datasub.com 7 * @since 1.1. 07 * @since 1.1. 8 8 * 9 9 * @package Virus_Weather … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 1.1. 029 * @since 1.1. 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 36 36 * The array of filters registered with WordPress. 37 37 * 38 * @since 1.1. 038 * @since 1.1. 39 39 * @access protected 40 40 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 45 45 * Initialize the collections used to maintain the actions and filters. 46 46 * 47 * @since 1.1. 047 * @since 1.1. 48 48 */ 49 49 public function __construct() { … … 57 57 * Add a new action to the collection to be registered with WordPress. 58 58 * 59 * @since 1.1. 059 * @since 1.1. 60 60 * @param string $hook The name of the WordPress action that is being registered. 61 61 * @param object $component A reference to the instance of the object on which the action is defined. … … 71 71 * Add a new filter to the collection to be registered with WordPress. 72 72 * 73 * @since 1.1. 073 * @since 1.1. 74 74 * @param string $hook The name of the WordPress filter that is being registered. 75 75 * @param object $component A reference to the instance of the object on which the filter is defined. … … 86 86 * collection. 87 87 * 88 * @since 1.1. 088 * @since 1.1. 89 89 * @access private 90 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 113 113 * Register the filters and actions with WordPress. 114 114 * 115 * @since 1.1. 0115 * @since 1.1. 116 116 */ 117 117 public function run() { -
virusweather/trunk/includes/class-virus-weather.php
r2314361 r2314774 8 8 * 9 9 * @link https://www.datasub.com 10 * @since 1.1. 010 * @since 1.1. 11 11 * 12 12 * @package Virus_Weather … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.1. 025 * @since 1.1. 26 26 * @package Virus_Weather 27 27 * @subpackage Virus_Weather/includes … … 34 34 * the plugin. 35 35 * 36 * @since 1.1. 036 * @since 1.1. 37 37 * @access protected 38 38 * @var Virus_Weather_Loader $loader Maintains and registers all hooks for the plugin. … … 43 43 * The unique identifier of this plugin. 44 44 * 45 * @since 1.1. 045 * @since 1.1. 46 46 * @access protected 47 47 * @var string $plugin_name The string used to uniquely identify this plugin. … … 52 52 * The current version of the plugin. 53 53 * 54 * @since 1.1. 054 * @since 1.1. 55 55 * @access protected 56 56 * @var string $version The current version of the plugin. … … 65 65 * the public-facing side of the site. 66 66 * 67 * @since 1.1. 067 * @since 1.1. 68 68 */ 69 69 public function __construct() { … … 71 71 $this->version = VIRUS_WEATHER_VERSION; 72 72 } else { 73 $this->version = '1.1. 0';73 $this->version = '1.1.'; 74 74 } 75 75 $this->plugin_name = 'virus-weather'; … … 94 94 * with WordPress. 95 95 * 96 * @since 1.1. 096 * @since 1.1. 97 97 * @access private 98 98 */ … … 126 126 * with WordPress. 127 127 * 128 * @since 1.1. 0128 * @since 1.1. 129 129 * @access private 130 130 */ … … 141 141 * of the plugin. 142 142 * 143 * @since 1.1. 0143 * @since 1.1. 144 144 * @access private 145 145 */ … … 157 157 * Run the loader to execute all of the hooks with WordPress. 158 158 * 159 * @since 1.1. 0159 * @since 1.1. 160 160 */ 161 161 public function run() { … … 167 167 * WordPress and to define internationalization functionality. 168 168 * 169 * @since 1.1. 0169 * @since 1.1. 170 170 * @return string The name of the plugin. 171 171 */ … … 177 177 * The reference to the class that orchestrates the hooks with the plugin. 178 178 * 179 * @since 1.1. 0179 * @since 1.1. 180 180 * @return Virus_Weather_Loader Orchestrates the hooks of the plugin. 181 181 */ … … 187 187 * Retrieve the version number of the plugin. 188 188 * 189 * @since 1.1. 0189 * @since 1.1. 190 190 * @return string The version number of the plugin. 191 191 */ … … 393 393 extract( wp_parse_args( (array) $settings, $defaults ) ); 394 394 $sizes = virus_weather_get_layout_sizes( $layout ); 395 $widgetWidth = $sizes[0] == 1465 ? 1456 :$sizes[0];395 $widgetWidth = $sizes[0]; 396 396 $dimensions = $sizes[0] == $sizes[1] ? $sizes[0] : implode( 'x', $sizes ); 397 397 $height = $size; -
virusweather/trunk/virus-weather.php
r2314361 r2314774 10 10 * 11 11 * @link datasub.com 12 * @since 1.1. 012 * @since 1.1. 13 13 * @package Virus_Weather 14 14 * … … 17 17 * Plugin URI: https://www.markosweb.com/coronavirus/widget.html 18 18 * Description: Dynamic PNG image shows local COVID-19 coronavirus statistics and calculated relative area risk rank for 4500+ local areas world-wide based on website visitor IP geolocation. Integrated chart clearly shows the rate of growth, flattening, and deceleration. Your web page visitors will see personalized stats that include local threat level around them as well as country. 19 * Version: 1.1. 019 * Version: 1.1. 20 20 * Author: Data Subsystems Inc. 21 21 * Author URI: https://www.datasub.com … … 33 33 /** 34 34 * Currently plugin version. 35 * Start at version 1.1. 0and use SemVer - https://semver.org35 * Start at version 1.1. and use SemVer - https://semver.org 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'VIRUS_WEATHER_VERSION', '1.1. 0' );38 define( 'VIRUS_WEATHER_VERSION', '1.1.' ); 39 39 40 40 /** … … 72 72 * not affect the page life cycle. 73 73 * 74 * @since 1.1. 074 * @since 1.1. 75 75 */ 76 76 function run_virus_weather() {
Note: See TracChangeset
for help on using the changeset viewer.