Changeset 485227
- Timestamp:
- 01/05/2012 06:52:45 PM (14 years ago)
- Location:
- ical-for-wp-calendar/trunk
- Files:
-
- 2 edited
-
ical-wp-calendar.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ical-for-wp-calendar/trunk/ical-wp-calendar.php
r430931 r485227 4 4 Plugin URI: http://wordpress.org/extend/plugins/ical-for-wp-calendar/ 5 5 Description: Creates an iCal feed for WP Calendar (http://www.faebusoft.ch/webentwicklung/wpcalendar/) at http://your-web-address/?wp-calendar-ical. Based on Gary King's iCal Posts (http://www.kinggary.com/archives/build-an-ical-feed-from-your-wordpress-posts-plugin) and modifications by Jerome (http://capacity.electronest.com/ical-for-ec-event-calendar/). 6 Version: 1. 0.36 Version: 1.1.0 7 7 Author: Robert Kleinschmager 8 8 Author URI: http://kleinschmager.net … … 26 26 include_once(dirname(__FILE__) . "/ical-wp-calendar-admin.php"); 27 27 28 add_action('plugins_loaded','icwpc_check_requirements'); 29 28 30 add_action("admin_menu", "ical_wp_calendar_option_menu_init"); 29 31 add_filter('query_vars', "ical_wp_calendar_filter_query_vars"); 30 32 31 define('ICAL_WP_CALENDAR_QUERY_VARIABLE', 'wp-calendar-ical'); 33 define("ICAL_WP_CALENDAR_QUERY_VARIABLE", "wp-calendar-ical"); 34 define("ICAL_WP_CALENDAR_QUERY_PARAMETER_CATEGORY", "category"); 35 32 36 33 37 … … 109 113 define("DEBUG", true); 110 114 } 115 116 if (isset($_GET[ICAL_WP_CALENDAR_QUERY_PARAMETER_CATEGORY])) 117 { 118 $category_parameter = $_GET[ICAL_WP_CALENDAR_QUERY_PARAMETER_CATEGORY]; 119 } 111 120 112 121 if ( !function_exists('fse_get_events') ) 113 122 { 114 echo "Could not create iCal file, as Plugin WP Calendar is not active or not installed. Contact your site administrator."; 123 echo "Could not create iCal file, as plugin WP Calendar is not active. Contact your wordpress administrator."; 124 exit; 115 125 } 116 126 else … … 128 138 // $args["dateto"] = ... does not need to be defined, so all events in the future will be queried 129 139 $args['datemode'] = 1; // == FSE_DATE_MODE_ALL 130 $args['number'] = 0; // == FSE_DATE_MODE_ALL 131 132 140 $args['number'] = 0; // == FSE_DATE_MODE_ALL 141 } 142 143 if (isset($category_parameter)) 144 { 145 $args['categories'] = array($category_parameter); 133 146 } 134 147 … … 237 250 }//end else if function exists fse_get_events 238 251 } 252 253 function icwpc_check_requirements() { 254 //This works only if WP Calendar is installed (and activated) too - activation is not checked here (waiting for the WP dependency mechanism :) 255 if ( !function_exists('fse_get_events') ) { 256 add_action( 257 'admin_notices', 258 create_function( 259 '', 260 'echo \'<div id="message" class="error"><p>Plugin <strong>iCal for WP Calendar</strong> is activated but <a href="http://wordpress.org/extend/plugins/wp-calendar/">WP Calendar</a> is not installed. iCal for WP Calendar will not produce any iCal feed.</p></div>\';' 261 ) 262 ); 263 return false; 264 } 265 266 return true; 267 } 239 268 ?> -
ical-for-wp-calendar/trunk/readme.txt
r430926 r485227 1 1 === iCal for WP Calendar === 2 2 Contributors: Robert Kleinschmager 3 Tags: ical, wp calendar, ical feed, feed, icalendar, calendar, events, event 3 Tags: ical, wp calendar, ical feed, feed, icalendar, calendar, events, event, category 4 4 Requires at least: 3.0 5 5 Tested up to: 3.2.1 … … 40 40 </ul>` 41 41 42 = How can the list of feeds be limited? = 43 44 By adding 'category=1' to the feed url, you can limit to events, which are asssigned to the (post) category 1. The feed url will then look like 45 46 http://your-web-address/?wp-calendar-ical&category=1 47 42 48 == Changelog == 49 50 = Version 1.1.0 - 05.01.2012 = 51 * added check if WP Calendar is activated 52 * added query parameter 'category' to limit events in the feed 43 53 44 54 = Version 1.0.3 - 30.08.2011 = … … 58 68 == ToDo == 59 69 60 * Add check, if WP Calendar is installed61 * Add warning to settings menu, of WP Calendar is not installed62 70 * Add option, to choose the datemode, when queried the events 63 * Add option, to choose the category / or add this as parameter64 71 * add option, to choose the time method in iCal: UTC (default now), floating or th timezome, which is specified in wordpress itself
Note: See TracChangeset
for help on using the changeset viewer.