echo ICL_PLUGIN_URL;
    ?>
/res/img/close2.png" width="10" height="10" alt="<?php 
    esc_attr_e('clear', 'sitepress');
    ?>
" title="<?php 
    esc_attr_e('clear search', 'sitepress');
    ?>
"/>
		<?php 
}
?>
		&nbsp;

		<?php 
WPML_Taxonomy_Translation::render_parent_taxonomies_dropdown($this->taxonomy, $this->child_of);
?>


		<input type="submit" class="button-primary" value="<?php 
esc_attr_e('Apply', 'sitepress');
?>
"/>

		<img src="<?php 
echo ICL_PLUGIN_URL . '/res/img/ajax-loader.gif';
?>
" alt="loading" height="16" width="16" class="wpml_tt_spinner"/>

	</form>
	</p>
<?php

$WPML_Translate_Taxonomy = new WPML_Taxonomy_Translation();
$WPML_Translate_Taxonomy->render();
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     $args = array();
     $taxonomy = false;
     $request_post_page = filter_input(INPUT_POST, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_page) {
         $args['page'] = $request_post_page;
     }
     $request_post_perPage = filter_input(INPUT_POST, 'perPage', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_perPage) {
         $args['per_page'] = $request_post_perPage;
     }
     $request_post_taxonomy = filter_input(INPUT_POST, 'taxonomy', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_taxonomy) {
         $taxonomy = $request_post_taxonomy;
     }
     do_action('wpml_st_load_label_menu');
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy);
         $labels = apply_filters('wpml_label_translation_data', false, $taxonomy);
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     remove_all_filters('gettext_with_context', -1000);
     remove_all_filters('gettext', -1000);
     $args = array();
     $taxonomy = false;
     $request_post_page = filter_input(INPUT_POST, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_page) {
         $args['page'] = $request_post_page;
     }
     $request_post_perPage = filter_input(INPUT_POST, 'perPage', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_perPage) {
         $args['per_page'] = $request_post_perPage;
     }
     $request_post_taxonomy = filter_input(INPUT_POST, 'taxonomy', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
     if ($request_post_taxonomy) {
         $taxonomy = $request_post_taxonomy;
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         if (defined('WPML_ST_FOLDER')) {
             $labels = self::get_label_translations($taxonomy);
         } else {
             $labels = false;
         }
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 static function show_terms()
 {
     $taxonomy = isset($_POST['taxonomy']) ? $_POST['taxonomy'] : false;
     $args = array();
     if (!empty($_POST['language'])) {
         $args['languages'] = array($_POST['language']);
     }
     $args['status'] = isset($_POST['status']) ? $_POST['status'] : WPML_TT_TAXONOMIES_ALL;
     $args['search'] = isset($_POST['search']) ? $_POST['search'] : '';
     if (isset($_POST['page'])) {
         $args['page'] = $_POST['page'];
     }
     if (isset($_POST['parent'])) {
         $args['parent'] = $_POST['parent'];
     }
     if (isset($_POST['child_of']) && intval($_POST['child_of']) > 0) {
         $args['child_of'] = $_POST['child_of'];
     }
     $inst = new WPML_Taxonomy_Translation($taxonomy, $args);
     $inst->render();
     exit;
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     $args = array();
     $taxonomy = false;
     if (isset($_POST['page'])) {
         $args['page'] = $_POST['page'];
     }
     if (isset($_POST['perPage'])) {
         $args['per_page'] = $_POST['perPage'];
     }
     if (isset($_POST['taxonomy'])) {
         $taxonomy = $_POST['taxonomy'];
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         $labels = self::get_label_translations($taxonomy);
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 static function show_terms()
 {
     $taxonomy = isset($_POST['taxonomy']) ? $_POST['taxonomy'] : false;
     $args = array();
     if (!empty($_POST['language'])) {
         $args['languages'] = array($_POST['language']);
     }
     $args['status'] = isset($_POST['status']) ? $_POST['status'] : WPML_TT_TAXONOMIES_ALL;
     $args['search'] = isset($_POST['search']) ? $_POST['search'] : '';
     if (isset($_POST['page'])) {
         $args['page'] = $_POST['page'];
     }
     if (isset($_POST['parent'])) {
         $args['parent'] = $_POST['parent'];
     }
     if (isset($_POST['child_of']) && intval($_POST['child_of']) > 0) {
         $args['child_of'] = $_POST['child_of'];
     }
     $inst = new WPML_Taxonomy_Translation($taxonomy, $args);
     ob_start();
     $inst->render();
     $html = ob_get_contents();
     ob_end_clean();
     echo json_encode(array('html' => $html));
     exit;
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     remove_all_filters('gettext_with_context', -1000);
     remove_all_filters('gettext', -1000);
     $args = array();
     $taxonomy = false;
     if (isset($_POST['page'])) {
         $args['page'] = $_POST['page'];
     }
     if (isset($_POST['perPage'])) {
         $args['per_page'] = $_POST['perPage'];
     }
     if (isset($_POST['taxonomy'])) {
         $taxonomy = $_POST['taxonomy'];
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         if (defined('WPML_ST_FOLDER')) {
             $labels = self::get_label_translations($taxonomy);
         } else {
             $labels = false;
         }
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }
 public static function wpml_get_terms_and_labels_for_taxonomy_table()
 {
     global $sitepress;
     $args = array();
     $taxonomy = false;
     $request_post_page = filter_input(INPUT_POST, 'page', FILTER_SANITIZE_NUMBER_INT, FILTER_NULL_ON_FAILURE);
     if ($request_post_page) {
         $args['page'] = $request_post_page;
     }
     $request_post_perPage = filter_input(INPUT_POST, 'perPage', FILTER_SANITIZE_NUMBER_INT, FILTER_NULL_ON_FAILURE);
     if ($request_post_perPage) {
         $args['per_page'] = $request_post_perPage;
     }
     $request_post_taxonomy = filter_input(INPUT_POST, 'taxonomy');
     if ($request_post_taxonomy) {
         $taxonomy = $request_post_taxonomy;
     }
     if ($taxonomy) {
         $terms = WPML_Taxonomy_Translation::get_terms_for_taxonomy_translation_screen($taxonomy, $args);
         $labels = self::get_label_translations($taxonomy);
         $def_lang = $sitepress->get_default_language();
         wp_send_json(array("terms" => $terms, "taxLabelTranslations" => $labels, "defaultLanguage" => $def_lang));
     } else {
         wp_send_json_error();
     }
 }