From: Laury GvR Date: Tue, 18 Jul 2017 15:03:24 +0000 (-0400) Subject: Added the shortcode/view/model for registrationCheckout X-Git-Tag: v1.0.0^2~473 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=23c595ca2dac0e2c811714df38cce719bd02a9bd;p=WP-Plugins%2Fglm-member-db-registrations.git Added the shortcode/view/model for registrationCheckout --- diff --git a/models/front/registrations/registrationCheckout.php b/models/front/registrations/registrationCheckout.php new file mode 100644 index 0000000..658eeab --- /dev/null +++ b/models/front/registrations/registrationCheckout.php @@ -0,0 +1,83 @@ +accountID = ($_REQUEST['account'] - 0); + + if ($this->accountID <= 0) { + $this->accountID = false; + } + } + + $view = 'registrationCheckout'; + + switch ( $option ) { + + } + + // Compile template data + $templateData = array( + + ); + // Return status, any suggested view, and any data to controller + return array( + 'status' => true, + 'modelRedirect' => false, + 'view' => 'front/registrations/' . $view . '.html', + 'data' => $templateData + ); + + } + } diff --git a/setup/shortcodes.php b/setup/shortcodes.php index ba79f89..499f741 100644 --- a/setup/shortcodes.php +++ b/setup/shortcodes.php @@ -117,6 +117,16 @@ $glmMembersRegistrationsShortcodes = array( 'member_only' => false, ) ), + 'glm-registration-checkout' => array( + 'plugin' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG, + 'menu' => 'registrations', + 'action' => 'registrationCheckout', + 'table' => false, + 'attributes' => array( + 'id' => false, + 'member_only' => false, + ) + ), ); $glmMembersRegistrationsShortcodesDescription = ''; diff --git a/views/front/registrations/registrationCheckout.html b/views/front/registrations/registrationCheckout.html new file mode 100644 index 0000000..e69de29