From 23c595ca2dac0e2c811714df38cce719bd02a9bd Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 18 Jul 2017 11:03:24 -0400 Subject: [PATCH] Added the shortcode/view/model for registrationCheckout --- .../registrations/registrationCheckout.php | 83 +++++++++++++++++++ setup/shortcodes.php | 10 +++ .../registrations/registrationCheckout.html | 0 3 files changed, 93 insertions(+) create mode 100644 models/front/registrations/registrationCheckout.php create mode 100644 views/front/registrations/registrationCheckout.html 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 -- 2.17.1