'Image Title', 'description' => 'Add image/product description here.', 'image' => '', 'link' => '', 'more_label' => 'View Details »', 'image_position' => 'before_title', 'image_align' => 'aligncenter', ); function __construct() { $widget_options = array('description' => __('Add an image, advertisement or product with its description and link.', 'wpds') ); $this->WP_Widget('wpdev_image', '» WPDS Image', $widget_options, array( 'width' => 500)); } function widget($args, $instance) { global $theme; extract( $args ); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if($instance['image']) { $image_align = $instance['image_align']; if($instance['image_position'] == 'bottom') { $image_align .= ' inbottom'; } if($instance['link']) { $output_image = ''; } else { $output_image = ''; } } else { $output_image = false; } ?> defaults ); ?>
Image Placement:
Image Alignment: