__CLASS__, 'description' => __('Display a calendar showing this months posts. (this calendar does not drop lines if there is no title given.)','comicpress') ); $this->WP_Widget(__CLASS__, __('ComicPress Calendar','comicpress'), $widget_ops); } } function widget($args, $instance) { global $post, $wp_query; extract($args, EXTR_SKIP); echo $before_widget; if (!empty($instance)) { extract($instance); } ?>
'', 'small' => '', 'medium' => '', 'large' => '', 'link' => '') ); $thumbnail = strip_tags($instance['thumbnail']); $small = strip_tags($instance['small']); $medium = strip_tags($instance['medium']); $large = strip_tags($instance['large']); $link = $instance['link']; foreach (array( 'thumbnail' => __('Thumbnail URL (178px by 130px):','comicpress'), 'link' => array('label' => __('Add link on thumbnails:','comicpress'), 'after' => '
'), 'small' => __('Wallpaper URL (Small):','comicpress'), 'medium' => __('Wallpaper URL (Medium):','comicpress'), 'large' => __('Wallpaper URL (Large):','comicpress'), ) as $field => $label) { unset($after); if (is_array($label)) { extract($label); } ?>