'widget_post_formats', 'description' => __( "A list or dropdown of Post Formats" ) ); $this->WP_Widget('ambrosite-post-formats', __('Post Formats'), $widget_ops); } function widget( $args, $instance ) { extract( $args ); $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Post Formats' ) : $instance['title'], $instance, $this->id_base); $c = $instance['count'] ? '1' : '0'; $d = $instance['dropdown'] ? '1' : '0'; $f = $instance['format_id'] ? '1' : '0'; echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; if ( $d ) { ?> '') ); $title = !empty($instance['title']) ? esc_attr( $instance['title'] ) : 'Post Formats'; $tooltip = !empty($instance['tooltip']) ? esc_attr( $instance['tooltip'] ) : 'View all %format posts'; $count = isset($instance['count']) ? (bool) $instance['count'] : false; $dropdown = isset( $instance['dropdown'] ) ? (bool) $instance['dropdown'] : false; $format_id = isset( $instance['format_id'] ) ? (bool) $instance['format_id'] : false; ?>

/>
/>
/>