From: Laury GvR Date: Thu, 28 Apr 2016 19:49:07 +0000 (-0400) Subject: Adding required pages for auto-creation X-Git-Tag: v1.0.0^2~71 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=408f6a790dcd090a5efe1d019c0885c04dff9963;p=WP-Plugins%2Fglm-member-db-events.git Adding required pages for auto-creation --- diff --git a/index.php b/index.php index f283da3..af89bc6 100644 --- a/index.php +++ b/index.php @@ -138,6 +138,7 @@ if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_EVENTS_PLUGIN_ */ require_once GLM_MEMBERS_EVENTS_PLUGIN_SETUP_PATH.'/validActions.php'; require_once GLM_MEMBERS_EVENTS_PLUGIN_SETUP_PATH.'/shortcodes.php'; +require_once GLM_MEMBERS_EVENTS_PLUGIN_SETUP_PATH.'/requiredPages.php'; if (is_file(GLM_MEMBERS_EVENTS_PLUGIN_DB_SCRIPTS.'/dbVersions.php')) { require_once GLM_MEMBERS_EVENTS_PLUGIN_DB_SCRIPTS.'/dbVersions.php'; } @@ -161,7 +162,8 @@ function glmMembersRegisterEvents($addOns) { 'settings' => $GLOBALS['eventsManagementSettings'] ), 'shortcodes' => $GLOBALS['glmMembersEventsShortcodes'], - 'shortcodesDescription' => $GLOBALS['glmMembersEventsShortcodesDescription'] + 'shortcodesDescription' => $GLOBALS['glmMembersEventsShortcodesDescription'], + 'requiredPages' => $GLOBALS['glmMembersEventsRequiredPages'] ); // If we have database tables for this plugin/addon, provide that data also diff --git a/setup/requiredPages.php b/setup/requiredPages.php new file mode 100644 index 0000000..2c9ba9c --- /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. + * + */ + +$glmMembersEventsRequiredPages = array( + 'Events List' => array( + 'content' => '[glm-events-list]', + 'parent' => 'GLM Associate' + ), + 'Event Detail' => array( + 'content' => '[glm-event-detail]', + 'parent' => 'GLM Associate' + ) +);