y_start']) $firstday-=1; //if (!$firstday && $CONFIG_EXT['day_start']) $firstday = 7; $firstday = ($firstday < 0)? $firstday + 7: $firstday%7; // number of days in asked month $nr = date("t",mktime(0,0,0,$date['month'],1,$date['year'])); $today_date = ucwords(strftime($lang_date_format['full_date'], mktime(0,0,0,$today['month'],$today['day'],$today['year']))); //starttable('100%', $lang_monthly_event_view['section_title'], $CONFIG_EXT['cal_view_show_week']?8:7, '', $today_date); echo $header_row; $params = array( '{PREVIOUS_MONTH}' => ucwords(strftime($lang_date_format['month_year'], mktime(0,0,0,$date['month']-1,1,$date['year']))), '{PREVIOUS_MONTH_URL}' => $info_data['previous_month_url'], '{CURRENT_MONTH}' => ucwords(strftime($lang_date_format['month_year'], mktime(0,0,0,$date['month'],1,$date['year']))), '{NEXT_MONTH}' => ucwords(strftime($lang_date_format['month_year'], mktime(0,0,0,$date['month']+1,1,$date['year']))), '{NEXT_MONTH_URL}' => $info_data['next_month_url'], ); if(!$CONFIG_EXT['cal_view_show_week']) template_extract_block($navigation_row, 'weeknumber_row'); if(!$info_data['show_past_months']) template_extract_block($navigation_row, 'previous_month_link_row'); else template_extract_block($navigation_row, 'no_previous_month_link_row'); if($info_data['navigation_controls']) template_extract_block($navigation_row, 'without_navigation_row'); else template_extract_block($navigation_row, 'with_navigation_row'); echo template_eval($navigation_row, $params); if(isset($info_data['picture_info'])) { $params = array( '{PICTURE_URL}' => $CONFIG_EXT['MINI_PICS_URL'].$info_data['picture_info']['picture_url'], '{PICTURE_MESSAGE}' => $info_data['picture_info']['picture_message'], '{STATUS_MESSAGE}' => ucwords(strftime($lang_date_format['month_year'], mktime(0,0,0,$date['month'],1,$date['year']))), '{TODAY_URL}' => $info_data['current_month_url'] ); echo template_eval($picture_row, $params); } //echo $weekdays_row; // print weekday labels echo $weekday_header_row; for ($i=0;$i $info_data['weekdays'][$i]['name'], '{CSS_CLASS}' => $info_data['weekdays'][$i]['class'] ); echo template_eval($weekday_cell_row, $params); } echo $weekday_footer_row; // print day cells for ($i=1-$firstday;$i<=count($results);$i+=7) { echo $day_cell_header_row; if($CONFIG_EXT['cal_view_show_week']) { $weeknumber_cell_row1 = $weeknumber_cell_row; $weeknumber = $results[$i<1?1:$i]['week_number']; $week_stamp = mktime(0,0,0,$date['month'],$i + 6,$date['year']); $url_week_date = date("Y-m-d", $week_stamp); $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=week&date=".$url_week_date ); $params = array( '{URL_WEEK_VIEW}' => $sef_href, '{WEEK_NUMBER}' => sprintf($lang_mini_cal['selected_week'],$weeknumber) ); echo template_eval( $weeknumber_cell_row1, $params); } for ($row=0;$row<7;$row++) { $day_stamp = mktime(0,0,0,$date['month'],$i + $row,$date['year']); if($i+$row<1 || $i+$row> $nr) { //$date_string = ucwords(strftime($lang_date_format['month_year'], $day_stamp)); $date_string = ""; echo str_replace('{CELL_CONTENT}', $date_string,$other_month_cell_row); } else { $url_target_date = $results[($i + $row)]['date_link']; $events = $results[($i + $row)]['num_events']; $num_events = $info_data['day_link']?(int)$events:0; $date_string = ucwords(strftime($lang_date_format['day_month_year'], $day_stamp)); if ($day_stamp == mktime(0,0,0,$today['month'],$today['day'],$today['year'])) { // higlight today's day $css_class = "extcal_todaycell"; $link_class = $num_events?"extcal_busylink":"extcal_daylink"; $hlColor = $todayclrHl; $regColor = $todayclr; } elseif (!(int)date('w', $day_stamp)) { // use sunday colors $css_class = "extcal_sundaycell"; $link_class = $num_events?"extcal_busylink":"extcal_sundaylink"; $hlColor = $sundayclrHl; $regColor = $sundayclr; } else { // use regular day colors $css_class = "extcal_daycell"; $link_class = $num_events?"extcal_busylink":"extcal_daylink"; $hlColor = $weekdayclrHl; $regColor = $weekdayclr; } $params = array( '{DAY}' => $i + $row, '{URL_TARGET_DATE}' => $url_target_date, '{DAY_CLASS}' => $css_class, '{DAY_LINK_CLASS}' => $link_class, '{CELL_CONTENT}' => sprintf($lang_mini_cal['num_events'],$num_events), '{BG_COLOR}' => $regColor, '{HOVER_BG_COLOR}' => $hlColor, '{DATE_STRING}' => $date_string ); echo template_eval($day_cell_row, $params); } } echo $day_cell_footer_row; } if(!$CONFIG_EXT['add_event_view'] || !has_priv('add') ) template_extract_block($footer_row, 'add_event_row'); $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=event&event_mode=add" ); $params = array( '{ADD_EVENT_URL}' => $sef_href , '{ADD_EVENT_TITLE}' => $lang_mini_cal['post_event'] ); echo template_eval($footer_row, $params); if(!$extcal_code_insert) { //$extcal_code_insert = 1; echo $inline_style_row; } } function theme_cats_list(&$results, $stats_string) { global $template_cats_list, $lang_cats_view, $today, $lang_date_format; $header_row = template_extract_block($template_cats_list, 'info_row'); $result_row = template_extract_block($template_cats_list, 'result_row'); $stats_row = template_extract_block($template_cats_list, 'stats_row'); $today_date = ucwords(strftime($lang_date_format['full_date'], mktime(0,0,0,$today['month'],$today['day'],$today['year']))); starttable('100%', $lang_cats_view['section_title'], 3, '', $today_date); $params = array( '{CAT_NAME}' => $lang_cats_view['cat_name'], '{TOTAL_EVENTS}' => $lang_cats_view['total_events'], '{UPCOMING_EVENTS}' => $lang_cats_view['upcoming_events'] ); echo template_eval($header_row, $params); foreach($results as $result){ $params = array( '{CAT_ID}' => $result['cat_id'], '{LINK}' => $result['link'], '{CAT_NAME}' => $result['cat_name'], '{CAT_DESC}' => $result['description'], '{BG_COLOR}' => $result['color'], '{TOTAL_EVENTS}' => $result['total_events'], '{UPCOMING_EVENTS}' => $result['upcoming_events'] ); echo template_eval($result_row, $params); } $params = array( '{STATS}' => $stats_string ); echo template_eval($stats_row, $params); endtable(); } function theme_search_results(&$results, $rows) { global $template_search_results, $lang_event_search_data; global $CONFIG_EXT; $search_row = template_extract_block($template_search_results, 'search_row'); $no_results_row = template_extract_block($template_search_results, 'no_results_row'); $header_row = template_extract_block($template_search_results, 'info_row'); $result_row = template_extract_block($template_search_results, 'result_row'); $stats_row = template_extract_block($template_search_results, 'stats_row'); if(count($_POST)) { starttable('100%', $lang_event_search_data['search_results'], 3); $params = array( '{NO_RESULTS}' => $lang_event_search_data['no_results'] ); if(!$rows) echo template_eval($no_results_row, $params); else { $params = array( '{SEARCH_RESULTS}' => sprintf($lang_event_search_data['stats_string1'],(int)$rows), '{CATEGORY}' => $lang_event_search_data['category_label'], '{DATE}' => $lang_event_search_data['date_label'] ); echo template_eval($header_row, $params); foreach($results as $result){ $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'].'&extmode=cat&cat_id='.$result['cat_id'] ); $params = array( '{SEARCH_TITLE}' => $result['search_title'], '{SEARCH_LNK}' => $result['search_link'], '{SEARCH_DESC}' => $result['search_desc'], '{CAT_ID}' => $result['cat_id'], '{CAT_NAME}' => $result['cat_name'], '{CAT_LINK}' => $sef_href, '{DATE}' => $result['date'] ); echo template_eval($result_row, $params); } $params = array( '{STATS}' => sprintf($lang_event_search_data['stats_string2'],(int)$rows, 1), ); echo template_eval($stats_row, $params); } } else starttable('100%', $lang_event_search_data['section_title'], 3); $keyword = (isset($_POST["extcal_search"]) && !empty($_POST["extcal_search"])) ?$_POST["extcal_search"]:$lang_event_search_data['search_caption']; $button = (isset($_POST["extcal_search"]) && !empty($_POST["extcal_search"])) ?$lang_event_search_data['search_again']:$lang_event_search_data['search_button']; $params = array( '{KEY_VAL}' => $keyword, '{KEY_DESC}' => $lang_event_search_data['search_caption'], '{SUBMIT}' => $button ); echo template_eval($search_row, $params); endtable(); echo "
"; } function theme_user_profile($target, $profile_info) { /* Display user form */ global $CONFIG_EXT, $template_user_profile_view, $THEME_DIR, $errors, $lang_user_profile_data, $lang_general; starttable("100%", $lang_user_profile_data['section_title'],3); $user_website = str_replace("http://","",$profile_info['user_website']); $user_website = !empty($user_website)?"".$user_website."":""; $params = array( '{TARGET}' => $target, '{USER_ID}' => $profile_info['user_id'], '{PAGE_URL}' => $target, '{ACCOUNT_INFO_CAPTION}' => $lang_user_profile_data['account_info_label'], '{USER_NAME_LABEL}' => $lang_user_profile_data['user_name'], '{USER_NAME_VAL}' => $profile_info['username'], '{USER_EMAIL_LABEL}' => $lang_user_profile_data['user_email'], '{USER_EMAIL_VAL}' => $profile_info['email'], '{USER_GROUP_LABEL}' => $lang_user_profile_data['group_label'], '{USER_GROUP_VAL}' => $profile_info['group_name'], '{OTHER_DETAILS_CAPTION}' => $lang_user_profile_data['other_details_label'], '{USER_FNAME_LABEL}' => $lang_user_profile_data['full_name'], '{USER_FNAME_VAL}' => $profile_info['firstname']." ".$profile_info['lastname'], '{USER_WEBSITE_LABEL}' => $lang_user_profile_data['user_website'], '{USER_WEBSITE_VAL}' => $user_website, '{USER_LOCATION_LABEL}' => $lang_user_profile_data['user_location'], '{USER_LOCATION_VAL}' => $profile_info['user_location'], '{USER_OCCUPATION_LABEL}' => $lang_user_profile_data['user_occupation'], '{USER_OCCUPATION_VAL}' => $profile_info['user_occupation'], '{EDIT_PROFILE}' => $lang_user_profile_data['edit_profile'] ); echo template_eval($template_user_profile_view, $params); endtable(); } function theme_admin_events(&$results, $rows, $section_title, $filter=0) { global $CONFIG_EXT, $template_admin_events, $lang_event_admin_data, $THEME_DIR; $filter_row = template_extract_block($template_admin_events, 'filter_row'); $noevents_row = template_extract_block($template_admin_events, 'noevents_row'); $header_row = template_extract_block($template_admin_events, 'info_row'); $result_row = template_extract_block($template_admin_events, 'result_row'); $stats_row = template_extract_block($template_admin_events, 'stats_row'); $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=add" ); starttable("100%",$section_title,5,"", "".$lang_event_admin_data['add_event'].""); // generate filter options for event list select menu $event_filter_options = ''; for ($i = 0;$i\n"; } $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'].'&extmode=event' ); $params = array( '{FILTER_LINK}' => $sef_href, '{EVENTS_FILTER_LABEL}' => $lang_event_admin_data['events_filter_label'], '{EVENTS_FILTER_OPTIONS}' => $event_filter_options ); echo template_eval($filter_row, $params); $params = array( '{NO_EVENTS}' => $lang_event_admin_data['no_events'] ); if(!$rows) echo template_eval($noevents_row, $params); else { $params = array( '{EVENT_STAT}' => sprintf($lang_event_admin_data['stats_string1'],$rows), '{DATE}' => $lang_event_admin_data['date_label'], '{ACTION}' => $lang_event_admin_data['actions_label'] ); echo template_eval($header_row, $params); foreach($results as $result){ $result_row1 = $result_row; $recur_ext = $result['event_recur_type']?"recur-":""; $status_icon = $result['event_status']?$THEME_DIR."/images/icon-".$recur_ext." event-active.gif":$THEME_DIR."/images/icon-".$recur_ext."event-inactive.gif"; $params = array( '{EVENT_ID}' => $result['event_id'], '{EVENT_TITLE}' => $result['event_title'], '{EVENT_LNK}' => $result['event_link'], '{EVENT_DESC}' => $result['event_desc'], '{ADMIN_EDIT_EVENT_LINK}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=edit&extid=".$result['event_id'] ), '{ADMIN_APPROVE_EVENT_LINK}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=apr&extid=".$result['event_id'] ), '{ADMIN_DELETE_EVENT_LINK}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=del&extid=".$result['event_id'] ), '{STATUS}' => $result['event_status']?addslashes($lang_event_admin_data['active_label']):addslashes($lang_event_admin_data['not_active_label']), '{STATUS_ICON}' => $status_icon, '{PICTURE}' => $result['event_picture']?"".addslashes($lang_event_admin_data[":"", '{CAT_ID}' => $result['cat_id'], '{CAT_NAME}' => $result['cat_name'], '{BG_COLOR}' => $result['color'], '{DATE}' => $result['date'], '{EDIT}' => $lang_event_admin_data['edit_event'], '{APPROVE}' => $lang_event_admin_data['auto_approve'], '{DELETE}' => $lang_event_admin_data['delete_event'], '{DEL_MSG}' => $lang_event_admin_data['delete_confirm'] ); if($result['event_status']) template_extract_block($result_row1, 'approve_row'); echo template_eval($result_row1, $params); } } $params = array( '{STATS}' => sprintf($lang_event_admin_data['stats_string2'],$rows,1) ); echo template_eval($stats_row, $params); endtable(); echo "
"; } function theme_admin_cats(&$results, $stats) { global $template_admin_cats, $THEME_DIR, $lang_cat_admin_data; $header_row = template_extract_block($template_admin_cats, 'info_row'); $result_row = template_extract_block($template_admin_cats, 'result_row'); $stats_row = template_extract_block($template_admin_cats, 'stats_row'); $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=add" ); starttable("100%",$lang_cat_admin_data['section_title'],5,"","".$lang_cat_admin_data['add_cat'].""); $params = array( '{CATS_STAT}' => sprintf($lang_cat_admin_data['stats_string1'],$stats['total_cats']), '{EVENTS}' => $lang_cat_admin_data['events_label'], '{STATUS}' => $lang_cat_admin_data['status_label'], '{VISIBILITY}' => $lang_cat_admin_data['visibility'], '{ACTION}' => $lang_cat_admin_data['actions_label'] ); echo template_eval($header_row, $params); foreach($results as $result){ //$auto_approve_list = ($result['options']& 1)?$lang_cat_admin_data['users_label']:""; //$comma = empty($auto_approve_list)?"":", "; //$auto_approve_list .= ($result['options']& 2)?$comma.$lang_cat_admin_data['admins_label']:""; $params = array( '{BG_COLOR}' => $result['color'], '{CAT_ID}' => $result['cat_id'], '{CAT_LNK}' => $result['cat_link'], '{CAT_NAME}' => $result['cat_name'], '{CAT_DESC}' => $result['cat_desc'], '{PICTURE}' => $result['status']?"".addslashes($lang_cat_admin_data[":"".addslashes($lang_cat_admin_data[", '{VISIBILITY}' => $lang_cat_admin_data['visibility'], '{EDIT}' => $lang_cat_admin_data['edit_cat'], '{DELETE}' => $lang_cat_admin_data['delete_cat'], '{DEL_MSG}' => $lang_cat_admin_data['delete_confirm'] ); echo template_eval($result_row, $params); } $stats_string = sprintf($lang_cat_admin_data['stats_string2'],$stats['active_cats'], $stats['total_cats'], 1); $params = array( '{STATS}' => $stats_string ); echo template_eval($stats_row, $params); endtable(); echo "
"; } function theme_admin_view_event(&$result, $is_popup = false) { global $template_event_view, $database, $my, $lang_event_admin_data, $lang_general, $lang_date_format, $CONFIG_EXT, $REFERER, $THEME_DIR; global $lang_add_event_view; $print_link = $is_popup?"":""; $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=del&extid=".$result['extid'] ); $delete_link = has_priv("delete")?"".$lang_event_admin_data[":""; $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=edit&extid=".$result['extid'] ); $edit_link = has_priv("edit")?"".$lang_event_admin_data[":""; starttable('100%', sprintf($lang_event_admin_data['view_event_name'],$result['title']), 2, '', $print_link.$edit_link.$delete_link ); if( empty($result['contact']) && empty($result['email']) && empty($result['url']) ) template_extract_block($template_event_view, 'contact_row'); $picture = empty($result['picture'])?'':""; if($CONFIG_EXT['time_format_24hours']) $date_mask = $lang_date_format['full_date_time_24hour']; else $date_mask = $lang_date_format['full_date_time_12hour']; $duration_array = datestoduration ($result['start_date'],$result['end_date']); $days_string = $duration_array['days']?$duration_array['days']." ".$lang_general['day']. " ":''; $days_string = $duration_array['days']>1?$duration_array['days']." ".$lang_general['days']. " ":$days_string; $hours_string = $duration_array['hours']?$duration_array['hours']." ".$lang_general['hour']. " ":''; $hours_string = $duration_array['hours']>1?$duration_array['hours']." ".$lang_general['hours']. " ":$hours_string; $minutes_string = $duration_array['minutes']?$duration_array['minutes']." ".$lang_general['minute']:''; $minutes_string = $duration_array['minutes']>1?$duration_array['minutes']." ".$lang_general['minutes']:$minutes_string; $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=cat&cat_id=".$result['cat'] ); // $result is an associative array, the mf_get_recurrence_info_string expects an object // this is a temporary hack, when someone re-writes this, a more correct fix can be made foreach ($result as $ar_key => $ar_value) { $event->{$ar_key} = $ar_value; } $params = array( '{BACK_LINK}' => $is_popup?"self.close();":"location.href='".$REFERER."'", '{BACK_BUTTON}' => $is_popup?$lang_general['close']:$lang_general['back'], '{PICTURE}' => $picture, '{BG_COLOR}' => $result['color'], '{CAT_NAME}' => $result['cat_name'], '{CAT_LINK}' => "href='".$sef_href."'", '{CAT_DESC}' => $result['cat_desc'], '{EVENT_START_DATE_LABEL}' => $lang_event_admin_data['event_start_date'].":", '{EVENT_DURATION_LABEL}' => $lang_event_admin_data['event_duration'].":", '{EVENT_START_DATE}' => ucwords(strftime($date_mask, strtotime($result['start_date'])). ' ' . date ( "A", strtotime($result->startDate) )), '{EVENT_DURATION}' => $days_string.$hours_string.$minutes_string, '{CONTACT_INFO_LABEL}' => $lang_event_admin_data['contact_info'].":", '{CONTACT_INFO}' => $result['contact'], '{CONTACT_EMAIL_LABEL}' => $lang_event_admin_data['contact_email'].":", '{CONTACT_EMAIL}' => $result['email'], '{CONTACT_URL_LABEL}' => $lang_event_admin_data['contact_url'].":", '{CONTACT_URL}' => $result['link'], '{EVENT_DESC}' => $result['description'], '{EVENT_RECURRENCE_LABEL}' => $lang_add_event_view['repeat_event_label'].":", '{EVENT_RECURRENCE}' => mf_get_recurrence_info_string($event), ); echo template_eval($template_event_view, $params); endtable(); echo "
"; } function theme_main_menu() { global $CONFIG_EXT, $REFERER, $HTTP_SERVER_VARS; global $template_main_menu, $lang_main_menu; static $main_menu = ''; // if ($main_menu != '') return $main_menu; $template_main_menu1 = '
'. $template_main_menu .'
'; if ((!$CONFIG_EXT['add_event_view'] || !has_priv('add'))) template_extract_block($template_main_menu1, 'add_event'); if (!$CONFIG_EXT['cats_view']) template_extract_block($template_main_menu1, 'cat_view'); if (!$CONFIG_EXT['daily_view']) template_extract_block($template_main_menu1, 'daily_view'); if (!$CONFIG_EXT['weekly_view']) template_extract_block($template_main_menu1, 'weekly_view'); if (!$CONFIG_EXT['monthly_view']) template_extract_block($template_main_menu1, 'monthly_view'); if (!$CONFIG_EXT['flyer_view']) template_extract_block($template_main_menu1, 'flyer_view'); if (!$CONFIG_EXT['search_view']) template_extract_block($template_main_menu1, 'search_view'); $param = array( '{URL}' => $CONFIG_EXT['calendar_url'], '{ADD_EVENT_TGT}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=add" ), '{ADD_EVENT_LNK}' => $lang_main_menu['add_event'], '{CAL_VIEW_TGT}' => sefRelToAbs($CONFIG_EXT['calendar_calling_page']."&extmode=cal" ), '{CAL_VIEW_LNK}' => $lang_main_menu['cal_view'], '{FLYER_VIEW_TGT}' => sefRelToAbs($CONFIG_EXT['calendar_calling_page']."&extmode=flat" ), '{FLYER_VIEW_LNK}' => $lang_main_menu['flat_view'], '{WEEKVIEW_TGT}'=> sefRelToAbs($CONFIG_EXT['calendar_calling_page']."&extmode=week" ), '{WEEKVIEW_LNK}'=> $lang_main_menu['weekly_view'], '{DAYVIEW_TGT}' => sefRelToAbs($CONFIG_EXT['calendar_calling_page']."&extmode=day" ), '{DAYVIEW_LNK}' => $lang_main_menu['daily_view'], '{CAT_VIEW_TGT}'=> sefRelToAbs($CONFIG_EXT['calendar_calling_page']."&extmode=cats" ), '{CAT_VIEW_LNK}'=> $lang_main_menu['categories_view'], '{SEARCH_TGT}'=> sefRelToAbs($CONFIG_EXT['calendar_calling_page']."&extmode=extcal_search" ), '{SEARCH_LNK}'=> $lang_main_menu['search_view'] ); $main_menu = template_eval($template_main_menu1, $param); return $main_menu; } ?>
There are no upcoming events currently scheduled.
View Full Calendar
Philosophy
OUR PHILOSOPHY
Our mandate is to provide an Early Childhood Program of excellence in a safe and loving environment. We believe children are a gift from God and as such must be treated with dignity and respect at all times. As our living hope for the future they must be nurtured, guided, validated, and encouraged.

We concur with the Reggio Emilia approach of honouring the whole child. An essential tenet of the Reggio approach is the concept that every child is a creative child, full of potential with a desire and a right to find meaning in their world.

We desire to instill a love for life-long learning, helping children to find joy in the journey. Emphasis is on the process rather than the product. The product of an experience is a mere token of that experience rather than an end in itself.

 
Living Hope Pre-School
Living Hope Pre-School
September 2010 October 2010
Su Mo Tu We Th Fr Sa
Week 35 1 2 3 4
Week 36 5 6 7 8 9 10 11
Week 37 12 13 14 15 16 17 18
Week 38 19 20 21 22 23 24 25
Week 39 26 27 28 29 30