public function get($key) { switch ($key) { case 'wp_vers': return NULL; case 'plugin_dir': case 'plugin_url': case 'plugin_basename': case 'textdomain_loaded': case 'encoding_converted': case 'theme': case 'theme_root': case 'theme_root_uri': case 'template_dir': case 'template_uri': return $this->{$key}; default: if (!$this->ktai) { return KtaiServices::get($key); } return $this->ktai->get($key); } }
public function show_author_id($comment, $box) { $id = KtaiServices::read_term_id($comment); $author = array(); if (count($id)) { if ($id[0]) { $author[] = sprintf(__('Term ID: %s', 'ktai_style'), esc_attr($id[0])); } if ($id[1]) { $author[] = sprintf(__('USIM ID: %s', 'ktai_style'), esc_attr($id[1])); } if ($id[2]) { $author[] = sprintf(__('Sub ID: %s', 'ktai_style'), esc_attr($id[2])); } if (count($author)) { echo implode('<br />', $author); } else { _e('N/A', 'ktai_style'); } } else { _e('N/A', 'ktai_style'); } }