add 3 holidays, widget tib's day shift fix
This commit is contained in:
parent
0fa6636b0e
commit
4ea02f909d
|
@ -112,6 +112,8 @@ class Discordian_Date_Widget extends WP_Widget {
|
|||
$mon=$now["mon"];
|
||||
$mday=$now["mday"];
|
||||
$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;
|
||||
$a_holiday=array("Mungday", "Mojoday", "Syaday", "Zaraday", "Maladay");
|
||||
$s_holiday=array("Chaoflux", "Discoflux", "Confuflux", "Bureflux", "Afflux");
|
||||
|
@ -138,6 +140,8 @@ class Discordian_Date_Widget extends WP_Widget {
|
|||
$holyday = " Celebrate Backwards/Binary Day.";
|
||||
} elseif ($dseason==0 && $dday==11) {
|
||||
$holyday = " Celebrate RAW Day.";
|
||||
} elseif ($dseason==0 && $dday==14) {
|
||||
$holyday = " Celebrate Golden Apple Presentation Day.";
|
||||
} elseif ($dseason==0 && $dday==17) {
|
||||
$holyday = " Celebrate Joshmas.";
|
||||
} elseif ($dseason==0 && $dday==18) {
|
||||
|
@ -180,6 +184,8 @@ class Discordian_Date_Widget extends WP_Widget {
|
|||
$holyday = " Celebrate St. George’s Day.";
|
||||
} elseif ($dseason==2 && $dday==30) {
|
||||
$holyday = " Celebrate Zoog Day.";
|
||||
} elseif ($dseason==2 && $dday==36) {
|
||||
$holyday = " Celebrate June 31st for Popes.";
|
||||
} elseif ($dseason==2 && $dday==37) {
|
||||
$holyday = " Celebrate Mid-Year’s Day.";
|
||||
} elseif ($dseason==2 && $dday==40) {
|
||||
|
@ -216,6 +222,8 @@ class Discordian_Date_Widget extends WP_Widget {
|
|||
$holyday = " Celebrate 537 Day, sometimes Turkey Day.";
|
||||
} elseif ($dseason==4 && $dday==40) {
|
||||
$holyday = " Celebrate Omar’s Day.";
|
||||
} elseif ($dseason==4 && $dday==43) {
|
||||
$holyday = " Celebrate Day D.";
|
||||
} elseif ($dseason==4 && $dday==46) {
|
||||
$holyday = " Celebrate Hug Day II.";
|
||||
} elseif ($dseason==4 && $dday==65) {
|
||||
|
|
Loading…
Reference in New Issue