Example #1
0
 public function columnEmails($row)
 {
     if (!isset($row['email-received'])) {
         $row['email-received'] = 0;
     }
     if (!isset($row['email-confirmed'])) {
         $row['email-confirmed'] = 0;
     }
     if ($row['email-received'] > 0) {
         echo '+';
     }
     echo $row['email-received'];
     if (BizPanda::getSubscriptionServiceName() !== 'database') {
         echo ' <em>(' . $row['email-confirmed'] . ' confirmed)';
     }
 }
Example #2
0
/**
 * Calls always when we subscribe an user.
 */
function opanda_subscribe($status, $identity, $context)
{
    if ('subscribed' == $status) {
        // if the current service is 'database',
        // then all emails should be added as unconfirmed
        $serviceName = BizPanda::getSubscriptionServiceName();
        $confirmed = $serviceName === 'database' ? false : true;
        do_action('opanda_lead_catched', $identity, $context, $confirmed, $confirmed);
    } elseif ('pending' == $status) {
        do_action('opanda_lead_catched', $identity, $context, false, false);
    }
}