/** * @param int $site_id * @return int */ private function get_current_term($site_id) { if (empty($_GET['tag_ID'])) { return 0; } return $this->presenter->get_current_term($site_id, (int) $_GET['tag_ID']); }
/** * Render the option tags for the given terms. * * @param int $current_term Currently saved term taxonomy ID. * @param array $terms Term names. * @param int $site_id Blog ID. * * @return void */ private function print_term_options($terms, $current_term, $site_id) { foreach ($terms as $term_taxonomy_id => $term_name) { echo $this->get_option_element($term_taxonomy_id, $term_name, $current_term, $this->presenter->get_relation_id($site_id, $term_taxonomy_id)); } }