Changeset 854105
- Timestamp:
- 02/09/2014 07:42:34 AM (12 years ago)
- Location:
- ephemeris/trunk
- Files:
-
- 2 edited
-
ephemeris.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ephemeris/trunk/ephemeris.php
r139559 r854105 6 6 * Plugin URI: http://www.joeswebtools.com/wordpress-plugins/ephemeris/ 7 7 * Description: Adds a sidebar widget that display the current astrological sky. 8 * Version: 2. 08 * Version: 2.1 9 9 * Author: Joe's Web Tools 10 10 * Author URI: http://www.joeswebtools.com/ … … 88 88 89 89 // Get date 90 $y = date('Y');91 $m = date('n');92 $d = date('j');90 $y = gmdate('Y'); 91 $m = gmdate('n'); 92 $d = gmdate('j'); 93 93 94 94 // Calculate julian day … … 269 269 } 270 270 271 // Ecliptic longitude 272 if(date('L') == '1') 273 { 274 $sun_zodiac_longitude = (366 / 360) * (date('z') + 20); 275 } 276 else 277 { 278 $sun_zodiac_longitude = (365 / 360) * (date('z') + 20); 279 } 280 $sun_zodiac_longitude = round($sun_zodiac_longitude % 30); 271 // Calculate sun's ecliptic longitude 272 $d = $jd - 2451545; 273 $g = 357.529 + (0.98560028 * $d); 274 $q = 280.459 + (0.98564736 * $d); 275 $l = $q + (1.915 * sin($g)) + (0.020 * sin(2 * $g)); 276 if($l > 360) { 277 $l -= 360; 278 } 279 280 // Zodiac adjusted longitude 281 $sun_zodiac_longitude = round($l % 30); 281 282 282 283 $content = '<table style="border-width: thin thin thin thin; border-style: solid solid solid solid;">'; … … 372 373 373 374 // Get date 374 $y = date('Y');375 $m = date('n');376 $d = date('j');375 $y = gmdate('Y'); 376 $m = gmdate('n'); 377 $d = gmdate('j'); 377 378 378 379 // Calculate julian day … … 553 554 } 554 555 555 // Ecliptic longitude 556 if(date('L') == '1') 557 { 558 $sun_zodiac_longitude = (366 / 360) * (date('z') + 20); 559 } 560 else 561 { 562 $sun_zodiac_longitude = (365 / 360) * (date('z') + 20); 563 } 564 $sun_zodiac_longitude = round($sun_zodiac_longitude % 30); 556 // Calculate sun's ecliptic longitude 557 $d = $jd - 2451545; 558 $g = 357.529 + (0.98560028 * $d); 559 $q = 280.459 + (0.98564736 * $d); 560 $l = $q + (1.915 * sin($g)) + (0.020 * sin(2 * $g)); 561 if($l > 360) { 562 $l -= 360; 563 } 564 565 // Zodiac adjusted longitude 566 $sun_zodiac_longitude = round($l % 30); 565 567 566 568 // Display sun zodiac -
ephemeris/trunk/readme.txt
r139559 r854105 4 4 Tags: ascendant, astrology, astrological report, astrological reports, horoscope, horoscopes, moon, moon phase, moon phases, phase, phases, sidebar, sidebars, star sign, star signs, sign, signs, sun, widget, widgets, zodiac 5 5 Requires at least: 2.8 6 Tested up to: 2.8.27 Stable tag: 2. 06 Tested up to: 3.8.1 7 Stable tag: 2.1 8 8 9 9 Adds a sidebar widget that display from the astrological sky the sun sign, the moon sign and the moon phase. … … 50 50 == Changelog == 51 51 52 = 2.1 = 53 * Compatibility check with WordPress 3.8.1 54 * Changing calculation method from tropical to sidereal 55 52 56 = 2.0 = 53 57 * Integration of the Hungarian translation
Note: See TracChangeset
for help on using the changeset viewer.