示例#1
0
        echo $post->post_type;
        ?>
" />
    <?php 
        wp_nonce_field('send_translation_request_nonce', '_icl_nonce_pt_' . $post->ID);
        ?>
    <input type="button" disabled="disabled" id="icl_pt_send" class="button-primary alignright" value="<?php 
        echo esc_html(__('Send to translation', 'wpml-translation-management'));
        ?>
" style="clear: right;"/>
    <br clear="all" />
    <?php 
    } else {
        ?>
    <?php 
        $estimated_cost = sprintf("%.2f", (ICL_Pro_Translation::estimate_word_count($post, $selected_language) + ICL_Pro_Translation::estimate_custom_field_word_count($post->ID, $selected_language)) * 0.09);
        ?>
    <div style="text-align: right;margin:0 5px 5px 0;white-space:nowrap;">
    <?php 
        printf(__('Estimated cost: %s USD', 'wpml-translation-management'), $estimated_cost);
        ?>
<br />
    (<?php 
        echo $sitepress->create_icl_popup_link('http://www.icanlocalize.com/destinations/go?name=cms-cost-estimate&iso=' . $sitepress->get_locale($sitepress->get_admin_language()) . '&src=' . get_option('home'), array('ar' => 1, 'title' => __('Cost estimate', 'wpml-translation-management'))) . __('why estimated?', 'wpml-translation-management');
        ?>
</a>)
    </div>
        
    <br />
    <p><b><?php 
        echo $sitepress->create_icl_popup_link('http://www.icanlocalize.com/destinations/go?name=moreinfo-wp&iso=' . $sitepress->get_locale($sitepress->get_admin_language()) . '&src=' . get_option('home'), array('title' => __('About Our Translators', 'wpml-translation-management'), 'ar' => 1));