branding
This commit is contained in:
@ -61,7 +61,7 @@ class Member extends Controller {
|
||||
Views::view( 'members.members' );
|
||||
}
|
||||
|
||||
public function managepayment( $id = null ) {
|
||||
public function managepayment() {
|
||||
$this->confirmAuth();
|
||||
$customer = self::$customers->findByUserID( App::$activeUser->ID );
|
||||
if ( empty( $customer ) ) {
|
||||
@ -85,7 +85,7 @@ class Member extends Controller {
|
||||
}
|
||||
|
||||
public function cancelconfirm( $id = null ) {
|
||||
$this->confirmAuth();
|
||||
$this->confirmAuth( $id );
|
||||
$memberships = new Memberships;
|
||||
$result = $memberships->cancel( $id );
|
||||
if ( ! empty( $result ) ) {
|
||||
@ -98,7 +98,7 @@ class Member extends Controller {
|
||||
}
|
||||
|
||||
public function pauseconfirm( $id = null ) {
|
||||
$this->confirmAuth();
|
||||
$this->confirmAuth( $id );
|
||||
$memberships = new Memberships;
|
||||
$result = $memberships->cancel( $id );
|
||||
if ( ! empty( $result ) ) {
|
||||
@ -111,26 +111,26 @@ class Member extends Controller {
|
||||
}
|
||||
|
||||
public function pause( $id = null ) {
|
||||
$this->confirmAuth();
|
||||
$this->confirmAuth( $id );
|
||||
self::$title = 'pause Membership';
|
||||
Components::set( 'pauseid', $id );
|
||||
Views::view( 'members.pause' );
|
||||
}
|
||||
|
||||
public function resume( $id = null ) {
|
||||
$this->confirmAuth();
|
||||
$this->confirmAuth( $id );
|
||||
self::$title = 'resume Membership';
|
||||
Views::view( 'members.resume' );
|
||||
}
|
||||
|
||||
public function cancel( $id = null ) {
|
||||
$this->confirmAuth();
|
||||
$this->confirmAuth( $id );
|
||||
self::$title = 'Cancel Membership';
|
||||
Components::set( 'cancelid', $id );
|
||||
Views::view( 'members.cancel' );
|
||||
}
|
||||
|
||||
public function manage( $id = null ) {
|
||||
public function manage() {
|
||||
if ( ! App::$isLoggedIn ) {
|
||||
Session::flash( 'error', 'You do not have permission to access this page.' );
|
||||
return Redirect::home();
|
||||
@ -145,11 +145,12 @@ class Member extends Controller {
|
||||
Views::view( 'members.manage', $userMemberships );
|
||||
}
|
||||
|
||||
public function upgrade( $id = null ) {
|
||||
public function upgrade() {
|
||||
if ( ! App::$isLoggedIn ) {
|
||||
Session::flash( 'error', 'You do not have permission to access this page.' );
|
||||
return Redirect::home();
|
||||
}
|
||||
// need to check if the plan CAN be upgraded
|
||||
self::$title = 'Upgrade Membership';
|
||||
Views::view( 'members.upgrade' );
|
||||
}
|
||||
@ -165,7 +166,7 @@ class Member extends Controller {
|
||||
return Redirect::to( 'home/index' );
|
||||
}
|
||||
|
||||
self::$title = 'Join {SIITENAME}!';
|
||||
self::$title = 'Join {SITENAME}!';
|
||||
$stripePrice = $this->findPrice( $plan );
|
||||
|
||||
$product = self::$products->findByPriceID( $stripePrice );
|
||||
|
Reference in New Issue
Block a user