=== Google Calendar Weekly Timetable === Contributors: Aurimas Kubeldzis Donate link: http://mission.lt/google-calendar-weekly-timetable-wordpress-plugin/donate Tags: google calendar, timetable, schedule, weekly, google, calendar, event, events, Requires at least: 2.9.2 Tested up to: 3.1.1 Stable tag: 0.1.2 Displays Google Calendar(s) as custom styled weekly timetable/schedule in your blog. Easy to manage complex timetables from google calendar. == Description == Parses Google Calendar Feeds for a week and automatically displays them as weekly timetable in a post. Makes it easy to manage complex timetables in centralized control panel. It's easy to split into subtables (for different cities, groups) and make future changes to timetable. Put events on endless repeat in google calendar if there are no plans for changes. = Features = * Automatically forms lines for times that have events on (conserves vertical space compared to usual Google Calendar embedded weekly view). An event also occupies more blocks if appropriate (use rowspan=0 to disable) * Events from multiple Google Calendar feeds can be shown in single timetable and vice versa. * Choose different color for each feed. * Format the style of table easily by making changes to CSS * Options for display of time in 12-hour (PM/AM) or 24-hour time formats. * Start day of week can be chosen (Monday or Sunday). Use start_sunday=1 in shortcode and make sure to specify Sunday as a start date with start="previous Sunday" * Multiple language support * Can specify exactly what 7 days to pick according to strtotime() php function. Using start="previous Monday" (ex.) in shortcode will render current week from Monday to Sunday. Please visit the plugin homepage for how to get started and other help: * [Plugin Homepage](http://mission.lt/google-calendar-weekly-timetable-wordpress-plugin/) == Installation == Please send me any suggestions (bugs/features). Use comments or contact form on plugin homepage. Common plugin installation instructions: Use the automatic installer from within the WordPress administration, or: 1. Download the `.zip` file by clicking on the Download button on the right 1. Unzip the file 1. Upload the `google-calendar-weekly-timetable` directory to your `plugins` directory 1. Go to the Plugins page from within the WordPress administration 1. Click Activate for Google Calendar Events After activation a new Google Calendar Weekly Timetable options menu will appear under Settings. You can now start adding feeds. SHORT INSTRUCTIONS FOR EXPERTS: Copy XML url of public google calendar. In your GCWT wordpress settings Add feed pasting this url in `Feed URL`. Use WP shortcode in post/page of format `[gc-timetable id=" Share this calendar (second tab). Click on Make this calendar public. Save. 2. Again, go to Calendar Settings -> Calendar Details (first tab). Scroll down to calendar address and click on the XML button. COPY the pop-up link. 3. Go back to your wordpress admin panel. Go to Settings -> Google Calendar Weekly Timetable. Click on Add Feed. Name the calendar in `Feed Title` field and PASTE the link from previous step to `Feed URL` field. 4. Change other options if you need to and choose feed color (default is yellow, by accident). Click `Add Feed`. Notice the `Feed ID`. 5. Now go to the post/page that you want to insert the table to. Add shortcode `[gc-timetable id="1"]`. Here "1" means the `Feed ID` that you noticed in previous step is 1. 6. Repeat the steps to add more feeds. Then update the `id="1"` option in your shortcode to the list of IDs you want to add to this particular timetable, separated by commas. For example `[gc-timetable id="1,2,3"]`. Controlling additional options: SHORTCODE OPTIONS * lang="ru" - this will change the names of the weekdays. By default English, Russian and Lithuanian are described in file google-calendar-weekly-timetable/weekdays.txt. You can edit it from Wordpress admin panel. Add language short code followed by colon, followed by name of Monday and all the other weekdays separated by spaces (follow the logic of what's already added). * hour12=1 - To switch between am/pm and military clock use shortcode. Default is 24hour-clock (no need to add anything) * start="previous Monday" - this specifies when is the start day to parse the 7 days (default is today, so it can be middle of week) * start_sunday=1 - Sunday is the first day of the week * rowspan=0 - will turn of the feature of events taking more cells down if start time matches that is enabled by default * append=' H:i' - appends a string to the end of the title and inserts any date/time that you can specify according to date() php function. The timestamp used is the one with the end time of event. STYLE CONTROL: The simpliest way to edit table style is to edit `google-calendar-weekly-timetable/css/gcwt-style.css` file. The table has `id="timetable"` which is inherited by `class="gcwt-table"` class assigned inside `
` tag... so you can edit existing options or add additional using `.gcwt-table #timetable{}`. == Screenshots == 1. Google Calendar Weekly Timetable 2. You can separate calendars to multiple timetables == Changelog == = 0.2 = * New feature: Start day of week can be chosen (Monday or Sunday). Use start_sunday=1 in shortcode and make sure to specify Sunday as a start date with start="previous Sunday" * New feature/fix: Events can now occupy more blocks down if the times match and it doesn't go over other event. Use rowspan=0 shortcode option to disable. * New feature: Can now specify exactly what 7 days to pick according to strtotime() php function. Using start="previous Monday" (ex.) in shortcode will render current week from Monday to Sunday * Added "start time" to table left top cell. Indicating that you have start times on the left column. * Bug fix: Adaptation to some recent google changes concerning https and http = 0.1.2 = * Bug fix: php warnings in case of no events in the feed * Bug fix: Incompatable with Google Calendar Events and other plugins that use SimplePie(GCalendar). This is major code change, most function names changed, also database names. * Bug fix: Background color and some other CSS options don't show up * Bug fix: Table goes over widgets (oversized) * Bug fix: Gets more events than it's supposed to (futher than a week) = 0.1.1 = * Changes to readme.txt. = 0.1 = * Initial release. == Upgrade Notice == = 0.2 = New features. Make sure to have a copy of your custom stylesheet before upgrade. == Frequently Asked Questions == Please visit the [plugin homepage](http://mission.lt/google-calendar-weekly-timetable-wordpress-plugin/) and leave a comment for help, or [contact me](http://mission.lt/google-calendar-weekly-timetable-wordpress-plugin/contact-me) directly.