'abedul_formats',
'description' => __('Use this widget to show one or more of your formatted posts','abedul'),
);
parent::__construct( 'abedul_formats', __('Abedul Formats', 'abedul'), $widget_ops );
}
/**
* Outputs the content of the widget
*
* @param array $args
* @param array $instance
*/
public function widget( $args, $instance ) {
// outputs the content of the widget
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
// Puts the selected post formats in an array that can be used in the query.
$terms = array();
foreach ($this->formats as $key => $value) {
if (!empty($instance['formats'][$value])) {
$value = $instance['formats'][$value];
$terms[]= 'post-format-'.$value;
}
}
//echo '