PluginProbe
Polylang / 0.3
Polylang v0.3
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / add-term-form.php

add-term-form.php in Polylang 0.3, at add-term-form.php

17 lines 808 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // adds a language select list in the Categories and Post tags admin panels ?>
2 <div class="form-field">
3 <label for="term_lang_choice"><?php _e('Language', 'polylang');?></label>
4 <select name="term_lang_choice" id="term_lang_choice">
5 <option value="0"></option><?php
6 foreach ($listlanguages as $language) {
7 printf("<option value='%s'%s>%s</option>\n", esc_attr($language->term_id), $language == $lang ? ' selected="selected"' : '', esc_attr($language->name));
8 } ?>
9 </select>
10 <p><?php _e('Sets the language', 'polylang');?></p>
11 </div>
12 <div id="term-translations" class="form-field"><?php
13 // adds translation field if we already know the language
14 if (isset($_GET['from_tag']) && isset($_GET['from_lang']) && isset($_GET['new_lang']))
15 include(POLYLANG_DIR.'/term-translations.php');?>
16 </div>
17