From: Laury GvR Date: Tue, 18 Jul 2017 15:00:52 +0000 (-0400) Subject: Added the shortcode/view/model for registrationSelect X-Git-Tag: v1.0.0^2~474 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a280ee9dd2a78e7edb7bc5f7639ac6bca94b9980;p=WP-Plugins%2Fglm-member-db-registrations.git Added the shortcode/view/model for registrationSelect --- diff --git a/models/front/registrations/registrationSelect.php b/models/front/registrations/registrationSelect.php new file mode 100644 index 0000000..902a5b3 --- /dev/null +++ b/models/front/registrations/registrationSelect.php @@ -0,0 +1,83 @@ +accountID = ($_REQUEST['account'] - 0); + + if ($this->accountID <= 0) { + $this->accountID = false; + } + } + + $view = 'registrationSelect'; + + 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 99300e7..ba79f89 100644 --- a/setup/shortcodes.php +++ b/setup/shortcodes.php @@ -107,6 +107,16 @@ $glmMembersRegistrationsShortcodes = array( 'member_only' => false, ) ), + 'glm-registration-select' => array( + 'plugin' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG, + 'menu' => 'registrations', + 'action' => 'registrationSelect', + 'table' => false, + 'attributes' => array( + 'id' => false, + 'member_only' => false, + ) + ), ); $glmMembersRegistrationsShortcodesDescription = ''; diff --git a/setup/validActions.php b/setup/validActions.php index 3bf8364..64ae648 100644 --- a/setup/validActions.php +++ b/setup/validActions.php @@ -79,6 +79,7 @@ $glmMembersRegistrationsAddOnValidActions = array( 'registrations' => array( 'registrationSummary' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG, 'registrationAccountSummary' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG, + 'registrationSelect' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG, ) ), ); diff --git a/views/front/registrations/registrationSelect.html b/views/front/registrations/registrationSelect.html new file mode 100644 index 0000000..e69de29