Changeset 835005
- Timestamp:
- 01/08/2014 04:27:17 PM (12 years ago)
- Location:
- adatosystems-friday-zmanim
- Files:
-
- 4 added
- 2 edited
-
tags/1.8 (added)
-
tags/1.8/license.txt (added)
-
tags/1.8/readme.txt (added)
-
tags/1.8/zmanfriday.php (added)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/zmanfriday.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adatosystems-friday-zmanim/trunk/readme.txt
r808861 r835005 4 4 Tags: Shabbat, Shabbat Times, Zman 5 5 Requires at least: 3.3 6 Tested up to: 3. 7.17 Stable tag: 1. 76 Tested up to: 3.8 7 Stable tag: 1.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 **Formatting** 47 47 48 Several CSS style codes are included: 49 48 50 * #frizman: a DIV tag that wraps all the widget content 49 51 * #zmanbigtitle: a SPAN tag for the title of the widget … … 52 54 Thus, you could format the text by adding the following to your style sheet: 53 55 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; }` 63 63 64 64 == Frequently asked questions == … … 73 73 The 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. 74 74 75 76 75 == Screenshots == 77 76 … … 81 80 82 81 == Changelog == 82 83 = 1.8 = 84 * Changed https calls to http because it was causing errors on some systems that required certificates 83 85 84 86 = 1.7 = -
adatosystems-friday-zmanim/trunk/zmanfriday.php
r808861 r835005 6 6 * Uses the inimitable Hebcal.com site for parsha and other information, 7 7 * as well as Google Maps API for geographic and sunrise/sunset information. 8 * Version: 1. 78 * Version: 1.8 9 9 * Author: Leon Adato 10 10 * Author URI: http://www.adatosystems.com/ … … 19 19 * 2013-11-15 - add option for latitude/longitude instead of postal code; also returns location in that locale's language if possible 20 20 * 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 21 22 * 22 23 * This program is free software: you can redistribute it and/or modify … … 190 191 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 191 192 $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 } 192 199 curl_close($ch); 200 193 201 //$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']); 194 202 $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 } 195 209 foreach($hebcaljd['items'] as $hebstat => $hebitem) { 196 210 foreach($hebitem as $stat=>$value) { … … 204 218 } //end get Parsha reading 205 219 206 //**DO YOU NEED TO FIX THIS?!?!**207 220 // Calculate Plag haMincha 208 221 if($instance['showplag']) { … … 265 278 266 279 if($instance['debug'] ) { 280 echo "<h3>General debug info</h3>"; 267 281 echo 'Current PHP version: ' . phpversion().'<br />'; 268 282 echo 'Latlong URL is '.$latlongurl.'<br />';
Note: See TracChangeset
for help on using the changeset viewer.