set_taxonomy('category'); if (isset($params['checkbox_name'])) : $this->checkbox_name = $params['checkbox_name']; endif; } /* FeedWordPress_Walker_Category_Checklist::__construct () */ function set_prefix ($prefix) { $this->prefix = $prefix; } function set_taxonomy ($taxonomy) { $this->taxonomy = $taxonomy; } function start_el (&$output, $category, $depth = 0, $args = array(), $id = 0) { extract($args); if ( empty($taxonomy) ) : $taxonomy = 'category'; endif; if (!is_null($this->checkbox_name)) : $name = $this->checkbox_name; elseif ($taxonomy=='category') : $name = 'post_category'; else : $name = 'tax_input['.$taxonomy.']'; endif; $unit = array(); if (strlen($this->prefix) > 0) : $unit[] = $this->prefix; endif; $unit[] = $taxonomy; $unit[] = $category->term_id; $unitId = implode("-", $unit); $class = in_array( $category->term_id, $popular_cats ) ? ' class="popular-category category-checkbox"' : ' class="category-checkbox"'; $output .= "\n