当前位置: 首页>>代码示例>>PHP>>正文


PHP TranslationManagement::tm_post_link方法代码示例

本文整理汇总了PHP中TranslationManagement::tm_post_link方法的典型用法代码示例。如果您正苦于以下问题:PHP TranslationManagement::tm_post_link方法的具体用法?PHP TranslationManagement::tm_post_link怎么用?PHP TranslationManagement::tm_post_link使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TranslationManagement的用法示例。


在下文中一共展示了TranslationManagement::tm_post_link方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

        ?>
>
                <td scope="row">
                    <input type="checkbox" value="<?php 
        echo $doc->post_id;
        ?>
" name="iclpost[]" <?php 
        if (isset($_GET['post_id']) || is_array($icl_selected_posts) && in_array($doc->post_id, $icl_selected_posts)) {
            echo 'checked="checked"';
        }
        ?>
 />
                </td>
                <td scope="row" class="post-title column-title">
                    <?php 
        echo TranslationManagement::tm_post_link($doc->post_id);
        ?>
                    <?php 
        $wc = TranslationManagement::estimate_word_count($doc, $icl_translation_filter['from_lang']);
        $wc += TranslationManagement::estimate_custom_field_word_count($doc->post_id, $icl_translation_filter['from_lang']);
        ?>
                    <span id="icl-cw-<?php 
        echo $doc->post_id;
        ?>
" style="display:none"><?php 
        echo $wc;
        $wctotal += $wc;
        ?>
</span>
                    <span class="icl-tr-details">&nbsp;</span>
                    <div class="icl_post_note" id="icl_post_note_<?php 
开发者ID:Calraiser,项目名称:flux,代码行数:31,代码来源:dashboard.php

示例2:

            ?>
" name="icl_translation_id[]" />
                <?php 
        } else {
            ?>
                &nbsp;
                <?php 
        }
        ?>
            </td>            
            <td width="60"><?php 
        echo $job->job_id;
        ?>
</td>
            <td><?php 
        echo TranslationManagement::tm_post_link($job->original_doc_id, $job->post_title);
        ?>
</td>
            <td><?php 
        echo $job->lang_text;
        ?>
</td>            
            <td><span id="icl_tj_job_status_<?php 
        echo $job->job_id;
        ?>
"><?php 
        echo $iclTranslationManagement->status2text($job->status);
        ?>
</span>
                <?php 
        if ($job->needs_update) {
开发者ID:ascarius,项目名称:wordpress-bootstrap,代码行数:31,代码来源:jobs.php

示例3: display

    public function display($odd_row)
    {
        global $iclTranslationManagement;
        $alternate = $odd_row ? 'class="alternate"' : '';
        $current_document = $this->data;
        $count = $this->get_word_count();
        $post_actions = array();
        $post_actions_link = "";
        $element_type = $this->get_type_prefix();
        $check_field_name = $element_type;
        $post_title = $this->get_title();
        $post_view_link = '';
        $post_edit_link = '';
        if (!$this->is_external_type()) {
            $post_view_link = TranslationManagement::tm_post_link($current_document->ID, __('View', 'wpml-translation-management'), true);
            $post_edit_link = TranslationManagement::tm_post_link($current_document->ID, __('Edit', 'wpml-translation-management'), true, true, true, true);
        }
        $post_view_link = apply_filters('wpml_document_view_item_link', $post_view_link, __('View', 'wpml-translation-management'), $current_document, $element_type, $this->get_type());
        if ($post_view_link) {
            $post_actions[] = "<span class='view'>" . $post_view_link . "</span>";
        }
        $post_edit_link = apply_filters('wpml_document_edit_item_link', $post_edit_link, __('Edit', 'wpml-translation-management'), $current_document, $element_type, $this->get_type());
        if ($post_edit_link) {
            $post_actions[] = "<span class='edit'>" . $post_edit_link . "</span>";
        }
        if ($post_actions) {
            $post_actions_link .= '<div class="row-actions">' . implode(' | ', $post_actions) . '</div>';
        }
        ?>
		<tr id="row_<?php 
        echo sanitize_html_class($current_document->ID);
        ?>
" data-word_count="<?php 
        echo $count;
        ?>
" <?php 
        echo $alternate;
        ?>
>
			<td scope="row">
				<?php 
        $checked = checked(true, isset($_GET['post_id']) || $this->selected, false);
        ?>
				<input type="checkbox" value="<?php 
        echo $current_document->ID;
        ?>
" name="<?php 
        echo $check_field_name;
        ?>
[<?php 
        echo $current_document->ID;
        ?>
][checked]" <?php 
        echo $checked;
        ?>
 />
				<input type="hidden" value="<?php 
        echo $element_type;
        ?>
" name="<?php 
        echo $check_field_name;
        ?>
[<?php 
        echo $current_document->ID;
        ?>
][type]"/>
			</td>
			<td scope="row" class="post-title column-title">
				<?php 
        echo esc_html($post_title);
        echo $post_actions_link;
        ?>
				<div class="icl_post_note" id="icl_post_note_<?php 
        echo $current_document->ID;
        ?>
">
					<?php 
        $note = '';
        if (!$current_document->is_translation) {
            $note = get_post_meta($current_document->ID, '_icl_translator_note', true);
            $this->note_text = '';
            if ($note) {
                $this->note_text = __('Edit note for the translators', 'wpml-translation-management');
                $this->note_icon = 'edit_translation.png';
            } else {
                $this->note_text = __('Add note for the translators', 'wpml-translation-management');
                $this->note_icon = 'add_translation.png';
            }
        }
        ?>
					<label for="post_note_<?php 
        echo $current_document->ID;
        ?>
">
						<?php 
        _e('Note for the translators', 'wpml-translation-management');
        ?>
					</label>
                    <textarea id="post_note_<?php 
        echo $current_document->ID;
//.........这里部分代码省略.........
开发者ID:Junaid-Farid,项目名称:gocnex,代码行数:101,代码来源:wpml-tm-dashboard-document-row.class.php

示例4: apply_filters

            echo $job->lang_text;
            ?>
</td>
                <td nowrap="nowrap">
                    <?php 
            if ($job->original_doc_id) {
                ?>
						<a class="button-secondary" href="<?php 
                echo apply_filters('icl_job_edit_url', admin_url('admin.php?page=' . WPML_TM_FOLDER . '/menu/translations-queue.php&job_id=' . $job->job_id), $job->job_id);
                ?>
"><?php 
                _e('edit', 'wpml-translation-management');
                ?>
</a>
					<?php 
                echo TranslationManagement::tm_post_link($job->original_doc_id, __('View original', 'wpml-translation-management'), true);
            }
            ?>
                </td>
                <td><?php 
            if ($job->translator_id && $job->status == ICL_TM_WAITING_FOR_TRANSLATOR) {
                ?>
<div class="icl_tj_your_job" title="<?php 
                echo esc_html(__('This job is assigned specifically to you.', 'wpml-translation-management'));
                ?>
">!</div><?php 
            }
            ?>
</td>
                <td><?php 
            echo $iclTranslationManagement->status2text($job->status);
开发者ID:FR073N,项目名称:itescia,代码行数:31,代码来源:translations-queue.php

示例5: do_action

    
    <?php 
do_action('icl_tm_messages');
?>
    <?php 
$opost = get_post($job->original_doc_id);
if (!empty($opost) && ($opost->post_status == 'draft' || $opost->post_status == 'private') && $opost->post_author != $current_user->data->ID) {
    $elink1 = '<i>';
    $elink2 = '</i>';
} else {
    $elink1 = sprintf('<a href="%s">', get_permalink($job->original_doc_id));
    $elink2 = '</a>';
}
?>
    <p class="updated fade"><?php 
printf(__('You are translating %s from %s to %s.', 'wpml-translation-management'), TranslationManagement::tm_post_link($job->original_doc_id), $job->from_language, $job->to_language);
?>
</p>
    
    <?php 
if ($translators_note = get_post_meta($job->original_doc_id, '_icl_translator_note', true)) {
    ?>
    <i><?php 
    _e('Note for translator', 'wpml-translation-management');
    ?>
</i><br />
    <div class="icl_cyan_box">        
        <?php 
    echo $translators_note;
    ?>
    </div>
开发者ID:GeographicaGS,项目名称:gis-coast,代码行数:30,代码来源:translation-editor.php

示例6: render_editor_header

    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 
    }
开发者ID:ryuqing,项目名称:cake,代码行数:16,代码来源:translation-editor.php


注:本文中的TranslationManagement::tm_post_link方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。