/**
* @return bool
*/
public function print_table()
{
$sites = $this->presenter->get_site_languages();
print $this->presenter->get_nonce_field();
$this->print_style();
?>
<table class="mlp_term_selections">
<?php
foreach ($sites as $site_id => $language) {
$key = $this->presenter->get_key_base($site_id);
$label_id = $this->get_label_id($key);
$terms = $this->presenter->get_terms_for_site($site_id);
$current_term = $this->get_current_term($site_id);
?>
<tr>
<th>
<label for="<?php
print $label_id;
?>
"><?php
print $language;
?>
</label>
</th>
<td>
<select name="<?php
print $key;
?>
" id="<?php
print $label_id;
?>
">
<option value="0" class="mlp_empty_option"><?php
esc_html_e('No translation', 'multilingualpress');
?>
</option>
<?php
foreach ($terms as $term_id => $term_name) {
print $this->get_option_element($term_id, $term_name, $current_term);
}
?>
</select>
</td>
</tr>
<?php
}
?>
</table>
<?php
return TRUE;
}