本文整理匯總了PHP中ICanLocalizeQuery::get_reminders方法的典型用法代碼示例。如果您正苦於以下問題:PHP ICanLocalizeQuery::get_reminders方法的具體用法?PHP ICanLocalizeQuery::get_reminders怎麽用?PHP ICanLocalizeQuery::get_reminders使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ICanLocalizeQuery
的用法示例。
在下文中一共展示了ICanLocalizeQuery::get_reminders方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ICanLocalizeQuery
$iclsettings['setup_wizard_step'] = 2;
$this->save_settings($iclsettings);
break;
case 'toggle_show_translations':
$iclsettings['show_translations_flag'] = @intval(!$iclsettings['show_translations_flag']);
$this->save_settings($iclsettings);
break;
case 'icl_messages':
if (!$this->get_setting('icl_disable_reminders')) {
break;
}
if (!empty($iclsettings['site_id']) && !empty($iclsettings['access_key']) && empty($iclsettings['icl_anonymous_user'])) {
$iclq = new ICanLocalizeQuery($iclsettings['site_id'], $iclsettings['access_key']);
$output = '';
if (isset($_POST['refresh']) && $_POST['refresh'] == 1) {
$reminders = $iclq->get_reminders(true);
} else {
$reminders = $iclq->get_reminders();
}
$count = 0;
foreach ($reminders as $r) {
$message = $r->message;
$message = str_replace('[', '<', $message);
$message = str_replace(']', '>', $message);
$url = $r->url;
$anchor_pos = strpos($url, '#');
if ($anchor_pos !== false) {
$url = substr($url, 0, $anchor_pos);
}
if (false !== strpos($url, '?')) {
$url_glue = '&';