private function render_editor_header() { ?> <p class="updated fade"> <?php $post_title = esc_html($this->job_instance->get_title()); $tm_post_link = '<a id="icl_tm_editor_orig_link" href="' . $this->job_instance->get_url(true) . '">' . $post_title . '</a>'; printf(__('You are translating %s from %s to %s.', 'wpml-translation-management'), $tm_post_link, $this->job_instance->get_source_language_code(true), $this->job_instance->get_language_code(true)); echo '<span style="display: block;margin-top: 20px">' . $this->editor_object->render_copy_from_original_link() . '</span>'; ?> </p> <?php }
private function render_editor_header() { ?> <p class="updated fade"> <?php $tm_post_link = TranslationManagement::tm_post_link($this->original_post->ID); if ($this->is_external_element()) { $tm_post_link = apply_filters('wpml_external_item_link', $tm_post_link, $this->job->original_doc_id, false); } printf(__('You are translating %s from %s to %s.', 'wpml-translation-management'), $tm_post_link, $this->job->from_language, $this->job->to_language); echo '<p>' . $this->editor_object->render_copy_from_original_link() . '</p>'; ?> </p> <?php }