require_once GLM_MEMBERS_PLUGIN_PATH . '/lib/smartyTemplateSupport.php';
-// Check all database tables for all registered add-ons, allow install/update
+// Check all database tables for all registered add-ons, allow install/update, and add various items
if (glmCheckDatabase('install')) {
// If we have addons
/*
*
- * Determine which controller to load
+ * Run desired controller
*
*/
-// If the call to this code is to display a separate debug window
-// Depreciating debug feature
-/*
-if (isset($_REQUEST['glmDebugWindow']) && $_REQUEST['glmDebugWindow'] == true) {
- glmMembersAdminNotices(true);
- exit;
-}
-*/
-
-// If no database version was set at the top, this was an initial activation, so don't run controllers
+// If a database version exists, select the desired controller
if ($glmMembersDatabaseDbVersion) {
- // Otherwise select appropriate controller
if (is_admin()) {
require_once GLM_MEMBERS_PLUGIN_PATH . '/controllers/admin.php';
new glmMembersAdmin($wpdb, $config);
new glmMembersFront($wpdb, $config);
}
+// Otherwise, this must be an initial setup of this plugin, so don't run controller
} else {
// Inital setup so notify the user that they need to reload to see the admin menus
$startupNotices .= '<p><b>Initial plugin installation and database setup...<br>Select "Dashboard" to see new menus.</b><P>';
+
}
/*
add_action('admin_notices','glmMembersWordpressAdminNotices');
}
-// If not doing debug, then clear all of the debug messages that might have been saved
-// Depreciating debug feature
-/*
-if (defined('GLM_MEMBERS_PLUGIN_ADMIN_DEBUG') && !GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
- delete_option('glmMembersAdminNoticeAlerts');
- delete_option('glmMembersAdminNotices');
- delete_option('glmMembersAdminNoticeProcess');
- delete_option('glmMembersAdminNoticeDataBlocks');
-}
-*/
/*
* Check if database is installed and if it matches the current version
// If there was any serious error with the database for this add-on
if ($db_error) {
+
// Deactivate this add-on
include_once ABSPATH . 'wp-admin/includes/plugin.php';
deactivate_plugins($a['slug'].'/index.php');
<!-- Member information displayed in map bubbles -->
{foreach $mapItems as $m}
<div id="map_info_{$m.id}" class="glm-hidden">
- {apply_filters('glm-member-db-front-members-list-mapBubbleTop', '', $m.member)}
+ {apply_filters('glm-member-db-front-members-list-mapBubbleTop', '', $m.member_pointer)}
{if $m.logo && $settings.list_map_show_logo}
<div class="glm-member-list-image">
<img src="{$glmPluginMediaUrl}/images/{$settings.list_map_logo_size}/{$m.logo}">
</div>
{/if}
</div>
- {apply_filters('glm-member-db-front-members-list-mapBubbleBottom', '', $m.member)}
+ {apply_filters('glm-member-db-front-members-list-mapBubbleBottom', '', $m.member_pointer)}
</div> <!-- End of information displayed in map bubbles -->
{/foreach}