Changeset 2131936
- Timestamp:
- 08/01/2019 07:40:45 AM (7 years ago)
- Location:
- calj/trunk
- Files:
-
- 3 edited
-
CalJPlugin.php (modified) (1 diff)
-
calj.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
calj/trunk/CalJPlugin.php
r2130839 r2131936 76 76 $city = $decodedAttr['city']; 77 77 $lang = $decodedAttr['lang']; 78 79 // If we're demanding city-related data, 80 // use the corresponding sub-part of the dictionary 81 if ($city) { 82 if (array_key_exists('cities', $json) && 83 array_key_exists($city, $json['cities'])) { 84 $json = $json['cities'][$city]; 85 } else { 86 // Better explicitly indicate that no data was found, 87 // rather than silently give wrong zmanim. 88 return '-'; 89 } 90 } 78 91 79 92 // dot notation to access the json properties -
calj/trunk/calj.php
r2131491 r2131936 6 6 * Plugin URI: https://calj.net 7 7 * Description: Add the Shabbat times on your site. 8 * Version: 1. 2.18 * Version: 1.3 9 9 * Author: Gabriel Zerbib <gabriel@calj.net> 10 10 * Author URI: https://calj.net -
calj/trunk/readme.txt
r2131491 r2131936 99 99 Prints the Daf Yomi of the current day. 100 100 101 = With multiple cities = 102 103 If you purchased a multiple-city package, you may use the following syntax to 104 display the times for a selected city by its code: 105 106 `[caljshabbat city="Montreal" val="shabbat.begins"]` 107 101 108 102 109 = How are the times calculated = … … 106 113 107 114 == Changelog == 115 116 = 1.3 = 117 Support for multiple cities. 108 118 109 119 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.