Calendar RSS Demo

Integrating Calendar RSS feeds on your website

Central Web Services has written a small PHP library to simplify adding calendar data to your websites. This script requires PHP, but can run on any site, whether hosted by CWS or not. Data is output by calling one or more php functions.

View the code or, to use it on your page, download the library, unzip it, and include it on your PHP page:

<?php require_once('calendar_rss.php'); ?>

The library has 2 basic views; a list view suitable for a News or Headlines section on a web page, and a mini-month view useful for linking back to the main OSU calendar site.

The views output simple HTML (a table, for the mini-month, a definition list for the list view) that can be styled via CSS. See the sample stylesheet for the classes that can be used for styling.

More control over the HTML output is possible; this requires a PHP installation that support XSLT (which includes all CWS hosted sites). See Advanced Formatting for a brief description.

A note on performance:
This library makes use of RSS caching when run on CWS hosted sites; for other sites, it might be a good idea to implement some type of caching. Parsing remote RSS feeds on the fly will noticeably slow down your web pages.

List View

The following list is dynamically generated to show the current week's events pulled from the main ('osu') calendar, using this code:

<?php echo minical_list('osu', 'today', 'week'); ?>

Wednesday, Jun 18th 2008

"Know'st me not by my clothes?"
Since the founding of the University Theatre, donations have been made to the costume shop. These cases contain costume pieces that have been constructed or built (theatre parlance for making and sewing a costume) and “real” clothing that has been donated to the Theatre Department over the decades.

Monday, Jun 23rd 2008

11-week session (Session 1)
See OSU Catalog, Academic Calendar at http://catalog.oregonstate.edu/ChapterDetail.aspx?key=148.
First 4-week session (Session 2)
See OSU Catalog, Academic Calendar at http://catalog.oregonstate.edu/ChapterDetail.aspx?key=148.
8-week session (Session 3)
See OSU Catalog, Academic Calendar at http://catalog.oregonstate.edu/ChapterDetail.aspx?key=148.

Sunday, Jul 6th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
No Tours Available
Unfortunately we do not offer tours on the weekend. Although offices are not open, feel free to walk around our beautiful park-like campus

Monday, Jul 7th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
Campus Tours
50 minute walking tours of campus guided by a current undergraduate student are offered Monday through Friday at 10 am, 11 am, 1 pm, 2 pm and 3 pm throughout the summer. Campus tours leave from 108 Kerr Administration Building. You can pre-register or drop-in. For directions or parking information please contact the Campus Visitor Center, 541-737-2626.
Saturday Academy
When: M, Tu, W, Th, F July 7 - July 11 Time: 1:00pm - 5:00pm Who: 9th - 12th graders From designing new biomaterials to manufacturing nano-sized machines, engineers will have a significant impact on the society of tomorrow. Through laboratory explorations and experiential workshops, discover how an engineer works in the real world. You will engage in hands-on activities relating to different engineering fields to learn about the wide variety of engineering careers and to see how engineers impact the world in many, diverse ways.
CPR/AED for the Professional Rescuer
This two-day class is for the first responder or health care provider. Teaches a variety of skills including adult, child, and infant CPR, one and two rescuer CPR, resuscitation and bag-valve masks, response in special resuscitation sitautions and use of an AED. Class meets M/T, 7/7-7/8, 4:00pm-8:00pm.
Lead Rock Climbing in the Gym
Class continues Mon/Wed 7/7-16. This class teaches lead belaying and climbing on the climbing center routes. Certification is good for one year. We provide all necessary equipment. Prerequisites: Ability to comfortably climb 5.8 on top rope. Two gym sessions.
OSU Jugglers

Tuesday, Jul 8th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
Summer Institute on Research Methodology
The College of Health and Human Sciences at Oregon State University is hosting the Summer Institute on Research Methods that includes an Introductory Course: Multilevel Modeling Using Mplus and an Advanced Course: Latent Growth Curve Modeling Using Mplus. The introductory course is taught by Alan Acock and Lesa Hoffman and the advanced course is taught by Alan Acock, Scott Hofer and Lesa Hoffman. For more information on and to register and reserve accommodations go to http://www.hhs.oregonstate.edu/news-events/hhs_si/ For more information on the College of Health and Human Sciences Methodology Core go to http://www.hhs.oregonstate.edu/methodology/core.html
Campus Tours
50 minute walking tours of campus guided by a current undergraduate student are offered Monday through Friday at 10 am, 11 am, 1 pm, 2 pm and 3 pm throughout the summer. Campus tours leave from 108 Kerr Administration Building. You can pre-register or drop-in. For directions or parking information please contact the Campus Visitor Center, 541-737-2626.
"The Dynamics of Oceanic Transform Faults: Perspectives from Integrated Geochemical-Geodynamical Modeling"
COAS Marine Geology & Geophysics Seminar
Saturday Academy
When: M, Tu, W, Th, F July 7 - July 11 Time: 1:00pm - 5:00pm Who: 9th - 12th graders From designing new biomaterials to manufacturing nano-sized machines, engineers will have a significant impact on the society of tomorrow. Through laboratory explorations and experiential workshops, discover how an engineer works in the real world. You will engage in hands-on activities relating to different engineering fields to learn about the wide variety of engineering careers and to see how engineers impact the world in many, diverse ways.

Wednesday, Jul 9th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
Campus Tours
50 minute walking tours of campus guided by a current undergraduate student are offered Monday through Friday at 10 am, 11 am, 1 pm, 2 pm and 3 pm throughout the summer. Campus tours leave from 108 Kerr Administration Building. You can pre-register or drop-in. For directions or parking information please contact the Campus Visitor Center, 541-737-2626.
Saturday Academy
When: M, Tu, W, Th, F July 7 - July 11 Time: 1:00pm - 5:00pm Who: 9th - 12th graders From designing new biomaterials to manufacturing nano-sized machines, engineers will have a significant impact on the society of tomorrow. Through laboratory explorations and experiential workshops, discover how an engineer works in the real world. You will engage in hands-on activities relating to different engineering fields to learn about the wide variety of engineering careers and to see how engineers impact the world in many, diverse ways.
Inflatable Kayaking
Join the excitement of inflatable kayaking on the North Santiam or McKenzie Rivers. This outing for all skill levels focuses on boating equipment, river reading, and river safety. Fee includes rafting equipment, wet-suit and booties, transportation, and instruction. Class: W, 7/9, 6-7pm, Lower Classroom, Dixon Trip: Sun, 7/13, All Day, McKenzie River
Rafting Trip
Join us for white water rafting on the river. All skill levels focus on boating equipment, river reading, and safety. Fee includes rafting equipment, wetsuit & booties, transportation, guide and instruction. Trip: Sun, 7/13, McKenzie River.

Thursday, Jul 10th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
Summer Institute on Research Methodology
This Institute will review latent growth curve modeling using the Mplus software and feature the extension of these basic models for multivariate outcomes, time-varying predictors, ordered categorical outcomes, and growth mixtures (i.e., group differences in trajectories). Please see our website for additional details regarding registration and fees: http://oregonstate.edu/conferences/summerinstitute/
Campus Tours
50 minute walking tours of campus guided by a current undergraduate student are offered Monday through Friday at 10 am, 11 am, 1 pm, 2 pm and 3 pm throughout the summer. Campus tours leave from 108 Kerr Administration Building. You can pre-register or drop-in. For directions or parking information please contact the Campus Visitor Center, 541-737-2626.
Saturday Academy
When: M, Tu, W, Th, F July 7 - July 11 Time: 1:00pm - 5:00pm Who: 9th - 12th graders From designing new biomaterials to manufacturing nano-sized machines, engineers will have a significant impact on the society of tomorrow. Through laboratory explorations and experiential workshops, discover how an engineer works in the real world. You will engage in hands-on activities relating to different engineering fields to learn about the wide variety of engineering careers and to see how engineers impact the world in many, diverse ways.
Curricular Practical Training (CPT) Workshop
Curricular Practical Training (CPT) authorizes international students on an F-1 visa to work off-campus to complete an internship or practicum experience. This workshop will provide important information about CPT and how to apply for the authorization. Department personnel who would like to learn more about CPT are also invited to attend.

To sign up for a workshop, please call our main office at 541-737-3006 or send a reservation request email. Please include your full name and the date of the workshop you would like to attend in the email. You should receive a confirmation email from our receptionist within three business days. Seating is limited, so sign up early to reserve a place.

Additional Resources:
OSU Jugglers

Friday, Jul 11th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
Summer Institute on Research Methodology
This Institute will review latent growth curve modeling using the Mplus software and feature the extension of these basic models for multivariate outcomes, time-varying predictors, ordered categorical outcomes, and growth mixtures (i.e., group differences in trajectories). Please see our website for additional details regarding registration and fees: http://oregonstate.edu/conferences/summerinstitute/
Campus Tours
50 minute walking tours of campus guided by a current undergraduate student are offered Monday through Friday at 10 am, 11 am, 1 pm, 2 pm and 3 pm throughout the summer. Campus tours leave from 108 Kerr Administration Building. You can pre-register or drop-in. For directions or parking information please contact the Campus Visitor Center, 541-737-2626.
Opening Roads and Reaching Dreams
This camp targets Latino high school students who will learn about career opportunities in engineering, education, natural resources, technology, nutrition, and history and culture. The college admission process will also be discussed. Participants will also engage in team sports.
Saturday Academy
When: M, Tu, W, Th, F July 7 - July 11 Time: 1:00pm - 5:00pm Who: 9th - 12th graders From designing new biomaterials to manufacturing nano-sized machines, engineers will have a significant impact on the society of tomorrow. Through laboratory explorations and experiential workshops, discover how an engineer works in the real world. You will engage in hands-on activities relating to different engineering fields to learn about the wide variety of engineering careers and to see how engineers impact the world in many, diverse ways.

Saturday, Jul 12th 2008

Center for the Humanities Exhibit: Critical Influences
Paintings and prints by two artists, Chi Meredith and Kris Daniels, whose long friendship and mutual critical comments have had an enduring influence on their work.
No Tours Available
Unfortunately we do not offer tours on the weekend. Although offices are not open, feel free to walk around our beautiful park-like campus

'today' could also be a date ('20060425'), or include an offset ('today+6', '20060401+13')

'week' could also be one of 'day' or 'month'

The easiest way to show the current month's events would be:

<?php echo minical_list('osu', 'today', 'month'); ?>

Minimonth

The minicalendar below is dynamically generated, but uses the 'month' interval instead.

<?php echo minical_month('osu','today','month'); ?>

OSU Events Calendar
July 2008
SMTWTFS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

The minical_month() function accepts the same parameters as minical_list().

For an example of how to style the minimonth, see the minimonth.css stylesheet.

If you don't need feedback about current events on the calendar, it's much faster to build the minicalendar without any event data:

<?php echo minical_empty_month('osu','today','month'); ?>

July 2008
SMTWTFS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Advanced Formatting

If the default HTML markup isn't good enough (perhaps you want to show some additional RSS fields, or integrate the calendar data into an page structure), you can control the layout completely by writing an XSL template. Put the XSL template in a file, and pass it into the minical_month function:

<?php echo minical_month('osu','today','week','month_stylesheet.xsl'); ?>

Using the minical_month function, an XSL stylesheet, and any combination of date and range, you can produce your own month, a differently formatted list, or anything else.

A sample XSL stylesheet, for producing a minimonth. Writing XSL is far beyond this page; you should be familiar with XML basics before trying. A web search for XSL tutorial should turn up some useful information.