diff --git a/e107_plugins/calendar_menu/admin_config.php b/e107_plugins/calendar_menu/admin_config.php index c4e8150a2..4389eeed6 100644 --- a/e107_plugins/calendar_menu/admin_config.php +++ b/e107_plugins/calendar_menu/admin_config.php @@ -521,7 +521,7 @@ if($action == 'cat') ".EC_ADLAN_A94." - ".$uc->uc_dropdown('event_cat_addclass', $event_cat_addclass, 'public, nobody, member, admin, classes')." + ".$uc->uc_dropdown('event_cat_addclass', $event_cat_addclass, 'public, nobody, member, admin, classes, no-excludes')." ".EC_ADLAN_A219." @@ -562,7 +562,7 @@ if($action == 'cat') ".EC_ADLAN_A82." - ".$uc->uc_dropdown('event_cat_force_class', $event_cat_force_class, 'nobody, member, admin, classes')." + ".$uc->uc_dropdown('event_cat_force_class', $event_cat_force_class, 'nobody, member, admin, classes, no-excludes')." ".EC_ADLAN_A83." @@ -936,14 +936,14 @@ if($action == 'config') ".EC_ADLAN_A208." - ". $uc->uc_dropdown('eventpost_admin', $calPref['eventpost_admin'], 'public, nobody, member, admin, classes')." + ". $uc->uc_dropdown('eventpost_admin', $calPref['eventpost_admin'], 'public, nobody, member, admin, classes, no-excludes')." "; $text .= " ".EC_ADLAN_A211." - ". $uc->uc_dropdown('eventpost_super', $calPref['eventpost_super'], 'public, nobody, member, admin, classes')." + ". $uc->uc_dropdown('eventpost_super', $calPref['eventpost_super'], 'public, nobody, member, admin, classes, no-excludes')." diff --git a/e107_plugins/calendar_menu/ec_pf_page.php b/e107_plugins/calendar_menu/ec_pf_page.php index 2c1f825da..b179f2f35 100644 --- a/e107_plugins/calendar_menu/ec_pf_page.php +++ b/e107_plugins/calendar_menu/ec_pf_page.php @@ -123,10 +123,10 @@ if (!isset($ec_qs[0]) || !isset($ec_qs[1])) $cal_text .= " ".EC_LAN_153." "; - $cal_text .= gen_drop(FALSE)." + $cal_text .= gen_drop(FALSE, $ecal_class)." ".EC_LAN_154." - ".gen_drop(TRUE)." + ".gen_drop(TRUE, $ecal_class)." ".EC_LAN_155." "; @@ -438,7 +438,7 @@ function decode_date($date_string, $last_day = FALSE) // Generate monthly drop-down - FALSE = first, TRUE = last // For the first date we want beginning of previous year to end of current year // For the last date we want end of next -function gen_drop($drop_type) +function gen_drop($drop_type, $ecal_class) { $text = "\n"; return $text; diff --git a/e107_plugins/calendar_menu/ec_pf_template.php b/e107_plugins/calendar_menu/ec_pf_template.php index 54c41ef4b..12dca8c69 100644 --- a/e107_plugins/calendar_menu/ec_pf_template.php +++ b/e107_plugins/calendar_menu/ec_pf_template.php @@ -65,7 +65,7 @@ $sc_style['EC_PR_LIST_TITLE']['post'] = ""; $EVENT_CAL_PDF_NAMES['default'] = EC_LAN_165; $EVENT_CAL_PDF_HEADER['default'] = "{EC_PR_LIST_TITLE}
{EC_PR_CAT_LIST}
".EC_LAN_168."{EC_PR_LIST_START=%d-%m-%Y}
".EC_LAN_169."{EC_PR_LIST_END=%d-%m-%Y}
"; $EVENT_CAL_PDF_BODY['default'] = "{EC_PR_CHANGE_YEAR}{EC_PR_CHANGE_MONTH}{EC_MAIL_SHORT_DATE} {EC_MAIL_TIME_START} {EC_MAIL_TITLE}
\n"; -$EVENT_CAL_PDF_FOOTER['default'] = "---End of List---

{EC_IFNOT_DISPLAY=EC_NOW_DATE}{EC_IFNOT_DISPLAY=EC_NOW_TIME}
{EC_PRINT_BUTTON}"; +$EVENT_CAL_PDF_FOOTER['default'] = EC_LAN_138."

{EC_IFNOT_DISPLAY=EC_NOW_DATE}{EC_IFNOT_DISPLAY=EC_NOW_TIME}
{EC_PRINT_BUTTON}"; // - A simple tabular style diff --git a/e107_plugins/calendar_menu/ecal_class.php b/e107_plugins/calendar_menu/ecal_class.php index 41689e547..1b0c05401 100644 --- a/e107_plugins/calendar_menu/ecal_class.php +++ b/e107_plugins/calendar_menu/ecal_class.php @@ -73,6 +73,8 @@ class ecal_class var $ec_first_day_of_week = 0; // First day of the week public $days = array(EC_LAN_25, EC_LAN_19, EC_LAN_20, EC_LAN_21, EC_LAN_22, EC_LAN_23, EC_LAN_24); // Array Sunday..Saturday + private $months = array(EC_LAN_0, EC_LAN_1, EC_LAN_2, EC_LAN_3, EC_LAN_4, EC_LAN_5, EC_LAN_6, + EC_LAN_7, EC_LAN_8, EC_LAN_9, EC_LAN_10, EC_LAN_11); // 'Long' month names public $recur_type = array( '0' => EC_LAN_RECUR_00, // 'no' '1' => EC_LAN_RECUR_01, //'annual' @@ -497,7 +499,9 @@ class ecal_class */ function gmgetdate($date) { - return getdate($date-date('Z')); + $value = getdate($date-date('Z')); + $value['month'] = $this->months[$value['mon'] - 1]; // Looks like getdate doesn't use the specified site language + return $value; } diff --git a/e107_plugins/calendar_menu/languages/English.php b/e107_plugins/calendar_menu/languages/English.php index f846d1f23..0f5253cb8 100644 --- a/e107_plugins/calendar_menu/languages/English.php +++ b/e107_plugins/calendar_menu/languages/English.php @@ -180,7 +180,7 @@ define('EC_LAN_100', "Invalid Category Selection"); define('EC_LAN_105', "* Required Field"); define('EC_LAN_106', "Events"); //define('EC_LAN_107', "This plugin is a fully featured event calendar with calendar menu."); -define('EC_LAN_108', "Event Calendar Upgraded. See the 'readme.pdf' file for detailed information."); +define('EC_LAN_108', "Event Calendar Upgraded. See the e107 wiki file for detailed information."); define('EC_LAN_109', "Unable to delete this event."); define('EC_LAN_110', "Event Number "); define('EC_LAN_111', "All the events on "); @@ -210,6 +210,7 @@ define('EC_LAN_134', "You have to provide a category name"); define('EC_LAN_135', "Event"); define('EC_LAN_136', "Category Description"); define('EC_LAN_137', "Future Events"); +define('EC_LAN_138', '---End of List---'); define('EC_LAN_140', "Forthcoming Events"); define('EC_LAN_141', "No forthcoming events"); @@ -298,7 +299,7 @@ define('NT_LAN_EC_8', 'Event Calendar - Event modified'); */ // Prefs - language defines can be used in various places where text is set through the admin screens -define('EC_MAILOUT_SUBJECT', "Advice of calendar event"); // Use shortcode EC_MAIL_SUBJECT +define('EC_MAILOUT_SUBJECT', 'Advice of calendar event'); // Use shortcode EC_MAIL_SUBJECT ?> \ No newline at end of file