[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 : herb@bobbingwide.com )

    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.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
      SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
      oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
      oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
      oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

      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: herb@bobbingwide.com

      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-2025. All rights reserved.


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

      WordPress version: 6.8.3

      Gutenberg version: 21.7.0

      PHP version: 8.2.29