From 7fd8334343c4a531fdbf4928c5505b8245319587 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 28 Apr 2016 15:49:41 -0400 Subject: [PATCH] Adding required pages for auto-creation --- index.php | 4 +++- setup/requiredPages.php | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 setup/requiredPages.php diff --git a/index.php b/index.php index 2db04be..5d017f6 100644 --- a/index.php +++ b/index.php @@ -137,6 +137,7 @@ if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_PACKAGING_PLUG */ require_once(GLM_MEMBERS_PACKAGING_PLUGIN_SETUP_PATH.'/validActions.php'); require_once(GLM_MEMBERS_PACKAGING_PLUGIN_SETUP_PATH.'/shortcodes.php'); +require_once GLM_MEMBERS_PACKAGING_PLUGIN_SETUP_PATH.'/requiredPages.php'; require_once(GLM_MEMBERS_PACKAGING_PLUGIN_DB_SCRIPTS.'/dbVersions.php'); // Load Packaging Management Settings data @@ -163,7 +164,8 @@ function glmMembersRegisterPackaging($addOns) { 'dbActiveVersionOption' => GLM_MEMBERS_PACKAGING_PLUGIN_ACTIVE_DB_OPTION, 'dbScriptPath' => GLM_MEMBERS_PACKAGING_PLUGIN_DB_SCRIPTS, 'dbVersions' => $GLOBALS['glmMembersPackagingDbVersions'] - ) + ), + 'requiredPages' => $GLOBALS['glmMembersPackagingRequiredPages'] ); // Return the array with our data added diff --git a/setup/requiredPages.php b/setup/requiredPages.php new file mode 100644 index 0000000..128915a --- /dev/null +++ b/setup/requiredPages.php @@ -0,0 +1,37 @@ + + * @license http://www.gaslightmedia.com Gaslightmedia + * @release requiredPages.php,v 1.0 2014/10/31 19:31:47 glm Exp $ + * @link http://dev.gaslightmedia.com/ + */ + +/* + * Array of required pages + * + * This array lists all of the required pages made available to the main + * member plugin + * + * This array is merged with the data from any registered add-ons + * providing required pages. The plugin providing the required pages + * is designated in the 'plugin' elemeent. + * + */ + +$glmMembersPackagingRequiredPages = array( + 'Packages List' => array( + 'content' => '[glm-packaging-list]', + 'parent' => 'GLM Associate' + ), + 'Package Detail' => array( + 'content' => '[glm-packaging-detail]', + 'parent' => 'GLM Associate' + ) +); -- 2.17.1