本文整理匯總了PHP中es_cls_dbquery::es_view_subscriber_widget方法的典型用法代碼示例。如果您正苦於以下問題:PHP es_cls_dbquery::es_view_subscriber_widget方法的具體用法?PHP es_cls_dbquery::es_view_subscriber_widget怎麽用?PHP es_cls_dbquery::es_view_subscriber_widget使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類es_cls_dbquery
的用法示例。
在下文中一共展示了es_cls_dbquery::es_view_subscriber_widget方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: home_url
} else {
$homeurl = home_url();
$samedomain = strpos($_SERVER['HTTP_REFERER'], $homeurl);
if ($samedomain !== false && $samedomain < 5) {
$action = "";
global $wpdb;
$form['es_email_name'] = $es_name;
$form['es_email_mail'] = $es_email;
$form['es_email_group'] = $es_group;
$data = es_cls_settings::es_setting_select(1);
if ($data['es_c_optinoption'] == "Double Opt In") {
$form['es_email_status'] = "Unconfirmed";
} else {
$form['es_email_status'] = "Single Opt In";
}
$action = es_cls_dbquery::es_view_subscriber_widget($form);
if ($action == "sus") {
$subscribers = array();
$subscribers = es_cls_dbquery::es_view_subscriber_one($es_email);
if ($data['es_c_optinoption'] == "Double Opt In") {
es_cls_sendmail::es_sendmail("optin", $template = 0, $subscribers, "optin", 0);
echo "subscribed-pending-doubleoptin";
} else {
if ($data['es_c_usermailoption'] == "YES") {
es_cls_sendmail::es_sendmail("welcome", $template = 0, $subscribers, "welcome", 0);
}
echo "subscribed-successfully";
}
} elseif ($action == "ext") {
echo "already-exist";
}
示例2: es_af_preparation
public static function es_af_preparation($es_af_name = "", $es_af_email = "", $es_af_group = array())
{
$sts = "";
$data = es_cls_settings::es_setting_select(1);
$form = array('es_email_name' => '', 'es_email_status' => '', 'es_email_group' => '', 'es_email_mail' => '');
$email_saved_single_opt_in = 0;
$email_saved_double_opt_in = 0;
$email_already_exists = 0;
$es_af_group_count = count($es_af_group);
if ($es_af_group_count > 0) {
for ($i = 0; $i < $es_af_group_count; $i++) {
$form['es_email_name'] = $es_af_name;
$form['es_email_mail'] = $es_af_email;
$form['es_email_group'] = $es_af_group[$i];
if ($data['es_c_optinoption'] == "Double Opt In") {
$form['es_email_status'] = "Unconfirmed";
} else {
$form['es_email_status'] = "Single Opt In";
}
$action = es_cls_dbquery::es_view_subscriber_widget($form);
if ($action == "sus") {
$subscribers = array();
$subscribers = es_cls_dbquery::es_view_subscriber_one($form['es_email_mail']);
if ($data['es_c_optinoption'] == "Double Opt In") {
if ($email_saved_double_opt_in == 0) {
es_cls_sendmail::es_sendmail("optin", $template = 0, $subscribers, "optin", 0);
}
$email_saved_double_opt_in = $email_saved_double_opt_in + 1;
} else {
if ($data['es_c_usermailoption'] == "YES") {
if ($email_saved_single_opt_in == 0) {
es_cls_sendmail::es_sendmail("welcome", $template = 0, $subscribers, "welcome", 0);
}
}
$email_saved_single_opt_in = $email_saved_single_opt_in + 1;
}
} elseif ($action == "ext") {
$email_already_exists = $email_already_exists + 1;
}
}
}
if ($email_saved_double_opt_in > 0) {
$sts = "double_opt_in_saved";
} elseif ($email_saved_single_opt_in > 0) {
$sts = "single_opt_in_saved";
} elseif ($email_already_exists > 0) {
$sts = "emails_already_exists";
} else {
$sts = "no_email_saved";
}
return $sts;
}