Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Template files
- //
- if( !property_exists($page, $page->user_id)) continue;
- if( $page->user_id == 0) continue;
- //
- // Get and verify there is a user
- //
- $user = $this->usermodel->get_by_id($page->user_id);
- if( !$user || !$user->is_active_subscriber()) continue;
- //
- // Verify a subscriber exists
- //
- $subscriber = $user->get_subscriber();
- if( !$subscriber ) continue;
- //
- // Verify the correct subscription type
- //
- $subscription = $subscriber->get_subscription();
- if( !$subscription ||
- $subscription->product->handle == "unlimited" ||
- $subscription->product->handle == "complimentary-subscription" ||
- $subscription->state == "canceled"
- ) continue;
Add Comment
Please, Sign In to add comment