'ebs_custom_widget', 'description' => __('EBS widget to show EBS/other shortcodes in sidebar.','ebs')); $control_ops = array('id_base' => 'ebsp-widget'); $this->WP_Widget('ebsp-widget', __('EBS Shortcode Compiler','ebs'), $widget_ops, $control_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $ebs_content = $instance['ebs_content']; echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } if ($ebs_content) { ?>
'EBS Shortcode', 'ebs_content' => ''); $instance = wp_parse_args((array) $instance, $defaults); ?>