diff -r 53cff4b4a802 -r bde1974c263b web/wp-content/plugins/ajax-calendar/models/widget.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/plugins/ajax-calendar/models/widget.php Wed Feb 03 15:37:20 2010 +0000 @@ -0,0 +1,59 @@ +title = $config['title']; + if (isset ($config['category_id'])) + $this->category_ids = $config['category_id']; + } + + function display ($args) + { + extract ($args); + + echo $before_widget; + + if ($this->title) + echo $before_title.$this->title.$after_title; + + ajax_calendar ($this->category_ids); + + echo $after_widget; + } + + function description () + { + return 'AJAX-powered calendar'; + } + + function config ($config, $pos) + { + ?> + + + + + + + + + +
Title:
Category ID:
+ $data['title'], 'category_id' => $data['category_id']); + } +} + +?> \ No newline at end of file