PluginProbe
Polylang / 0.6
Polylang v0.6
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 / include / add-term-form.php

add-term-form.php in Polylang 0.6, at include/add-term-form.php

22 lines 786 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // adds a language select list in the Categories and Post tags admin panels
3 ?>
4 <div class="form-field">
5 <label for="term_lang_choice"><?php _e('Language', 'polylang');?></label>
6 <select name="term_lang_choice" id="term_lang_choice"><?php
7 if (PLL_DISPLAY_ALL) // for those who want undefined language
8 echo '<option value="0"></option>';
9 foreach ($listlanguages as $language) {
10 printf("<option value='%d'%s>%s</option>\n",
11 esc_attr($language->term_id),
12 $language->slug == $lang->slug ? ' selected="selected"' : '',
13 esc_html($language->name)
14 );
15 } ?>
16 </select>
17 <p><?php _e('Sets the language', 'polylang');?></p>
18 </div>
19 <div id="term-translations" class="form-field"><?php
20 include(PLL_INC.'/term-translations.php'); // adds translation fields ?>
21 </div>
22