Exemplo n.º 1
0
        include_once $WishListMemberInstance->pluginDir . '/lib/integration.shoppingcarts.php';
        foreach ($wishlist_member_shopping_carts as $wlm_integration_file => $wlm_integration_data) {
            $WishListMemberInstance->LoadInitFile($wlm_integration_file);
            $WishListMemberInstance->RegisterSCIntegration($wlm_integration_data['optionname'], $wlm_integration_file, $wlm_integration_data['classname'], $wlm_integration_data['methodname']);
        }
        // setup autoresponders
        include_once $WishListMemberInstance->pluginDir . '/lib/integration.autoresponders.php';
        foreach ($wishlist_member_autoresponders as $wlm_integration_file => $wlm_integration_data) {
            $WishListMemberInstance->LoadInitFile($wlm_integration_file);
            $WishListMemberInstance->RegisterARIntegration($wlm_integration_data['optionname'], $wlm_integration_file, $wlm_integration_data['classname'], $wlm_integration_data['methodname']);
        }
        // setup webinars
        include_once $WishListMemberInstance->pluginDir . '/lib/integration.webinars.php';
        foreach ($wishlist_member_webinars as $wlm_integration_file => $wlm_integration_data) {
            $WishListMemberInstance->LoadInitFile($wlm_integration_file);
            $WishListMemberInstance->RegisterWebinarIntegration($wlm_integration_data['optionname'], $wlm_integration_file, $wlm_integration_data['classname']);
        }
        // setup other integrations
        $wishlist_member_other_integrations = (array) $WishListMemberInstance->GetOption('ActiveIntegrations');
        foreach ($wishlist_member_other_integrations as $wlm_integration_file => $wlm_integration_status) {
            if ($wlm_integration_status) {
                include_once $WishListMemberInstance->pluginDir . '/lib/' . $wlm_integration_file;
            }
        }
        //register tinymce plugin for integrations
        global $WLMTinyMCEPluginInstanceOnly;
        if ($WLMTinyMCEPluginInstanceOnly) {
            $WLMTinyMCEPluginInstanceOnly->RegisterShortcodes("Integrations", array(), array(), 1, null, $WishListMemberInstance->IntegrationShortcodes);
        }
    }
}