}?> This page is no longer available.



Connect for each (var footerNetwork in footerNetworks) { if (footerNetwork.url != null && footerNetwork.url.indexOf('http://') == -1) { footerNetwork.url = 'http://' + footerNetwork.url; } ?> } ?>

var now = new Date(); var dateCond = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate(); var cond1 = new Condition('Start', '>', dateCond); var events = salsa.getObjects('salsa.event', [cond1], 'Start ASC', 4); var footerEvents = new Array(); var date = new Date(); var x = 0; // only display upcoming events for each (var event in events) { var eventDate = String(salsa.getDateString(event.Start)).split("-"); var eventYear = eventDate[0]; var eventMonth = eventDate[1]; var tempDay = String(eventDate[2]).split(" "); var eventDay = tempDay[0]; if (parseInt(eventYear, 10) == parseInt(date.getFullYear())) { if (parseInt(eventMonth, 10) == parseInt(date.getMonth())) { if (parseInt(eventDay, 10) >= parseInt(date.getDate())) { footerEvents[x] = event; x++; } } else if (parseInt(eventMonth, 10) >= parseInt(date.getMonth())) { footerEvents[x] = event; x++; } } else if (parseInt(eventYear, 10) >= parseInt(date.getFullYear())) { footerEvents[x] = event; x++; } } // end for if (footerEvents.length > 0 && eventsActive) { // strip tags for each (var footerEvent in footerEvents) { //footerEvent.description = '' + salsa.stripTags(footerEvent.description); } ?>} // eoi footerEvents // determine if the blog is disabled cond1 = new Condition('type', '=', 'blog'); var blogs = salsa.getObjects('wfc.box.page', [cond1]); var blog = blogs[0]; // determine if the blogroll is disabled cond1 = new Condition('type', '=', 'blogroll'); blogrolls = salsa.getObjects('wfc.box.page', [cond1]); var blogroll = blogrolls[0]; if (blog.active == 1) { if (salsa.getRequestURL().indexOf('blog') != -1 && blogroll.active == 0) { } else { ?> var footerEntries = salsa.getObjects('salsa.blog_entry', [], 'Display_Date DESC', 4); var footerRollEntries = salsa.getObjects('wfc.box.blogroll', [], 'Date_Created DESC', 3); if (footerEntries.length > 0 || (footerRollEntries.length > 0 && salsa.getRequestURL().indexOf('blog') != -1)) { ?>} // eoi footerEntries } // eoi blogrolls[0].active } // eoi blogs[0].active == 1 // determine if press releases are disabled cond1 = new Condition('type', '=', 'press_release'); pages = salsa.getObjects('wfc.box.page', [cond1]); if (pages[0].active == 1) { ?> var footerReleases = salsa.getObjects('wfc.box.press_release', null, 'Date_Created DESC', 4); // strip tags for each (var footerRelease in footerReleases) { footerRelease.body = '' + salsa.stripTags(footerRelease.body); } if (footerReleases.length > 0) { ?>} // eoi footerReleases } // eoi pages[0].active == 1 // determine if the photo gallery is disabled cond1 = new Condition('type', '=', 'photo'); pages = salsa.getObjects('wfc.box.page', [cond1]); if (pages[0].active == 1) { ?> cond1 = new Condition('show_hide', '=', '1'); cond2 = new Condition('path', 'IS NOT', 'NULL'); var photos = salsa.getObjects('salsa.photo', [cond1, cond2], 'photo_KEY DESC', 3); ?>} // determine if social networks are disabled cond1 = new Condition("type", "=", "social_network"); pages = salsa.getObjects("wfc.box.page", [cond1]); if (pages[0].active == 1) { ?> var footerNetworks = salsa.getObjects("wfc.box.social_network"); if (footerNetworks.length > 0) { ?>} // eoi footerNetworks } // eoi active[0] == 1 ?>