bool .. whether or not to show the taxonomy selector */ public function __construct( $taxonomy = '', $args = array() ) { $this->tax_selector = isset( $args['taxonomy_selector'] ) ? $args['taxonomy_selector'] : true; $this->taxonomy = $taxonomy ? $taxonomy : false; if ( $taxonomy ) { $this->taxonomy_obj = get_taxonomy( $taxonomy ); } } /** * Echos the HTML that serves as an entry point for the taxonomy translation * screen and enqueues necessary js. */ public function render() { WPML_Taxonomy_Translation_Table_Display::enqueue_taxonomy_table_js(); $output = '
'; if ( $this->taxonomy ) { $output .= ''; } if ( ! $this->tax_selector ) { $output .= ''; } if ( $this->tax_selector ) { $output .= '

' . __( 'Taxonomy Translation', 'sitepress' ) . '

'; $output .= '
'; } $output .= '
'; $output .= '
'; $output .= '
'; do_action( 'icl_menu_footer' ); $output .= apply_filters( 'wpml_taxonomy_translation_bottom', $html = '', $this->taxonomy, $this->taxonomy_obj ); echo $output . '
'; } }