=== 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 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) * Events from multiple Google Calendar feeds can be shown in single timetable. * Choose different color for each feed. * Format the table easily by making changes to CSS * Options for display of time in 12-hour (PM/AM) or 24-hour time formats. * Sunday is hidden to conserve space unless events are present. * Multiple language support 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 The shortcode has 2 additional options: language and 12/24 hour clock. LANGUAGE: To switch language add option `lang="ru"` (for Russian). 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). 12/24 HOUR CLOCK: To switch between am/pm and military clock use shortcode `hour12=true` (for 12 hour clock). Default is 24hour-clock (no need to add anything) So with these options added our shortcode would look something like this `[gc-timetable id="1,2,3" lang="pl" hour12=true]` (again, assuming you described Polish in weekdays.txt file) 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.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.1.2 = This is major bug fixing release. The database names had to be changed so you either gonna have to re-add the feeds or change the database names. I recommend readding and deleting old tables (because otherwise, by renaming you will have unnecessary options in the tables). In the first case you still might wanna delete old tables. Here's how: Login into your phpadmin (should be something like yourserver.com/MyAdmin), use the same the database username and password you provided in wp-config.php when you installed wordpress. Select the your_wordpress_database on the left upper corner and press search (one of the tabs). Look for "gce_" in all tables. Should be 2 matches: gce_general and gce_options. If you want to recover your feeds - rename the beginning from gce_ to gcwt_, so gce_general to gcwt_general and gce_options to gcwt_options. If you want to readd your feeds - delete these tables (the plugin will create new ones). If you used custom stylesheet field, the old .css won't work. You gonna make changes again. Sorry about that. I was working to fix the styling. == 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.