本文整理匯總了PHP中TranslationProxy::is_current_service_active_and_authenticated方法的典型用法代碼示例。如果您正苦於以下問題:PHP TranslationProxy::is_current_service_active_and_authenticated方法的具體用法?PHP TranslationProxy::is_current_service_active_and_authenticated怎麽用?PHP TranslationProxy::is_current_service_active_and_authenticated使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TranslationProxy
的用法示例。
在下文中一共展示了TranslationProxy::is_current_service_active_and_authenticated方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: build_content_dashboard_fetch_translations_box
public function build_content_dashboard_fetch_translations_box()
{
if (TranslationProxy::is_current_service_active_and_authenticated()) {
?>
<div id="icl_tm_pickup_wrap">
<div class="icl_cyan_box">
<div id="icl_tm_pickup_wrap_errors" class="icl_tm_pickup_wrap" style="display:none"><p></p></div>
<div id="icl_tm_pickup_wrap_completed" class="icl_tm_pickup_wrap" style="display:none"><p></p></div>
<div id="icl_tm_pickup_wrap_cancelled" class="icl_tm_pickup_wrap" style="display:none"><p></p></div>
<div id="icl_tm_pickup_wrap_error_submitting" class="icl_tm_pickup_wrap" style="display:none"><p></p></div>
<p id="icl_pickup_nof_jobs"></p>
<p><input type="button" class="button-secondary" value="" id="icl_tm_get_translations"/></p>
<p id="icl_pickup_last_pickup"></p>
</div>
</div>
<br clear="all"/>
<?php
wp_nonce_field('icl_pickup_translations_nonce', '_icl_nonce_pickup_t');
wp_nonce_field('icl_populate_translations_pickup_box_nonce', '_icl_nonce_populate_t');
}
}
示例2: build_content_dashboard_fetch_translations_box
public function build_content_dashboard_fetch_translations_box()
{
if (TranslationProxy::is_current_service_active_and_authenticated()) {
$tp_polling_box = new WPML_TP_Polling_Box();
echo $tp_polling_box->render();
}
}