add 3 holidays, widget tib's day shift fix

This commit is contained in:
ivan 2020-03-13 09:10:29 +01:00
parent 0fa6636b0e
commit 4ea02f909d
1 changed files with 8 additions and 0 deletions

View File

@ -112,6 +112,8 @@ class Discordian_Date_Widget extends WP_Widget {
$mon=$now["mon"]; $mon=$now["mon"];
$mday=$now["mday"]; $mday=$now["mday"];
$dseason=(int)($yday/73); $dseason=(int)($yday/73);
if ($now["year"]%4==0&&$now["year"]%100!=0 || $now["year"]%400==0)
if ($now["yday"]>59) $yday=$now["yday"]-1;
$dday=($yday-(73*$dseason))+1; $dday=($yday-(73*$dseason))+1;
$a_holiday=array("Mungday", "Mojoday", "Syaday", "Zaraday", "Maladay"); $a_holiday=array("Mungday", "Mojoday", "Syaday", "Zaraday", "Maladay");
$s_holiday=array("Chaoflux", "Discoflux", "Confuflux", "Bureflux", "Afflux"); $s_holiday=array("Chaoflux", "Discoflux", "Confuflux", "Bureflux", "Afflux");
@ -138,6 +140,8 @@ class Discordian_Date_Widget extends WP_Widget {
$holyday = " Celebrate Backwards/Binary Day."; $holyday = " Celebrate Backwards/Binary Day.";
} elseif ($dseason==0 && $dday==11) { } elseif ($dseason==0 && $dday==11) {
$holyday = " Celebrate RAW Day."; $holyday = " Celebrate RAW Day.";
} elseif ($dseason==0 && $dday==14) {
$holyday = " Celebrate Golden Apple Presentation Day.";
} elseif ($dseason==0 && $dday==17) { } elseif ($dseason==0 && $dday==17) {
$holyday = " Celebrate Joshmas."; $holyday = " Celebrate Joshmas.";
} elseif ($dseason==0 && $dday==18) { } elseif ($dseason==0 && $dday==18) {
@ -180,6 +184,8 @@ class Discordian_Date_Widget extends WP_Widget {
$holyday = " Celebrate St. Georges Day."; $holyday = " Celebrate St. Georges Day.";
} elseif ($dseason==2 && $dday==30) { } elseif ($dseason==2 && $dday==30) {
$holyday = " Celebrate Zoog Day."; $holyday = " Celebrate Zoog Day.";
} elseif ($dseason==2 && $dday==36) {
$holyday = " Celebrate June 31st for Popes.";
} elseif ($dseason==2 && $dday==37) { } elseif ($dseason==2 && $dday==37) {
$holyday = " Celebrate Mid-Years Day."; $holyday = " Celebrate Mid-Years Day.";
} elseif ($dseason==2 && $dday==40) { } elseif ($dseason==2 && $dday==40) {
@ -216,6 +222,8 @@ class Discordian_Date_Widget extends WP_Widget {
$holyday = " Celebrate 537 Day, sometimes Turkey Day."; $holyday = " Celebrate 537 Day, sometimes Turkey Day.";
} elseif ($dseason==4 && $dday==40) { } elseif ($dseason==4 && $dday==40) {
$holyday = " Celebrate Omars Day."; $holyday = " Celebrate Omars Day.";
} elseif ($dseason==4 && $dday==43) {
$holyday = " Celebrate Day D.";
} elseif ($dseason==4 && $dday==46) { } elseif ($dseason==4 && $dday==46) {
$holyday = " Celebrate Hug Day II."; $holyday = " Celebrate Hug Day II.";
} elseif ($dseason==4 && $dday==65) { } elseif ($dseason==4 && $dday==65) {