[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

shortcodes/us-tides.php


Lines:

1 to 100 of 164
<?php 
/*

    Copyright 2012-2015 Bobbing Wide (email : [email protected] )

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2,
    as published by the Free Software Foundation.

    You may NOT assume that you can use any other version of the GPL.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    The license for this software can likely be found here:
    http://www.gnu.org/licenses/gpl-2.0.html

*/


/* function us_get_tide_info() – Code copied and cobbled from http://snippet.me/wordpress/wordpress-plugin-info-api/
having referred to http://ckon.wordpress.com/2010/07/20/undocumented-wordpress-org-plugin-api/
get XML information using simple xml load file */


/* function us_time_of_day_secs() – Obtain tide information using the shortcode [us_tides tide_url=’tide feed xml url’]
The format of the feed is expected to be as in the following output from bw_trace */


/* 
SimpleXMLElement Object
(
    [origin] => NOAA/NOS/CO-OPS
    [disclaimer] => Disclaimer: These data are based upon the latest information available as of the date of your request, and may differ from the published tide tables. 
    [producttype] =>  Annual Tide Prediction 
    [stationname] => Threemile Cut entrance, Darien River
    [state] => GA
    [stationid] => 8675843
    [stationtype] => Subordinate
    [referencedToStationName] => SAVANNAH RIVER ENTRANCE, FORT PULASKI
    [referencedToStationId] => 8675843
    [HeightOffsetLow] => *1.05
    [HeightOffsetHigh] => * 1.03
    [TimeOffsetLow] => 55
    [TimeOffsetHigh] => 44
    [BeginDate] => 20111231 00:00
    [EndDate] => 20121231 23:59
    [dataUnits] => feet(ft) also in centimeters(cm)
    [Timezone] => LST/LDT
    [Datum] => MLLW
    [IntervalType] => High/Low Tide Predictions
    [data] => SimpleXMLElement Object
        (
            [item] => Array
                (
                    [0] => SimpleXMLElement Object
                        (
                            [date] => 2011/12/31
                            [day] => Sat
                            [time] => 01:16 AM
                            [predictions_in_ft] => 6.6
                            [predictions_in_cm] => 201
                            [highlow] => H
                        )

                    [1] => SimpleXMLElement Object
                        (
                            [date] => 2011/12/31
                            [day] => Sat
                            [time] => 07:36 AM
                            [predictions_in_ft] => 1.1
                            [predictions_in_cm] => 34
                            [highlow] => L
                        )

                    [2] => SimpleXMLElement Object
                        (
                            [date] => 2011/12/31
                            [day] => Sat
                            [time] => 01:43 PM
                            [predictions_in_ft] => 6.3
                            [predictions_in_cm] => 192
                            [highlow] => H
                        )

                    [3] => SimpleXMLElement Object
                        (
                            [date] => 2011/12/31
                            [day] => Sat
                            [time] => 08:03 PM
                            [predictions_in_ft] => 0.7
                            [predictions_in_cm] => 21
                            [highlow] => L
                        )
  

[1] [2] Next »

 View on GitHub

Called by

    Invoked by

      Calls

      Call hooks

      File name: shortcodes/us-tides.php
      Plugin ref: US-tides – saltwater tide times and heights
      Version: 0.3.0
      Deprecated?: No
      API Letters:

      Published: September 21, 2014 | Last updated: September 21, 2014

      Information

      File name: shortcodes/us-tides.php
      Plugin ref: US-tides – saltwater tide times and heights
      Version: 0.3.0
      Deprecated?: No
      API Letters:

      Recent plugin updates

      oik-weight-zone-shipping v0.2.2 

      Upgrade to oik-weight-zone-shipping v0.2.2 for internationalized strings for migration. This version may also resolve a problem where a Warning message is produced while listing Shipping classes.

       ...
      oik-weight-zone-shipping v0.2.1 

      oik-weight-zone-shipping v0.2.1 fixes a problem with v0.2.0 on worpress.org, where two new files weren't included in the SVN repository.

       ...
      oik-weightcountry-shipping v1.4.0 

      oik-weightcountry-shipping v1.4.0 has been tested with WordPress 5.6 and WooCommerce 4.8.0. It is no longer supported. We suggest you switch to the oik weight zone shipping plugin.

       ...
      oik-weight-zone-shipping v0.2.0 

      oik-weight-zone-shipping v0.2.0 now supports migration from oik weight/country shipping. You can create Multi Rate shipping tables and methods restricting shipping classes.

       ...
      oik-css v1.1.1 

      oik-css v1.1.1 contains an update for improved compatibility with Gutenberg. It has been tested with WordPress 5.6 and WordPress Multi Site.

       ...

      Plugins

      • All Plugins
      • oik base plugin
      • FREE oik plugins
      • WordPress plugins
      • Premium oik plugins

      Themes

      • FREE themes
      • Bespoke themes
      • Premium themes

      Blocks

      • All Blocks
      • Block examples
      • About Blocks

      Shortcodes

      • All Shortcodes
      • Shortcode examples
      • About Shortcodes

      Reference

      • About APIs
      • All APIs
      • All Classes
      • All Files
      • All Hooks

      Support

      • Contact
      • Cookies policy
      • Get API key
      • Privacy
      • Request support
      • Sitemap
      • Stay informed
      • Terms and Conditions
      oik-plugins
      Email: [email protected]

      Weight shipping plugins

      Find out which cart weight shipping plugin you need for your WooCommerce site.
      Which cart weight based plugin do I need?

      Site:  www.oik-plugins.com
      © Copyright oik-plugins 2011-2021. All rights reserved.


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins