Plugin Directory

Changeset 835005


Ignore:
Timestamp:
01/08/2014 04:27:17 PM (12 years ago)
Author:
adatosystems
Message:

version 1.8

Location:
adatosystems-friday-zmanim
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • adatosystems-friday-zmanim/trunk/readme.txt

    r808861 r835005  
    44Tags: Shabbat, Shabbat Times, Zman
    55Requires at least: 3.3
    6 Tested up to: 3.7.1
    7 Stable tag: 1.7
     6Tested up to: 3.8
     7Stable tag: 1.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545
    4646**Formatting**
     47
    4748Several CSS style codes are included:
     49
    4850* #frizman: a DIV tag that wraps all the widget content
    4951* #zmanbigtitle: a SPAN tag for the title of the widget
     
    5254Thus, you could format the text by adding the following to your style sheet:
    5355
    54 #frizman { font-size: 12px; }
    55 
    56 #zmanbigtitle {
    57         font-size: 12px;
    58         font-weight: bold;
    59         text-decoration: underline;
    60 }
    61 
    62 #zmantitle { font-weight: bold; }
     56`#frizman { font-size: 12px; }`
     57`#zmanbigtitle {`
     58`        font-size: 12px;`
     59`        font-weight: bold;`
     60`        text-decoration: underline;`
     61`       }`
     62`#zmantitle { font-weight: bold; }`
    6363
    6464== Frequently asked questions ==
     
    7373The chances are when you googled "latitude longitude for xxxx" it gave you two regular numbers. What you need to pay attention to is the North/South and East/West items. If the number is South or West, then you need to make the number negative. Example: San Francisco is 37.7833 N, 122.4167 W. But if you leave the longitude as 122.4167 you'll get Weihai, China.
    7474
    75 
    7675== Screenshots ==
    7776
     
    8180
    8281== Changelog ==
     82
     83= 1.8 =
     84* Changed https calls to http because it was causing errors on some systems that required certificates
    8385
    8486= 1.7 =
  • adatosystems-friday-zmanim/trunk/zmanfriday.php

    r808861 r835005  
    66 *   Uses the inimitable Hebcal.com site for parsha and other information,
    77 *   as well as Google Maps API for geographic and sunrise/sunset information.
    8  * Version: 1.7
     8 * Version: 1.8
    99 * Author: Leon Adato
    1010 * Author URI: http://www.adatosystems.com/
     
    1919 * 2013-11-15 - add option for latitude/longitude instead of postal code; also returns location in that locale's language if possible
    2020 * 2013-11-22 - fixed more calculatings, proving once again that developers should not QA their own code.
     21 * 2014-01-08 - changed https calls to http because it was causing errors on some systems that required certificates
    2122 *
    2223 *   This program is free software: you can redistribute it and/or modify
     
    190191        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    191192        $hebcal = curl_exec($ch);
     193        if($instance['debug'] ) {
     194            echo "<h3>hebcal CURL error info</h3>";
     195            if ($hebcal === FALSE) {
     196                die("Curl failed with error: " . curl_error($ch));
     197            }
     198        }
    192199        curl_close($ch);
     200
    193201        //$hebcal = file_get_contents("https://www.hebcal.com/hebcal/?v=1&cfg=json&nh=off&nx=off&year=now&month=x&ss=off&mf=off&c=off&s=on&".$inisrael."&lg=".$instance['ptext']);
    194202        $hebcaljd = json_decode($hebcal,true);
     203        if($instance['debug'] ) {
     204            echo "<h3>hebcal JSON error info</h3>";
     205            if (is_null($hebcaljd)) {
     206                die("Json decoding failed with error: ". json_last_error());
     207            }
     208        }
    195209        foreach($hebcaljd['items'] as $hebstat => $hebitem) {
    196210            foreach($hebitem as $stat=>$value) {
     
    204218        } //end get Parsha reading
    205219
    206 //**DO YOU NEED TO FIX THIS?!?!**
    207220        // Calculate Plag haMincha
    208221        if($instance['showplag']) {
     
    265278
    266279        if($instance['debug'] ) {
     280            echo "<h3>General debug info</h3>";
    267281            echo 'Current PHP version: ' . phpversion().'<br />';
    268282            echo 'Latlong URL is '.$latlongurl.'<br />';
Note: See TracChangeset for help on using the changeset viewer.