Plugin Directory

Changeset 2622546


Ignore:
Timestamp:
10/31/2021 06:40:12 PM (3 years ago)
Author:
ChrisMKindred
Message:

Update to version 21.11.01 from GitHub

Location:
usgs-stream-flow-data
Files:
80 added
5 deleted
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • usgs-stream-flow-data/assets/banner-1544x500.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • usgs-stream-flow-data/assets/banner-772x250.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • usgs-stream-flow-data/assets/icon-128x128.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • usgs-stream-flow-data/assets/icon-256x256.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • usgs-stream-flow-data/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • usgs-stream-flow-data/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • usgs-stream-flow-data/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • usgs-stream-flow-data/assets/screenshot-4.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • usgs-stream-flow-data/tags/21.11.01/README.txt

    r2532667 r2622546  
    33Donate link: //www.kindredwebconsulting.com/wp-plugins/usgs
    44Tags: USGS, River Flow, Stream Flow, Fly Fishing, Water Level
    5 Requires at least: 3.7
    6 Tested up to: 5.7.2
    7 Requires PHP: 5.6
    8 Stable tag: 21.05.01
     5Requires at least: 5.5
     6Tested up to: 5.8.1
     7Requires PHP: 7.0
     8Stable tag: 21.11.01
    99License: GPLv2 or later
    1010License URI: //www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
    70 = 21.05.01 =
     70= 21.11.01 =
     71adds: refactor the majority of the plugin to allow for easier changes in the future.
     72adds: The ability to change the template for the shortcode by includeing a usgs.php file in your theme or plugin.
     73adds: tested up to 5.8.1.
     74removes: WP Support is now 5.5 and up.
     75removes: PHP compatibility is now 7.0 and up.
     76
     77= 21.05.01 =
    7178Tested up to 5.7.2.
    7279Update transient to limit key length.
  • usgs-stream-flow-data/tags/21.11.01/kwcusgs.php

    r2532667 r2622546  
    11<?php
    22/**
    3  * A plugin for calling USGS Stream Flow Data Shortcodes
    4  *
    5  * @package   USGS Steam Flow Data
    6  * @author    Chris Kindred <[email protected]>
    7  * @license   GPL-2.0+
    8  * @link      //www.kindredwebconsulting.com
    9  *
    10  * @wordpress-plugin
    113 * Plugin Name:       USGS Steam Flow Data
    124 * Plugin URI:        //wordpress.org/plugins/usgs-stream-flow-data/
    135 * Description:       USGS Stream Flow Data
    14  * Version:           21.05.01
     6 * Version:           21.11.01
    157 * Author:            Chris Kindred
    168 * Author URI:        //www.kindredwebconsulting.com
    17  * Text Domain:       kwcusgs-locale
     9 * Text Domain:       kwc_usgs
    1810 * License:           GPL-2.0+
    1911 * License URI:       //www.gnu.org/licenses/gpl-2.0.txt
    2012 * Domain Path:       /languages
     13 * Requires at least: 5.5
     14 * Requires PHP:      7.0
    2115 */
     16
     17use Kindred\USGS\Core;
    2218
    2319// If this file is called directly, abort.
     
    2622}
    2723
    28 require_once plugin_dir_path( __FILE__ ) . 'public/class-kwc-usgs.php';
     24require_once( 'vendor/autoload.php' );
    2925
    30 /*
    31  * Register hooks that are fired when the plugin is activated or deactivated.
    32  * When the plugin is deleted, the uninstall.php file is loaded.
    33  */
    34 register_activation_hook( __FILE__, array( 'kwc_usgs', 'activate' ) );
    35 register_deactivation_hook( __FILE__, array( 'kwc_usgs', 'deactivate' ) );
     26register_activation_hook( __FILE__, [ Core::class, 'activate' ] );
     27register_deactivation_hook( __FILE__, [ Core::class, 'deactivate' ] );
    3628
    37 add_action( 'plugins_loaded', array( 'kwc_usgs', 'get_instance' ) );
    38 add_filter( 'widget_text', 'do_shortcode' );
     29add_action( 'plugins_loaded', static function () {
     30    usgs_core()->init( __file__ );
     31} );
    3932
    40 /*
    41  * The code below is intended to to give the lightest footprint possible.
    42  */
    43 if ( is_admin() ) {
    44 
    45     require_once plugin_dir_path( __FILE__ ) . 'admin/class-kwc-usgs-admin.php';
    46     add_action( 'plugins_loaded', array( 'kwc_usgs_admin', 'get_instance' ) );
    47 
     33function usgs_core() {
     34    return Core::instance();
    4835}
  • usgs-stream-flow-data/tags/21.11.01/languages/kwcusgs.pot

    r1622006 r2622546  
    1 # Copyright (C) 2013 Kindred Web Consulting
    2 # This file is distributed under the same license as the USGS Steam Flow package.
     1# Copyright (C) 2021 Chris Kindred
     2# This file is distributed under the GPL-2.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: USGS Steam Flow 0.0.1\n"
    6 "Report-Msgid-Bugs-To: //wordpress.org/plugins/USGS-Stream-Flow\n"
    7 "POT-Creation-Date: 2013-05-10 11:23:19+00:00\n"
    8 "PO-Revision-Date: 2013-05-10 10:37-0500\n"
    9 "Last-Translator: Chris Kindred <[email protected] >\n"
    10 "Language-Team: Kindred Web Consulting <[email protected] >\n"
     5"Project-Id-Version: USGS Steam Flow Data 21.11.01\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/KWC-USGS\n"
     7"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    119"MIME-Version: 1.0\n"
    1210"Content-Type: text/plain; charset=UTF-8\n"
    1311"Content-Transfer-Encoding: 8bit\n"
    14 "X-Generator: Poedit 1.5.7\n"
    15 "X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
    16 "esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
    17 "X-Poedit-Basepath: ../\n"
    18 "Plural-Forms: nplurals=2; plural=n != 1;\n"
    19 "X-Poedit-SearchPath-0: .\n"
     12"POT-Creation-Date: 2021-10-31T17:57:09+00:00\n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.5.0\n"
     15"X-Domain: kwc_usgs\n"
    2016
    21 #: class-kwcusgs-admin.php:154
     17#. Plugin Name of the plugin
     18msgid "USGS Steam Flow Data"
     19msgstr ""
     20
     21#. Plugin URI of the plugin
     22msgid "//wordpress.org/plugins/usgs-stream-flow-data/"
     23msgstr ""
     24
     25#. Description of the plugin
     26#: src/Admin/Admin.php:16
    2227msgid "USGS Stream Flow Data"
    2328msgstr ""
    2429
    25 #: class-kwcusgs-admin.php:155
    26 msgid "USGS"
     30#. Author of the plugin
     31msgid "Chris Kindred"
    2732msgstr ""
    2833
    29 #: class-kwcusgs-admin.php:181
     34#. Author URI of the plugin
     35msgid "//www.kindredwebconsulting.com"
     36msgstr ""
     37
     38#: src/Admin/Admin.php:17
     39msgid "Stream Flow Data"
     40msgstr ""
     41
     42#: src/Admin/Admin.php:26
    3043msgid "Settings"
    3144msgstr ""
    3245
    33 #: admin/views/admin.php:104
    34 msgid "Get Stations
     46#: src/Admin/Admin.php:62
     47#: src/Shortcode/Shortcode.php:57
     48msgid "Unable to parse USGS's XML"
    3549msgstr ""
     50
     51#: views/admin.php:14
     52msgid "You do not have sufficient permissions to access this page."
     53msgstr ""
     54
     55#: views/admin.php:18
     56msgid "Usage"
     57msgstr ""
     58
     59#: views/admin.php:19
     60msgid "Search Site Codes"
     61msgstr ""
     62
     63#: views/admin.php:117
     64msgid "Get Stations"
     65msgstr ""
  • usgs-stream-flow-data/trunk/README.txt

    r2532667 r2622546  
    33Donate link: //www.kindredwebconsulting.com/wp-plugins/usgs
    44Tags: USGS, River Flow, Stream Flow, Fly Fishing, Water Level
    5 Requires at least: 3.7
    6 Tested up to: 5.7.2
    7 Requires PHP: 5.6
    8 Stable tag: 21.05.01
     5Requires at least: 5.5
     6Tested up to: 5.8.1
     7Requires PHP: 7.0
     8Stable tag: 21.11.01
    99License: GPLv2 or later
    1010License URI: //www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
    70 = 21.05.01 =
     70= 21.11.01 =
     71adds: refactor the majority of the plugin to allow for easier changes in the future.
     72adds: The ability to change the template for the shortcode by includeing a usgs.php file in your theme or plugin.
     73adds: tested up to 5.8.1.
     74removes: WP Support is now 5.5 and up.
     75removes: PHP compatibility is now 7.0 and up.
     76
     77= 21.05.01 =
    7178Tested up to 5.7.2.
    7279Update transient to limit key length.
  • usgs-stream-flow-data/trunk/kwcusgs.php

    r2532667 r2622546  
    11<?php
    22/**
    3  * A plugin for calling USGS Stream Flow Data Shortcodes
    4  *
    5  * @package   USGS Steam Flow Data
    6  * @author    Chris Kindred <[email protected]>
    7  * @license   GPL-2.0+
    8  * @link      //www.kindredwebconsulting.com
    9  *
    10  * @wordpress-plugin
    113 * Plugin Name:       USGS Steam Flow Data
    124 * Plugin URI:        //wordpress.org/plugins/usgs-stream-flow-data/
    135 * Description:       USGS Stream Flow Data
    14  * Version:           21.05.01
     6 * Version:           21.11.01
    157 * Author:            Chris Kindred
    168 * Author URI:        //www.kindredwebconsulting.com
    17  * Text Domain:       kwcusgs-locale
     9 * Text Domain:       kwc_usgs
    1810 * License:           GPL-2.0+
    1911 * License URI:       //www.gnu.org/licenses/gpl-2.0.txt
    2012 * Domain Path:       /languages
     13 * Requires at least: 5.5
     14 * Requires PHP:      7.0
    2115 */
     16
     17use Kindred\USGS\Core;
    2218
    2319// If this file is called directly, abort.
     
    2622}
    2723
    28 require_once plugin_dir_path( __FILE__ ) . 'public/class-kwc-usgs.php';
     24require_once( 'vendor/autoload.php' );
    2925
    30 /*
    31  * Register hooks that are fired when the plugin is activated or deactivated.
    32  * When the plugin is deleted, the uninstall.php file is loaded.
    33  */
    34 register_activation_hook( __FILE__, array( 'kwc_usgs', 'activate' ) );
    35 register_deactivation_hook( __FILE__, array( 'kwc_usgs', 'deactivate' ) );
     26register_activation_hook( __FILE__, [ Core::class, 'activate' ] );
     27register_deactivation_hook( __FILE__, [ Core::class, 'deactivate' ] );
    3628
    37 add_action( 'plugins_loaded', array( 'kwc_usgs', 'get_instance' ) );
    38 add_filter( 'widget_text', 'do_shortcode' );
     29add_action( 'plugins_loaded', static function () {
     30    usgs_core()->init( __file__ );
     31} );
    3932
    40 /*
    41  * The code below is intended to to give the lightest footprint possible.
    42  */
    43 if ( is_admin() ) {
    44 
    45     require_once plugin_dir_path( __FILE__ ) . 'admin/class-kwc-usgs-admin.php';
    46     add_action( 'plugins_loaded', array( 'kwc_usgs_admin', 'get_instance' ) );
    47 
     33function usgs_core() {
     34    return Core::instance();
    4835}
  • usgs-stream-flow-data/trunk/languages/kwcusgs.pot

    r1622006 r2622546  
    1 # Copyright (C) 2013 Kindred Web Consulting
    2 # This file is distributed under the same license as the USGS Steam Flow package.
     1# Copyright (C) 2021 Chris Kindred
     2# This file is distributed under the GPL-2.0+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: USGS Steam Flow 0.0.1\n"
    6 "Report-Msgid-Bugs-To: //wordpress.org/plugins/USGS-Stream-Flow\n"
    7 "POT-Creation-Date: 2013-05-10 11:23:19+00:00\n"
    8 "PO-Revision-Date: 2013-05-10 10:37-0500\n"
    9 "Last-Translator: Chris Kindred <[email protected] >\n"
    10 "Language-Team: Kindred Web Consulting <[email protected] >\n"
     5"Project-Id-Version: USGS Steam Flow Data 21.11.01\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/KWC-USGS\n"
     7"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    119"MIME-Version: 1.0\n"
    1210"Content-Type: text/plain; charset=UTF-8\n"
    1311"Content-Transfer-Encoding: 8bit\n"
    14 "X-Generator: Poedit 1.5.7\n"
    15 "X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
    16 "esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
    17 "X-Poedit-Basepath: ../\n"
    18 "Plural-Forms: nplurals=2; plural=n != 1;\n"
    19 "X-Poedit-SearchPath-0: .\n"
     12"POT-Creation-Date: 2021-10-31T17:57:09+00:00\n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.5.0\n"
     15"X-Domain: kwc_usgs\n"
    2016
    21 #: class-kwcusgs-admin.php:154
     17#. Plugin Name of the plugin
     18msgid "USGS Steam Flow Data"
     19msgstr ""
     20
     21#. Plugin URI of the plugin
     22msgid "//wordpress.org/plugins/usgs-stream-flow-data/"
     23msgstr ""
     24
     25#. Description of the plugin
     26#: src/Admin/Admin.php:16
    2227msgid "USGS Stream Flow Data"
    2328msgstr ""
    2429
    25 #: class-kwcusgs-admin.php:155
    26 msgid "USGS"
     30#. Author of the plugin
     31msgid "Chris Kindred"
    2732msgstr ""
    2833
    29 #: class-kwcusgs-admin.php:181
     34#. Author URI of the plugin
     35msgid "//www.kindredwebconsulting.com"
     36msgstr ""
     37
     38#: src/Admin/Admin.php:17
     39msgid "Stream Flow Data"
     40msgstr ""
     41
     42#: src/Admin/Admin.php:26
    3043msgid "Settings"
    3144msgstr ""
    3245
    33 #: admin/views/admin.php:104
    34 msgid "Get Stations
     46#: src/Admin/Admin.php:62
     47#: src/Shortcode/Shortcode.php:57
     48msgid "Unable to parse USGS's XML"
    3549msgstr ""
     50
     51#: views/admin.php:14
     52msgid "You do not have sufficient permissions to access this page."
     53msgstr ""
     54
     55#: views/admin.php:18
     56msgid "Usage"
     57msgstr ""
     58
     59#: views/admin.php:19
     60msgid "Search Site Codes"
     61msgstr ""
     62
     63#: views/admin.php:117
     64msgid "Get Stations"
     65msgstr ""
Note: See TracChangeset for help on using the changeset viewer.