diff --git a/lang/en/en.lang.php b/lang/en/en.lang.php index 89e8aa0c..e656a9e5 100644 --- a/lang/en/en.lang.php +++ b/lang/en/en.lang.php @@ -935,6 +935,10 @@ $sidebar_text_019 = "per participant"; $sidebar_text_020 = "You have reached the limit of"; $sidebar_text_021 = "in this competition"; +$sidebar_text_022 = "Entry bottles accepted at"; +$sidebar_text_023 = "the shipping location"; +$sidebar_text_024 = "Competition judging dates are yet to be determined. Please check back later."; + // -------------------- Sponsors -------------------- // NONE diff --git a/sections/sidebar.sec.php b/sections/sidebar.sec.php index 7727409d..4bd156cb 100644 --- a/sections/sidebar.sec.php +++ b/sections/sidebar.sec.php @@ -39,6 +39,8 @@ * ---------------- END Rebuild Info --------------------- */ +include(DB.'judging_locations.db.php'); + if ($section != "admin") { $competition_logo = ""; @@ -230,57 +232,42 @@ } - $sidebar_text_022 = "Entry bottles accepted at"; - $sidebar_text_023 = "the shipping location"; - $sidebar_text_024 = "Competition judging dates are yet to be determined. Please check back later."; - $sidebar_text_025 = ""; - $sidebar_text_026 = ""; - $sidebar_text_027 = ""; - $sidebar_text_028 = ""; - $sidebar_text_029 = ""; - $sidebar_text_030 = ""; - $sidebar_text_031 = ""; - $sidebar_text_032 = ""; - $sidebar_text_033 = ""; - $sidebar_text_034 = ""; - $sidebar_text_035 = ""; - $sidebar_text_036 = ""; - $sidebar_text_037 = ""; - $sidebar_text_038 = ""; - $sidebar_text_039 = ""; - $sidebar_text_040 = ""; - // Drop-off Dates and Location - $header1_300 .= sprintf("
",$dropoff_panel_display); - $header1_300 .= "
"; - $header1_300 .= sprintf("

%s",$label_entry_drop_off); - if ($dropoff_window_open == 1) $header1_300 .= sprintf(" %s",$label_open); - else $header1_300 .= sprintf(" %s",$label_closed); - $header1_300 .= "

"; - $header1_300 .= "
"; - $page_info300 .= "
"; - $page_info300 .= sprintf("%s %s %s %s %s.",$sidebar_text_022,build_public_url("entry","default","default","default",$sef,$base_url)."#drop",strtolower($label_drop_offs),$dropoff_open_sidebar,$sidebar_text_004, $dropoff_closed_sidebar); - $page_info300 .= "

"; - $page_info300 .= "
"; - $page_info300 .= "
"; // Drop-off Dates and Location - $header1_500 .= "
"; - $header1_500 .= "
"; - $header1_500 .= "

Entry Shipping is"; - if ($shipping_window_open == 1) $header1_500 .= " Open"; - else $header1_500 .= " Closed"; - $header1_500 .= "

"; - $header1_500 .= "
"; - $page_info500 .= "
"; - $page_info500 .= sprintf("%s %s %s %s %s.",$sidebar_text_022, build_public_url("entry","default","default","default",$sef,$base_url)."#shipping", $sidebar_text_023, $sidebar_text_004,$shipping_open_sidebar, $shipping_closed_sidebar); - $page_info500 .= "

"; - $page_info500 .= "
"; - $page_info500 .= "
"; + if ($_SESSION['prefsDropOff'] == 1) { + $header1_300 .= sprintf("
",$dropoff_panel_display); + $header1_300 .= "
"; + $header1_300 .= sprintf("

%s",$label_entry_drop_off); + if ($dropoff_window_open == 1) $header1_300 .= sprintf(" %s",$label_open); + else $header1_300 .= sprintf(" %s",$label_closed); + $header1_300 .= "

"; + $header1_300 .= "
"; + $page_info300 .= "
"; + $page_info300 .= sprintf("%s %s %s %s %s.",$sidebar_text_022,build_public_url("entry","default","default","default",$sef,$base_url)."#drop",strtolower($label_drop_offs),$dropoff_open_sidebar,$sidebar_text_004, $dropoff_closed_sidebar); + $page_info300 .= "

"; + $page_info300 .= "
"; + $page_info300 .= "
"; + } + + // Shipping Date and Location + if ($_SESSION['prefsShipping'] == 1) { + $header1_500 .= "
"; + $header1_500 .= "
"; + $header1_500 .= "

Entry Shipping is"; + if ($shipping_window_open == 1) $header1_500 .= " Open"; + else $header1_500 .= " Closed"; + $header1_500 .= "

"; + $header1_500 .= "
"; + $page_info500 .= "
"; + $page_info500 .= sprintf("%s %s %s %s %s.",$sidebar_text_022, build_public_url("entry","default","default","default",$sef,$base_url)."#shipping", $sidebar_text_023, $sidebar_text_004,$shipping_open_sidebar, $shipping_closed_sidebar); + $page_info500 .= "

"; + $page_info500 .= "
"; + $page_info500 .= "
"; + } // Judging Location(s) - include(DB.'judging_locations.db.php'); $header1_400 .= "
"; $header1_400 .= "
"; $header1_400 .= sprintf("

%s

",$label_judging_loc); @@ -306,6 +293,9 @@ if ((($_SESSION['contestLogo'] != "") && (file_exists(USER_IMAGES.$_SESSION['contestLogo'])))) echo $competition_logo; echo $page_info; if ($_SESSION['prefsUseMods'] == "Y") include(INCLUDES.'mods_sidebar_top.inc.php'); + + echo $header1_400; + echo $page_info400; echo $header1_100; echo $page_info100; echo $header1_200; @@ -314,8 +304,6 @@ echo $page_info300; echo $header1_500; echo $page_info500; - echo $header1_400; - echo $page_info400; if ($_SESSION['prefsUseMods'] == "Y") include(INCLUDES.'mods_sidebar_bottom.inc.php'); }