settings_factory = $settings_factory; $this->unlock_button_ui = $unlock_button_ui; } /** * @return string */ public function render() { $custom_fields_keys = $this->get_meta_keys(); if ( $custom_fields_keys ) { natcasesort( $custom_fields_keys ); } $custom_field_options = array( WPML_IGNORE_CUSTOM_FIELD => __( "Don't translate", 'wpml-translation-management' ), WPML_COPY_CUSTOM_FIELD => __( 'Copy from original to translation', 'wpml-translation-management' ), WPML_COPY_ONCE_CUSTOM_FIELD => __( 'Copy once', 'wpml-translation-management' ), WPML_TRANSLATE_CUSTOM_FIELD => __( 'Translate', 'wpml-translation-management' ) ); ob_start(); ?>
add_query_arg( array( 'show_system_fields' => ! $this->settings_factory->show_system_fields ) ), 'text' => $this->settings_factory->show_system_fields ? __( 'Hide system fields', 'wpml-translation-management' ) : __( 'Show system fields', 'wpml-translation-management' ), ); ?>