'widget_breadcrumb_navxt', 'description' => __('Adds a breadcrumb trail to your sidebar')); parent::__construct('bcn_widget', 'Breadcrumb NavXT', $ops); } function widget($args, $instance) { extract($args); //If we are on the front page and don't display on the front, return early if($instance['front'] && is_front_page()) { return; } //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['type'] == 'list') { //Display the list output breadcrumb echo ''; } else if($instance['type'] == 'microdata') { 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['type'] = strip_tags($new_instance['type']); $old_instance['linked'] = isset($new_instance['linked']); $old_instance['reverse'] = isset($new_instance['reverse']); $old_instance['front'] = isset($new_instance['front']); return $old_instance; } function form($instance) { $instance = wp_parse_args((array) $instance, array('title' => '', 'type' => 'plain', 'linked' => true, 'reverse' => false, 'front' => false));?>

/>
/>
/>