'Info Box Title', 'description' => 'Add your description here.', 'link' => '', 'more_label' => 'More »', 'image' => '', 'image_position' => 'before_title', 'image_align' => 'aligncenter', 'link_title' => 'true', 'link_description' => '', 'link_image' => '' ); $theme->options['widgets_options']['infobox'] = is_array($theme->options['widgets_options']['infobox']) ? array_merge($themater_infobox_defaults, $theme->options['widgets_options']['infobox']) : $themater_infobox_defaults; add_action('widgets_init', create_function('', 'return register_widget("ThematerInfoBox");')); class ThematerInfoBox extends WP_Widget { function __construct() { $widget_options = array('description' => __('Highlight a product or service with a custom image.', 'themater') ); $control_options = array( 'width' => 480); $this->WP_Widget('themater_infobox', '» Info Box', $widget_options, $control_options); } function widget($args, $instance) { global $theme; extract( $args ); $title = apply_filters('widget_title', $instance['title']); if($instance['image']) { $image_align = $instance['image_align']; if($instance['image_position'] == 'bottom') { $image_align .= ' inbottom'; } if($instance['link_image'] && $instance['link']) { $output_image = ''; } else { $output_image = ''; } } else { $output_image = false; } ?> options['widgets_options']['infobox'] ); ?>
Image Options: Position:   Float:
Add Links To: value="true" /> Title
value="true" /> Description
value="true" /> Image