public static function ensure_user_accepted_terms()
 {
     if (isset($_COOKIE['user-accepted-terms'])) {
         return;
     } elseif (isset($_POST) && isset($_POST['terms-acceptance'])) {
         setcookie('user-accepted-terms', 'yes', time() + 3600 * 24 * 10, COOKIEPATH, COOKIE_DOMAIN, false);
         wp_redirect(wp_registration_url());
         exit;
     } else {
         KeyshotShopifyMultipassLoginPage::load_login_head();
         KeyshotShopifyMultipass::view('terms', array());
         exit;
     }
 }
Esempio n. 2
0
 public static function display_page()
 {
     KeyshotShopifyMultipass::view('admin_page', array('arg1' => 'key1'));
 }