function scfp_activate_plugin()
{
    if (class_exists('Webcodin\\WCPContactForm\\Core\\Agp_Autoloader') && !function_exists('SCFP')) {
        $autoloader = Agp_Autoloader::instance();
        $autoloader->setClassMap(array('paths' => array(__DIR__ => array('classes')), 'namespaces' => array('Webcodin\\WCPContactForm\\Core' => array(__DIR__ => array('agp-core'))), 'classmaps' => array(__DIR__ => 'classmap.json')));
        //$autoloader->generateClassMap(__DIR__);
        function SCFP()
        {
            return SCFP::instance();
        }
        SCFP();
    }
}
Exemplo n.º 2
0
 * @license GPLv2
 * @link https://github.com/AGolubnichenko/agp-core
 * @package AGPCore
 * @version 1.0.6
 */
/*  Copyright 2015  Alexey Golubnichenko  (email : profosbox@gmail.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as 
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
use Webcodin\WCPContactForm\Core\Agp_Autoloader;
if (!defined('ABSPATH')) {
    exit;
}
/**
 * Autoloader
 */
if (!class_exists('Webcodin\\WCPContactForm\\Core\\Agp_Autoloader')) {
    require_once __DIR__ . '/classes/Agp_Autoloader.class.php';
    Agp_Autoloader::instance();
}