當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SwpmUtils::get_incomplete_paid_member_info_by_ip方法代碼示例

本文整理匯總了PHP中SwpmUtils::get_incomplete_paid_member_info_by_ip方法的典型用法代碼示例。如果您正苦於以下問題:PHP SwpmUtils::get_incomplete_paid_member_info_by_ip方法的具體用法?PHP SwpmUtils::get_incomplete_paid_member_info_by_ip怎麽用?PHP SwpmUtils::get_incomplete_paid_member_info_by_ip使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SwpmUtils的用法示例。


在下文中一共展示了SwpmUtils::get_incomplete_paid_member_info_by_ip方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: swpm_ty_page_rego_sc

 public function swpm_ty_page_rego_sc($args)
 {
     $output = '';
     $settings = SwpmSettings::get_instance();
     //If user is logged in then the purchase will be applied to the existing profile
     if (SwpmMemberUtils::is_member_logged_in()) {
         $username = SwpmMemberUtils::get_logged_in_members_username();
         $output .= '<div class="swpm-ty-page-registration-logged-in swpm-yellow-box">';
         $output .= '<p>' . SwpmUtils::_('Your membership profile will be updated to reflect the payment.') . '</p>';
         $output .= SwpmUtils::_('Your profile username: ') . $username;
         $output .= '</div>';
         return $output;
     }
     $output .= '<div class="swpm-ty-page-registration">';
     $member_data = SwpmUtils::get_incomplete_paid_member_info_by_ip();
     if ($member_data) {
         //Found a member profile record for this IP that needs to be completed
         $reg_page_url = $settings->get_value('registration-page-url');
         $rego_complete_url = add_query_arg(array('member_id' => $member_data->member_id, 'code' => $member_data->reg_code), $reg_page_url);
         $output .= '<div class="swpm-ty-page-registration-link swpm-yellow-box">';
         $output .= '<p>' . SwpmUtils::_('Click on the following link to complete the registration.') . '</p>';
         $output .= '<p><a href="' . $rego_complete_url . '">' . SwpmUtils::_('Click here to complete your paid registration') . '</a></p>';
         $output .= '</div>';
     } else {
         //Nothing found. Check again later.
         $output .= '<div class="swpm-ty-page-registration-link swpm-yellow-box">';
         $output .= SwpmUtils::_('If you have just made a membership payment then your payment is yet to be processed. Please check back in a few minutes. An email will be sent to you with the details shortly.');
         $output .= '</div>';
     }
     $output .= '</div>';
     //end of .swpm-ty-page-registration
     return $output;
 }
開發者ID:kevinotsuka,項目名稱:coffeecircle,代碼行數:33,代碼來源:class.swpm-shortcodes-handler.php


注:本文中的SwpmUtils::get_incomplete_paid_member_info_by_ip方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。