'Recent Posts', 'posts_number' => '5', 'order_by' => 'none', 'display_title' => 'true', 'display_date' => 'true', 'display_author' => 'true', 'display_content' => 'true', 'display_featured_image' => 'true', 'display_read_more' => 'true', 'content_type' => 'the_excerpt', 'excerpt_length' => '26', 'featured_image_width' => '90', 'featured_image_height' => '60', 'featured_image_align' => 'alignleft', 'filter' => 'recent', 'filter_cats' => '', 'filter_tags' => '' ); $theme->options['widgets_options']['posts'] = is_array($theme->options['widgets_options']['posts']) ? array_merge($themater_posts_defaults, $theme->options['widgets_options']['posts']) : $themater_posts_defaults; add_action('widgets_init', create_function('', 'return register_widget("ThematerPosts");')); class ThematerPosts extends WP_Widget { function __construct() { $widget_options = array('description' => __('Advanced widget for displaying the recent posts or posts from the selected categories or tags.', 'themater') ); $control_options = array( 'width' => 400); $this->WP_Widget('themater_posts', '» Posts with Images', $widget_options, $control_options); } function widget($args, $instance) { global $theme; extract( $args ); $title = apply_filters('widget_title', $instance['title']); ?>
options['widgets_options']['posts'] ); ?>