source: trunk/www.guidonia.net/wp/wp-content/themes/atahualpa/functions/bfa_calendar_widget.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 783 bytes
Line 
1<?php
2function widget_calendar($args) {
3 extract($args);
4 $options = get_option('widget_calendar');
5 $title = apply_filters('widget_title', $options['title']);
6 echo $before_widget;
7 if ( !empty($title) ) { echo $before_title . $title . $after_title; }
8 echo '<div id="calendar_wrap">'; get_calendar(); echo '</div>';
9 if ( !empty( $title ) ) { echo $after_widget; } else { echo "</div>"; }
10}
11?>
12<?php // unregister old / register new calendar widget
13 $widget_ops = array('classname' => 'widget_calendar', 'description' => __("A calendar of your blog's posts","atahualpa") );
14 unregister_sidebar_widget('calendar', __('Calendar','atahualpa'), 'wp_widget_calendar', $widget_ops);
15 wp_register_sidebar_widget('calendar', __('Calendar','atahualpa'), 'widget_calendar', $widget_ops);
16?>
Note: See TracBrowser for help on using the repository browser.