2013-03-26 23:29:55 -07:00
|
|
|
<?php
|
2016-06-10 13:33:51 -07:00
|
|
|
/**
|
2013-03-26 23:29:55 -07:00
|
|
|
Plugin Name: WP-Discourse
|
2015-01-05 00:04:31 -06:00
|
|
|
Description: Use Discourse as a community engine for your WordPress blog
|
2016-05-18 15:44:52 -05:00
|
|
|
Version: 0.7.0
|
2013-08-16 11:50:40 -07:00
|
|
|
Author: Sam Saffron, Robin Ward
|
2016-05-18 13:01:42 -07:00
|
|
|
Text Domain: wp-discourse
|
|
|
|
Domain Path: /languages
|
2014-06-23 03:09:10 +05:30
|
|
|
Author URI: https://github.com/discourse/wp-discourse
|
2015-01-05 00:04:31 -06:00
|
|
|
Plugin URI: https://github.com/discourse/wp-discourse
|
2015-01-31 20:44:03 -06:00
|
|
|
GitHub Plugin URI: https://github.com/discourse/wp-discourse
|
2016-06-10 13:33:51 -07:00
|
|
|
|
|
|
|
@package WPDiscourse
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Copyright 2014 Civilized Discourse Construction Kit, Inc (team@discourse.org)
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
2014-12-22 12:10:40 +08:00
|
|
|
|
2015-01-06 11:46:02 -06:00
|
|
|
define( 'WPDISCOURSE_PATH', plugin_dir_path( __FILE__ ) );
|
2016-02-20 13:10:38 -05:00
|
|
|
define( 'WPDISCOURSE_URL', plugins_url( '', __FILE__ ) );
|
2015-01-06 11:46:02 -06:00
|
|
|
|
2016-05-18 15:53:35 -07:00
|
|
|
require_once( __DIR__ . '/lib/html-templates.php' );
|
2015-01-05 10:37:43 -06:00
|
|
|
require_once( __DIR__ . '/lib/discourse.php' );
|
2016-05-18 13:01:42 -07:00
|
|
|
require_once( __DIR__ . '/lib/settings-validator.php' );
|
2016-05-29 12:46:25 -07:00
|
|
|
require_once( __DIR__ . '/lib/response-validator.php' );
|
2015-01-05 10:37:43 -06:00
|
|
|
require_once( __DIR__ . '/lib/admin.php' );
|
|
|
|
require_once( __DIR__ . '/lib/sso.php' );
|
2016-06-11 14:55:59 -07:00
|
|
|
require_once( __DIR__ . '/lib/discourse-sso.php' );
|
2016-06-11 16:56:53 -07:00
|
|
|
require_once( __DIR__ . '/lib/discourse-publish.php' );
|
2016-06-10 15:53:12 -07:00
|
|
|
require_once( __DIR__ . '/lib/plugin-support/woocommerce-support.php' );
|
2015-01-05 10:50:15 -06:00
|
|
|
|
2016-05-29 12:46:25 -07:00
|
|
|
$discourse_response_validator = WPDiscourse\ResponseValidator\ResponseValidator::get_instance();
|
2016-06-11 15:55:42 -07:00
|
|
|
$woocommerce_support = new WPDiscourse\PluginSupport\WooCommerceSupport();
|
2016-05-18 13:01:42 -07:00
|
|
|
$discourse_settings_validator = new WPDiscourse\Validator\SettingsValidator();
|
2016-06-06 10:55:37 -07:00
|
|
|
$discourse = new Discourse( $discourse_response_validator );
|
|
|
|
$discourse_admin = new DiscourseAdmin( $discourse_response_validator );
|
2016-06-11 16:56:53 -07:00
|
|
|
$discourse_publisher = new WPDiscourse\DiscoursePublish\DiscoursePublish( $discourse_response_validator );
|
2016-06-11 15:55:42 -07:00
|
|
|
$discourse_sso = new WPDiscourse\DiscourseSSO\DiscourseSSO();
|
2015-01-06 11:38:08 -06:00
|
|
|
|
|
|
|
register_activation_hook( __FILE__, array( $discourse, 'install' ) );
|