'widget_breadcrumb_navxt', 'description' => __('Adds a breadcrumb trail to your sidebar')); //We're going to be a bit evil here and do things the PHP5 way parent::__construct('bcn_widget', 'Breadcrumb NavXT', $ops); } function widget($args, $instance) { extract($args); //Manditory before widget junk echo $before_widget; if(!empty($instance['title'])) { echo $before_title . $instance['title'] . $after_title; } //We'll want to switch between the two breadcrumb output types if($instance['list'] == true) { //Display the list output breadcrumb echo ''; } else { //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); } //Manditory after widget junk echo $after_widget; } function update($new_instance, $old_instance) { //Filter out anything that could be invalid $old_instance['title'] = strip_tags($new_instance['title']); $old_instance['list'] = isset($new_instance['list']); $old_instance['linked'] = isset($new_instance['linked']); $old_instance['reverse'] = isset($new_instance['reverse']); return $old_instance; } function form($instance) { $instance = wp_parse_args((array) $instance, array('title' => '', 'list' => false, 'linked' => true, 'reverse' => false));?>

/>
/>
/>